Skip to content

Commit c7fae5f

Browse files
g-papegitster
authored andcommitted
git-merge-index documentation: clarify synopsis
The options following <merge-program> are not -a, --, or <file>..., but either -a, or -- <file>..., while -- is optional. Signed-off-by: Gerrit Pape <pape@smarden.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 0fb7fc7 commit c7fae5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Documentation/git-merge-index.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ git-merge-index - Run a merge for files needing merging
88

99
SYNOPSIS
1010
--------
11-
'git-merge-index' [-o] [-q] <merge-program> (-a | \-- | <file>\*)
11+
'git-merge-index' [-o] [-q] <merge-program> (-a | [--] <file>\*)
1212

1313
DESCRIPTION
1414
-----------

merge-index.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ int main(int argc, char **argv)
9191
signal(SIGCHLD, SIG_DFL);
9292

9393
if (argc < 3)
94-
usage("git-merge-index [-o] [-q] <merge-program> (-a | <filename>*)");
94+
usage("git-merge-index [-o] [-q] <merge-program> (-a | [--] <filename>*)");
9595

9696
setup_git_directory();
9797
read_cache();

0 commit comments

Comments
 (0)