aboutsummaryrefslogtreecommitdiffstats
path: root/commit.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-05-01 13:39:51 -0700
committerJunio C Hamano <gitster@pobox.com>2020-05-01 13:39:51 -0700
commit2b4ff3d3dc64d4abcded7caa9bcdf063aea5ec3f (patch)
treed92a6b80a57a024256b1306665e629ae1d4b8185 /commit.h
parentMerge branch 'dd/mailinfo-with-nul' (diff)
parentshallow.c: use '{commit,rollback}_shallow_file' (diff)
downloadgit-2b4ff3d3dc64d4abcded7caa9bcdf063aea5ec3f.tar.gz
git-2b4ff3d3dc64d4abcded7caa9bcdf063aea5ec3f.zip
Merge branch 'tb/reset-shallow'
Fix in-core inconsistency after fetching into a shallow repository that broke the code to write out commit-graph. * tb/reset-shallow: shallow.c: use '{commit,rollback}_shallow_file' t5537: use test_write_lines and indented heredocs for readability
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index 008a0fa4a0..ab91d21131 100644
--- a/commit.h
+++ b/commit.h
@@ -249,6 +249,8 @@ struct oid_array;
struct ref;
int register_shallow(struct repository *r, const struct object_id *oid);
int unregister_shallow(const struct object_id *oid);
+int commit_shallow_file(struct repository *r, struct lock_file *lk);
+void rollback_shallow_file(struct repository *r, struct lock_file *lk);
int for_each_commit_graft(each_commit_graft_fn, void *);
int is_repository_shallow(struct repository *r);
struct commit_list *get_shallow_commits(struct object_array *heads,