summaryrefslogtreecommitdiff
path: root/show-branch.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-09-11 01:24:46 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-09-11 01:27:20 (GMT)
commitc9d023b2a63ef233c63e1b8f95aabac74362719d (patch)
tree650c8ef0ed5126fa499194fc8997f31472a5ffb0 /show-branch.c
parentb595ed1478e6240593df4c927c4a240575f53d44 (diff)
downloadgit-c9d023b2a63ef233c63e1b8f95aabac74362719d.zip
git-c9d023b2a63ef233c63e1b8f95aabac74362719d.tar.gz
git-c9d023b2a63ef233c63e1b8f95aabac74362719d.tar.bz2
Fix 'git-show-branch --list <head>'
It mistakenly failed to output anything when given a single head. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'show-branch.c')
-rw-r--r--show-branch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/show-branch.c b/show-branch.c
index c117c53..262acf5 100644
--- a/show-branch.c
+++ b/show-branch.c
@@ -427,7 +427,7 @@ int main(int ac, char **av)
return show_independent(rev, num_rev, ref_name, rev_mask);
/* Show list; --more=-1 means list-only */
- if (1 < num_rev) {
+ if (1 < num_rev || extra < 0) {
for (i = 0; i < num_rev; i++) {
int j;
int is_head = rev_is_head(head_path,