Skip to content

Commit 4551d05

Browse files
aeruderJunio C Hamano
authored andcommitted
Removing -n option from git-diff-files documentation
-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 <andy@aeruder.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 8abe88a commit 4551d05

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Documentation/git-diff-files.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ git-diff-files - Compares files in the working tree and the index
88

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

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

39-
\-n,\--no-index::
39+
--no-index::
4040
Compare the two given files / directories.
4141

4242
-q::

builtin-diff-files.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "builtin.h"
1111

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

1616
int cmd_diff_files(int argc, const char **argv, const char *prefix)

0 commit comments

Comments
 (0)