Skip to content

Commit

Permalink
git-merge-index documentation: clarify synopsis
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gerrit Pape authored and Junio C Hamano committed Feb 22, 2008
1 parent 0fb7fc7 commit c7fae5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Documentation/git-merge-index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ git-merge-index - Run a merge for files needing merging

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

DESCRIPTION
-----------
Expand Down
2 changes: 1 addition & 1 deletion merge-index.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ int main(int argc, char **argv)
signal(SIGCHLD, SIG_DFL);

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

setup_git_directory();
read_cache();
Expand Down

0 comments on commit c7fae5f

Please sign in to comment.