From: Junio C Hamano Date: Sun, 22 Mar 2009 21:58:42 GMT Subject: Re: [PATCH 3/7] check-ref-format --branch: give Porcelain a way to grok branch shorthand Message-ID: <7v8wmxdxt9.fsf@gitster.siamese.dyndns.org> In-Reply-To: <36ca99e90903220318g2cfb192fi9d4ef0da95e1a65b@mail.gmail.com> Bert Wesarg writes: >>  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.