diff options
| author | Junio C Hamano <gitster@pobox.com> | 2026-03-04 10:52:59 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-03-04 10:52:59 -0800 |
| commit | fa383b96c7211a415152dffaf6b272bb09116f06 (patch) | |
| tree | d0bafbc0b0e2b8843b1b4d942922c6ccbf49f6df /shallow.h | |
| parent | 22c9b6bd93ef8975deebd2a4439aa428ab22118b (diff) | |
| parent | 3ef68ff40ebf75bba9c4b05f50197190ff1abda2 (diff) | |
| download | git-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |
