OSDN Git Service

cat-file: put spaces around pipes in usage string
authorAlex Henrie <alexhenrie24@gmail.com>
Thu, 8 Sep 2016 04:34:00 +0000 (22:34 -0600)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 Sep 2016 19:16:38 +0000 (12:16 -0700)
This makes the style a little more consistent with other usage strings,
and will resolve a warning at
https://www.softcatala.org/recursos/quality/git.html

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/cat-file.c

index 2dfe626..560f6c2 100644 (file)
@@ -440,7 +440,7 @@ static int batch_objects(struct batch_options *opt)
 }
 
 static const char * const cat_file_usage[] = {
-       N_("git cat-file (-t [--allow-unknown-type]|-s [--allow-unknown-type]|-e|-p|<type>|--textconv) <object>"),
+       N_("git cat-file (-t [--allow-unknown-type] | -s [--allow-unknown-type] | -e | -p | <type> | --textconv) <object>"),
        N_("git cat-file (--batch | --batch-check) [--follow-symlinks]"),
        NULL
 };