diff options
| author | Jeff King <peff@peff.net> | 2023-08-29 19:43:39 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-08-29 17:56:23 -0700 |
| commit | cb646ffb0aff30cec6cd47d43df8ba33c320afd9 (patch) | |
| tree | f4821c7a83cb0b64712a3d74ff92afdd71f40db1 /commit-graph.c | |
| parent | The second batch for 2.43 (diff) | |
| download | git-cb646ffb0aff30cec6cd47d43df8ba33c320afd9.tar.gz git-cb646ffb0aff30cec6cd47d43df8ba33c320afd9.zip | |
sequencer: use repository parameter in short_commit_name()
Instead of just using the_repository, we can take a repository parameter
from the caller. Most of them already have one, and doing so clears up a
few -Wunused-parameter warnings. There are still a few callers which use
the_repository, but this pushes us one small step forward to eventually
getting rid of those.
Note that a few of these functions have a "rev_info" whose "repo"
parameter could probably be used instead of the_repository. I'm leaving
that for further cleanups, as it's not immediately obvious that
revs->repo is always valid, and there's quite a bit of other possible
refactoring here (even getting rid of some "struct repository" arguments
in favor of revs->repo).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions
