diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-06-14 01:53:42 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-06-14 01:53:42 +0300 |
commit | eef985e17af956b341b08ed7ad47f3941cb7da94 (patch) | |
tree | 64a39f19d76af42abc04114a621a3a17fac26b5f /shallow.c | |
parent | 1a7f6be5b17f572fc68ff2a2e0c079d50c671c74 (diff) | |
parent | 4d4e49fff17122e0eec185857fa87d526174859f (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.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; } |