Skip to content

Commit d0bb136

Browse files
Štěpán Němecgitster
authored andcommitted
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 <[email protected]> Acked-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8842206 commit d0bb136

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

builtin/checkout-index.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ static void checkout_all(const char *prefix, int prefix_length)
155155
}
156156

157157
static const char * const builtin_checkout_index_usage[] = {
158-
"git checkout-index [options] [--] <file>...",
158+
"git checkout-index [options] [--] [<file>...]",
159159
NULL
160160
};
161161

builtin/update-index.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ static void read_index_info(int line_termination)
398398
}
399399

400400
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>...]";
402402

403403
static unsigned char head_sha1[20];
404404
static unsigned char merge_head_sha1[20];

0 commit comments

Comments
 (0)