Web lists-archives.com

Re: [PATCH 0/7] teach branch-specific options for format-patch




Ævar Arnfjörð Bjarmason <avarab@xxxxxxxxx> writes:

> This may just be more insanity to implement right now, but perhaps in
> addition to "gitdir:" etc. in the IncludeIf config syntax we'd want to
> aim for "HEADref" (or some saner name). I.e. allowing to include/enable
> arbitrary config based on the ref name.
>
> Chicken & egg problems though...

The saner name might be

    [IncludeIf "onBranch:my-topic"] path = ...

Would we discard the section when "branch -d my-topic" is done, or
would we keep it for the next creation of the branch with the same
name?