diff options
author | Junio C Hamano <gitster@pobox.com> | 2025-08-25 14:22:03 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-08-25 14:22:03 -0700 |
commit | eed447dd959bd99a24c43688b7f6f14f727b550b (patch) | |
tree | 190b5a331ba5304f6b182f7974ecd3a09cafcb21 /builtin/commit.c | |
parent | 4f58f6d617fd552b03af0bb3a03a90a4dad16e44 (diff) | |
parent | 7be9e410b22b3544e01d32f7bef8e6aa9516e152 (diff) |
Merge branch 'ps/commit-graph-wo-globals'
Remove dependency on the_repository and other globals from the
commit-graph code, and other changes unrelated to de-globaling.
* ps/commit-graph-wo-globals:
commit-graph: stop passing in redundant repository
commit-graph: stop using `the_repository`
commit-graph: stop using `the_hash_algo`
commit-graph: refactor `parse_commit_graph()` to take a repository
commit-graph: store the hash algorithm instead of its length
commit-graph: stop using `the_hash_algo` via macros
Diffstat (limited to 'builtin/commit.c')
-rw-r--r-- | builtin/commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/commit.c b/builtin/commit.c index b5b9608813..8a5dee384d 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -1947,7 +1947,7 @@ int cmd_commit(int argc, "new index file. Check that disk is not full and quota is\n" "not exceeded, and then \"git restore --staged :/\" to recover.")); - git_test_write_commit_graph_or_die(); + git_test_write_commit_graph_or_die(the_repository->objects->sources); repo_rerere(the_repository, 0); run_auto_maintenance(quiet); |