Re: [PATCH 3/7] check-ref-format --branch: give Porcelain a way to grok branch shorthand
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 22, 2009, 21:58 UTC
- Message-ID
- <7v8wmxdxt9.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <36ca99e90903220318g2cfb192fi9d4ef0da95e1a65b@mail.gmail.com>
Bert Wesarg <bert.wesarg@googlemail.com> writes:
Show 7 quoted lines
>> int cmd_check_ref_format(int argc, const char **argv, const char *prefix)
>> {
>> + if (argc == 3 && !strcmp(argv[1], "--branch")) {
>> + struct strbuf sb = STRBUF_INIT;
>> + strbuf_branchname(&sb, argv[2]);
>
> strbuf_branchname() will be introduced in the next patch!Good eyes; thanks.