Re: [RFC PATCH 4/6] commit-graph: avoid writing when repo is shallow
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jun 4, 2018, 02:19 UTC
- Message-ID
- <xmqqd0x770p4.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <95354da4-7590-4fa6-de83-30f883d77188@gmail.com>
Derrick Stolee <stolee@gmail.com> writes:
Show 9 quoted lines
>>> several reasons. Instead of doing the hard thing to fix those >>> interactions, instead prevent reading or writing a commit-graph file for >>> shallow repositories. >> The latter instead would want to vanish, I would guess. > > Do you mean that we should call destroy_commit_graph() if we detect a > shallow repository during write_commit_graph(), then I can make that > change. >
No, I was just having trouble with reading "Instead of doing X, instead do Y".