diff options
| author | René Scharfe <l.s.r@web.de> | 2025-12-28 19:10:50 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-12-29 22:02:54 +0900 |
| commit | b6e4cc8c32850315323961659e553d1d14591f7f (patch) | |
| tree | a3b31c6c5d001c0658c510a6f621533fbee94d81 /walker.c | |
| parent | 154717b3b0b0631fb6700d5fc77e779106530fc3 (diff) | |
| download | git-b6e4cc8c32850315323961659e553d1d14591f7f.tar.xz | |
tag: support arbitrary repositories in parse_tag()
Allow callers of parse_tag() pass in the repository to use. Let most of
them pass in the_repository to get the same result as before. One of
them has stopped using the_repository in ef9b0370da (sha1-name.c: store
and use repo in struct disambiguate_state, 2019-04-16); let it pass in
its stored repository.
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'walker.c')
| -rw-r--r-- | walker.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -115,7 +115,7 @@ static int process_commit(struct walker *walker, struct commit *commit) static int process_tag(struct walker *walker, struct tag *tag) { - if (parse_tag(tag)) + if (parse_tag(the_repository, tag)) return -1; return process(walker, tag->tagged); } |
