diff options
| author | Shreyansh Paliwal <shreyanshpaliwalcmsmn@gmail.com> | 2026-02-18 23:23:40 +0530 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-19 08:59:23 -0800 |
| commit | 4631e22f925fa2af8d8548af97ee2215be101409 (patch) | |
| tree | 5dc5f860d887dd9dab319f64b4d645df50fff951 /tools/generate-python.sh | |
| parent | 67ad42147a7acc2af6074753ebd03d904476118f (diff) | |
| download | git-4631e22f925fa2af8d8548af97ee2215be101409.tar.xz | |
wt-status: pass struct repository through function parameters
Some functions in wt-status.c (count_stash_entries(),
read_line_from_git_path(), abbrev_oid_in_line(), and
read_rebase_todolist()) rely on the_repository as they do not have access
to a local repository instance.
Add a struct repository *r parameter to these functions and pass the local
repository instance through the callers, which already have access to it
either directly by struct repository *r or indirectly by struct wt_state
*s (s->repo).
Replace uses of the_repository in these functions with the passed parameter.
Signed-off-by: Shreyansh Paliwal <shreyanshpaliwalcmsmn@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tools/generate-python.sh')
0 files changed, 0 insertions, 0 deletions
