Re: Creation of a branch named that has a directory prefix equal to the name of another branch fail.
- From
Han-Wen Nienhuys <hanwen@google.com>
- Date
- Jul 27, 2020, 08:51 UTC
- Message-ID
- <CAFQ2z_O7D_9ToECfMhh3mbRproktM+gTR_-byajatH3+7-ziLg@mail.gmail.com>
- In-Reply-To
- <20200724200042.GC4013174@coredump.intra.peff.net>
On Fri, Jul 24, 2020 at 10:00 PM Jeff King <peff@peff.net> wrote:
> [1] I didn't actually check what the current reftable patches do, but > that's my recollection from discussions long ago.
struct reftable_write_options has a skip_name_check setting. If set, it doesn't check for directory/file conflicts. If unset, any attempt to create such conflicts will API_ERROR from the transaction commit function.
-- 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