Code

branch --merged/--no-merged: allow specifying arbitrary commit
authorJunio C Hamano <gitster@pobox.com>
Wed, 9 Jul 2008 00:55:47 +0000 (17:55 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 Jul 2008 09:12:24 +0000 (02:12 -0700)
commit049716b370f2cebdbdeb278eb2a8c4eff8ed0acd
treece392fdd134fc4b4b5257c5f6aa2922a0074db0a
parente84fb2ff75f861a708ea5a914883e178a845f4ef
branch --merged/--no-merged: allow specifying arbitrary commit

"git-branch --merged" is a handy way to list all the branches that have
already been merged to the current branch, but it did not allow checking
against anything but the current branch.  Having to switch branches only
to list the branches that are merged with another branch made the feature
practically useless.

This updates the option parser so that "git branch --merged next" is
accepted when you are on 'master' branch.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-branch.txt
builtin-branch.c