Skip to content

Commit

Permalink
Removing -n option from git-diff-files documentation
Browse files Browse the repository at this point in the history
-n is not a short form of --no-index as the documentation
suggests.  Removing it from the documentation and command
usage string.

Signed-off-by: Andrew Ruder <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
aeruder authored and Junio C Hamano committed Apr 27, 2007
1 parent 8abe88a commit 4551d05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Documentation/git-diff-files.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ git-diff-files - Compares files in the working tree and the index

SYNOPSIS
--------
'git-diff-files' [-q] [-0|-1|-2|-3|-c|--cc|-n|--no-index] [<common diff options>] [<path>...]
'git-diff-files' [-q] [-0|-1|-2|-3|-c|--cc|--no-index] [<common diff options>] [<path>...]

DESCRIPTION
-----------
Expand Down Expand Up @@ -36,7 +36,7 @@ omit diff output for unmerged entries and just show "Unmerged".
diff, similar to the way 'diff-tree' shows a merge
commit with these flags.

\-n,\--no-index::
--no-index::
Compare the two given files / directories.

-q::
Expand Down
2 changes: 1 addition & 1 deletion builtin-diff-files.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include "builtin.h"

static const char diff_files_usage[] =
"git-diff-files [-q] [-0/-1/2/3 |-c|--cc|-n|--no-index] [<common diff options>] [<path>...]"
"git-diff-files [-q] [-0/-1/2/3 |-c|--cc|--no-index] [<common diff options>] [<path>...]"
COMMON_DIFF_OPTIONS_HELP;

int cmd_diff_files(int argc, const char **argv, const char *prefix)
Expand Down

0 comments on commit 4551d05

Please sign in to comment.