Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-06-14 01:53:42 +0300
committerJunio C Hamano <gitster@pobox.com>2022-06-14 01:53:42 +0300
commiteef985e17af956b341b08ed7ad47f3941cb7da94 (patch)
tree64a39f19d76af42abc04114a621a3a17fac26b5f /shallow.c
parent1a7f6be5b17f572fc68ff2a2e0c079d50c671c74 (diff)
parent4d4e49fff17122e0eec185857fa87d526174859f (diff)
Merge branch 'jt/unparse-commit-upon-graft-change'
Updating the graft information invalidates the list of parents of in-core commit objects that used to be in the graft file. * jt/unparse-commit-upon-graft-change: commit,shallow: unparse commits if grafts changed
Diffstat (limited to 'shallow.c')
-rw-r--r--shallow.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/shallow.c b/shallow.c
index 4270471586..8cb768ee5f 100644
--- a/shallow.c
+++ b/shallow.c
@@ -97,6 +97,13 @@ int commit_shallow_file(struct repository *r, struct shallow_lock *lk)
{
int res = commit_lock_file(&lk->lock);
reset_repository_shallow(r);
+
+ /*
+ * Update in-memory data structures with the new shallow information,
+ * including unparsing all commits that now have grafts.
+ */
+ is_repository_shallow(r);
+
return res;
}