]> git.ipfire.org Git - thirdparty/git.git/commit - show-branch.c
show-branch --topics
authorJunio C Hamano <junkio@cox.net>
Fri, 3 Mar 2006 01:14:00 +0000 (17:14 -0800)
committerJunio C Hamano <junkio@cox.net>
Fri, 3 Mar 2006 01:16:08 +0000 (17:16 -0800)
commitd320a5437f8304cf9ea3ee1898e49d643e005738
tree364daa5d17e335643dbda17b24ed29dae2fc0dd6
parent0b8b051cd50cb423476ab7a8aa5853dc601b721d
show-branch --topics

This adds a new flag, --topics, to help managing topic
branches.  When you have topic branches forked some time ago
from your primary line of development, show-branch would show
many "uninteresting" things that happend on the primary line of
development when trying to see what are still not merged from
the topic branches.

With this flag, the first ref given to show-branch is taken as
the primary branch, and the rest are taken as the topic
branches.  Output from the command is modified so that commits
only on the primary branch are not shown.  In other words,

$ git show-branch --topics master topic1 topic2 ...

shows an (almost) equivalent of

$ git rev-list ^master topic1 topic2 ...

The major differences are that (1) you can tell which commits
are on which branch, and (2) the commit at the fork point is
shown.

Signed-off-by: Junio C Hamano <junkio@cox.net>
show-branch.c