Re: [PATCH v13 04/13] reftable: file format documentation
- From
Han-Wen Nienhuys <hanwen@google.com>
- Date
- May 20, 2020, 17:25 UTC
- Message-ID
- <CAFQ2z_NWT+Xp0zGc0OfjDd-=js5v9M9nqb3fbDFAtx_r21Jp=w@mail.gmail.com>
- In-Reply-To
- <CAFQ2z_P-cf38yR-VyvfDSgPUO_d38mgsi32UkRSPWMZKJOmjZg@mail.gmail.com>
On Wed, May 20, 2020 at 7:20 PM Han-Wen Nienhuys <hanwen@google.com> wrote:
> Jonathan Nieder said that this is used for git-stash, but I have never > understood why this is necessary, and would love to clarify this > better.
The doc says this:
"The `log_type = 0x0` is mostly useful for `git stash drop`, removing an entry from the reflog of `refs/stash` in a transaction file (below), without needing to rewrite larger files. Readers reading a stack of reflogs must treat this as a deletion."
I should probably look at the code for git-stash to see how this plays out.
-- Han-Wen Nienhuys - Google Munich I work 80%. Don't expect answers from me on Fridays. -- Google Germany GmbH, Erika-Mann-Strasse 33, 80636 Munich Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Geschäftsführer: Paul Manicle, Halimah DeLaine Prado