Re: [PATCH] Makefile.am: allow slashes in git branches

"Jose E. Marchesi" <[email protected]> Wed, 02 Sep 2020 18:41:32 +0200
Newsgroups gmane.comp.sysutils.dejagnu.general
Message-ID <[email protected]>
> Jose E. Marchesi wrote:
>> It is way common for git branches to feature slashes in their names.
>> This patch modifies a sed invocation in Makefile.am to use a different
>> command delimiter.
>>   
>
> Are there any characters that are actually not allowed in Git branch
> names or do I need to revise those commands a bit more?

From git-check-ref-format(1):

        5. They cannot have question-mark ?, asterisk *, or open bracket [
           anywhere. See the --refspec-pattern option below for an exception
           to this rule.
        ...
        10. They cannot contain a \.

So I guess *, \ or ? are safe options for the sed rule :)