repository.c
74.6 KB
-
repository: reuse grafts for shallow roots · a11026ec
The shallow roots are in fact another user of the grafting mechanism, and in essence they do use the same file format for grafted commits. Thus, instead of hand-coding the parsing logic a second time, we can just reuse the `git_grafts` structure for shallow commits, as well.
Patrick Steinhardt committed