author | Junio C Hamano <gitster@pobox.com> | |
Wed, 9 Jul 2008 00:31:51 +0000 (17:31 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 9 Jul 2008 08:37:34 +0000 (01:37 -0700) | ||
commit | e84fb2ff75f861a708ea5a914883e178a845f4ef | |
tree | a60acd0399d2bdc57ea860cfbfba65010d340923 | tree | snapshot |
parent | 1cc6985ca7dd3aaab0617ec0fd00d4eb0b424465 | commit | diff |
branch --contains: default to HEAD
We used to require the name of the commit to limit the branches shown to
the --contains option, but more recent --merged/--no-meregd defaults to
HEAD (and they do not allow arbitrary commit, which is a separate issue).
This teaches --contains to default to HEAD when no parameter is given.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
We used to require the name of the commit to limit the branches shown to
the --contains option, but more recent --merged/--no-meregd defaults to
HEAD (and they do not allow arbitrary commit, which is a separate issue).
This teaches --contains to default to HEAD when no parameter is given.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-branch.c | diff | blob | history |