summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-09-10 18:24:46 -0700
committerJunio C Hamano <junkio@cox.net>2005-09-10 18:27:20 -0700
commitc9d023b2a63ef233c63e1b8f95aabac74362719d (patch)
tree650c8ef0ed5126fa499194fc8997f31472a5ffb0
parentb595ed1478e6240593df4c927c4a240575f53d44 (diff)
downloadgit-c9d023b2a63ef233c63e1b8f95aabac74362719d.tar.gz
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>
-rw-r--r--show-branch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/show-branch.c b/show-branch.c
index c117c536da..262acf5cef 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,