Re: [PATCH v3 07/14] commit-graph: update graph-head during write
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 12, 2018, 18:56 UTC
- Message-ID
- <xmqqeflqt4st.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <1518122258-157281-8-git-send-email-dstolee@microsoft.com>
Derrick Stolee <stolee@gmail.com> writes:
> It is possible to have multiple commit graph files in a pack directory, > but only one is important at a time. Use a 'graph_head' file to point > to the important file. Teach git-commit-graph to write 'graph_head' upon > writing a new commit graph file.
Why this design, instead of what "repack -a" would do, iow, if there always is a singleton that is the only one that matters, shouldn't the creation of that latest singleton just clear the older ones before it returns control?