Re: [RFC PATCH 5/6] fetch: destroy commit graph on shallow parameters

2018-05-31 Thread Stefan Beller
On Thu, May 31, 2018 at 10:41 AM, Derrick Stolee wrote: > The commit-graph feature is not compatible with history-rewriting > features such as shallow clones. I associate "history rewriting" with changing objects in the history. For example interactive rebase or the BFG cleaner[1] /

[RFC PATCH 5/6] fetch: destroy commit graph on shallow parameters

2018-05-31 Thread Derrick Stolee
The commit-graph feature is not compatible with history-rewriting features such as shallow clones. When running a 'git fetch' with any of the shallow/unshallow options, destroy the commit-graph file and override core.commitGraph to be false. Signed-off-by: Derrick Stolee --- builtin/fetch.c | 6