aboutsummaryrefslogtreecommitdiff
path: root/shallow.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-03-04 10:52:59 -0800
committerJunio C Hamano <gitster@pobox.com>2026-03-04 10:52:59 -0800
commitfa383b96c7211a415152dffaf6b272bb09116f06 (patch)
treed0bafbc0b0e2b8843b1b4d942922c6ccbf49f6df /shallow.h
parent22c9b6bd93ef8975deebd2a4439aa428ab22118b (diff)
parent3ef68ff40ebf75bba9c4b05f50197190ff1abda2 (diff)
downloadgit-fa383b96c7211a415152dffaf6b272bb09116f06.tar.xz
Merge branch 'sp/shallow-deepen-relative-fix'
"git fetch --deepen" that tries to go beyond merged branch used to get confused where the updated shallow points are, which has been corrected. * sp/shallow-deepen-relative-fix: shallow: handling fetch relative-deepen shallow: free local object_array allocations
Diffstat (limited to 'shallow.h')
-rw-r--r--shallow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/shallow.h b/shallow.h
index 1c0787de1d..e20ca4c21b 100644
--- a/shallow.h
+++ b/shallow.h
@@ -36,7 +36,9 @@ int commit_shallow_file(struct repository *r, struct shallow_lock *lk);
/* rollback $GIT_DIR/shallow and reset stat-validity checks */
void rollback_shallow_file(struct repository *r, struct shallow_lock *lk);
+int get_shallows_depth(struct object_array *heads, struct object_array *shallows);
struct commit_list *get_shallow_commits(struct object_array *heads,
+ struct object_array *shallows, int deepen_relative,
int depth, int shallow_flag, int not_shallow_flag);
struct commit_list *get_shallow_commits_by_rev_list(struct strvec *argv,
int shallow_flag, int not_shallow_flag);