Code

git-branch: add support for --merged and --no-merged
authorLars Hjemli <hjemli@gmail.com>
Thu, 17 Apr 2008 20:24:50 +0000 (22:24 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Apr 2008 01:16:46 +0000 (18:16 -0700)
commite8b404c27e98a8d1b0e123fe80ce19efbdbf73d7
tree14b9ca7c2d0af2eba2cf914c61242f4092121f8c
parent5909ca92d8b2c6a0534597f52f7733ff61a64d63
git-branch: add support for --merged and --no-merged

These options filter the output from git branch to only include branches
whose tip is either merged or not merged into HEAD.

The use-case for these options is when working with integration of branches
from many remotes: `git branch --no-merged -a` will show a nice list of merge
candidates while `git branch --merged -a` will show the progress of your
integration work.

Also, a plain `git branch --merged` is a quick way to find local branches
which you might want to delete.

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