threads / patch / 43463

patchFix show-ref usagestring

Subject: [PATCH] Fix show-ref usagestring

## tl;dr

One message between Oct 26, 2006 and Oct 26, 2006. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Lars Hjemli· Oct 26, 2006, 18:56 UTC · lore
This describes the abbreviation possibilities for git-show-ref
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
---
 builtin-show-ref.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to builtin-show-ref.c +1 −1
diff --git a/builtin-show-ref.c b/builtin-show-ref.c
index f2912e8..297343b 100644
--- a/builtin-show-ref.c
+++ b/builtin-show-ref.c
@@ -3,7 +3,7 @@ #include "refs.h"
 #include "object.h"
 #include "tag.h"
 
-static const char show_ref_usage[] = "git show-ref [-q|--quiet] [--verify] [-h|--head] [-d|--dereference] [-s|--hash] [--tags] [--heads] [--] [pattern*]";
+static const char show_ref_usage[] = "git show-ref [-q|--quiet] [--verify] [-h|--head] [-d|--dereference] [-s|--hash[=<length>]|--abbrev[=<length>]] [--tags] [--heads] [--] [pattern*]";
 
 static int deref_tags = 0, show_head = 0, tags_only = 0, heads_only = 0,
 	found_match = 0, verify = 0, quiet = 0, hash_only = 0, abbrev = 0;
-- 
1.4.3.2

← back to recent threads