diff options
author | Junio C Hamano <junkio@cox.net> | 2006-01-09 13:29:23 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-01-09 23:49:46 -0800 |
commit | c2bdd6afe29589980e66855d574907240cb9c62a (patch) | |
tree | 01f4108d2b27c8f08ecc2fa3918b1cbebdc0cac0 /git-push.sh | |
parent | eb858c60d7850fc2ed2f69397f0560e707de324d (diff) | |
download | git-c2bdd6afe29589980e66855d574907240cb9c62a.tar.gz |
show-branch: take default arguments from configuration file.
This lets showbranch.default multivalued configuration item to
be used as the default set of parameters to git-show-branch when
none is given on the command line.
I keep many topic branches (e.g. zzz/pack, net/misc) and
branches used only as a reference under subdirectories
(e.g. hold/{html,man,todo} track the same from git.git, but
clutters the show-branch output when shown along with the main
development; ko/master tracks what I have pushed out already and
refetched from the kernel.org server), and often run:
$ git show-branch ko/master heads/*
to view only the ko/master head and branches I keep immediately
under $GIT_DIR/refs/heads. With this change, I can have this in
my $GIT_DIR/config file:
[showbranch]
default = ko/master
default = heads/*
and say
$ git show-branch
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-push.sh')
0 files changed, 0 insertions, 0 deletions