branch --contains: default to HEAD
authorJunio C Hamano <gitster@pobox.com>
Wed, 9 Jul 2008 00:31:51 +0000 (17:31 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 Jul 2008 08:37:34 +0000 (01:37 -0700)
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>
No differences found