Files
git/Documentation
Jeff King d040350813 branch: let branch filters imply --list
Currently, a branch filter like `--contains`, `--merged`, or
`--no-merged` is ignored when we are not in listing mode.
For example:

  git branch --contains=foo bar

will create the branch "bar" from the current HEAD, ignoring
the `--contains` argument entirely. This is not very
helpful. There are two reasonable behaviors for git here:

  1. Flag an error; the arguments do not make sense.

  2. Implicitly go into `--list` mode

This patch chooses the latter, as it is more convenient, and
there should not be any ambiguity with attempting to create
a branch; using `--contains` and not wanting to list is
nonsensical.

That leaves the case where an explicit modification option
like `-d` is given.  We already catch the case where
`--list` is given alongside `-d` and flag an error. With
this patch, we will also catch the use of `--contains` and
other filter options alongside `-d`.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2013-01-31 16:37:24 -08:00
..
2013-01-25 12:34:52 -08:00
2013-01-23 21:19:10 -08:00
2011-08-08 09:30:12 -07:00
2012-12-18 10:51:22 -08:00
2009-04-06 00:27:09 -07:00
2012-09-18 21:49:46 -07:00
2012-04-20 15:49:16 -07:00
2012-07-09 14:40:03 -07:00
2012-09-18 21:49:50 -07:00
2012-06-19 11:35:19 -07:00
2013-01-20 17:06:53 -08:00
2011-12-12 11:52:31 -08:00
2011-09-06 11:42:12 -07:00
2011-05-19 10:55:54 -07:00
2012-11-14 13:49:53 -08:00
2011-03-11 10:59:16 -05:00
2013-01-14 08:22:27 -08:00
2013-01-23 21:19:10 -08:00
2010-07-05 13:39:02 -07:00
2012-06-19 11:35:19 -07:00