@matheusbsbs / matheus-bagliano / commits / d0bb136630
Fork 0

Fix {update,checkout}-index usage strings

The `<file>' argument is optional in both cases (the man pages are already correct). Signed-off-by: Štěpán Němec <stepnem@gmail.com> Acked-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Štěpán Němec committed Oct 8, 2010 at 19:31 UTC d0bb13663000be47d83cbe53b6c4bdc8835625cb
2 files changed +2 -2
builtin/checkout-index.c
+1 -1
@@ -155,7 +155,7 @@ static void checkout_all(const char *prefix, int prefix_length)
155 }
156
157 static const char * const builtin_checkout_index_usage[] = {
158 - "git checkout-index [options] [--] <file>...",
158 + "git checkout-index [options] [--] [<file>...]",
159 NULL
160 };
161
builtin/update-index.c
+1 -1
@@ -398,7 +398,7 @@ static void read_index_info(int line_termination)
398 }
399
400 static const char update_index_usage[] =
401 -"git update-index [-q] [--add] [--replace] [--remove] [--unmerged] [--refresh] [--really-refresh] [--cacheinfo] [--chmod=(+|-)x] [--assume-unchanged] [--skip-worktree|--no-skip-worktree] [--info-only] [--force-remove] [--stdin] [--index-info] [--unresolve] [--again | -g] [--ignore-missing] [-z] [--verbose] [--] <file>...";
401 +"git update-index [-q] [--add] [--replace] [--remove] [--unmerged] [--refresh] [--really-refresh] [--cacheinfo] [--chmod=(+|-)x] [--assume-unchanged] [--skip-worktree|--no-skip-worktree] [--info-only] [--force-remove] [--stdin] [--index-info] [--unresolve] [--again | -g] [--ignore-missing] [-z] [--verbose] [--] [<file>...]";
402
403 static unsigned char head_sha1[20];
404 static unsigned char merge_head_sha1[20];