From: Jeff King Date: Thu, 25 Aug 2011 17:54:05 GMT Subject: Re: [PATCH 1/5] branch: allow pattern arguments Message-ID: <20110825175405.GD519@sigill.intra.peff.net> In-Reply-To: <00847b8ee77129433a5d908ad25c9ebaf7fa7130.1314259226.git.git@drmicha.warpmail.net> On Thu, Aug 25, 2011 at 10:30:17AM +0200, Michael J Gruber wrote: > - else if (argc == 0) > - return print_ref_list(kinds, detached, verbose, abbrev, with_commit); > + else if (argc == 0 || (verbose && argc == 1)) > + return print_ref_list(kinds, detached, verbose, abbrev, with_commit, argc ? argv[0] : NULL); Note that "git tag -l" takes multiple patterns these days (it used to silently ignore everything after the first one!). "git branch" should probably do the same. -Peff