]> git.ipfire.org Git - thirdparty/git.git/commit - commit.c
commit-graph: not compatible with grafts
authorDerrick Stolee <dstolee@microsoft.com>
Mon, 20 Aug 2018 18:24:30 +0000 (18:24 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 Aug 2018 17:22:51 +0000 (10:22 -0700)
commit20fd6d57996e33c30b6bb030329523d0116f15ec
treeba237151d6d0d2f2a3e83802dda069c7789b8bbf
parentd6538246d3d4edbfbc9b0af6a2aa38552d35f7f1
commit-graph: not compatible with grafts

Augment commit_graph_compatible(r) to return false when the given
repository r has commit grafts or is a shallow clone. Test that in these
situations we ignore existing commit-graph files and we do not write new
commit-graph files.

Helped-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit-graph.c
commit.c
commit.h
t/t5318-commit-graph.sh