Re: [PATCHv2 4/5] branch: introduce --list option
- From
Jeff King <peff@peff.net>
- Date
- Sep 9, 2011, 01:08 UTC
- Message-ID
- <20110909010832.GA4809@sigill.intra.peff.net>
- In-Reply-To
- <7vmxeewx7f.fsf@alter.siamese.dyndns.org>
On Thu, Sep 08, 2011 at 02:17:24PM -0700, Junio C Hamano wrote:
Show 7 quoted lines
> "branch -v" without other options or parameters still works in the list > mode, but that is not because there is "-v" but because there is no > parameter nor option. > [...] > +test_expect_success 'git branch -v pattern does not show branch summaries' ' > + test_must_fail git branch -v branch* > +'
You might also want to affirm that it does not just fail, but still creates a branch, like:
test_expect_success 'git branch -v <name> creates a branch' '
git rev-parse HEAD >expect &&
git branch -v foo &&
git rev-parse foo >actual &&
test_cmp expect actual
'-Peff