1. Stefan Saasen
  2. git


Andrew Ruder  committed 4551d05

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>

  • Participants
  • Parent commits 8abe88a
  • Branches master

Comments (0)

Files changed (2)

File Documentation/git-diff-files.txt

View file
-'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>...]
 	diff, similar to the way 'diff-tree' shows a merge
 	commit with these flags.
 	Compare the two given files / directories.

File builtin-diff-files.c

View file
 #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>...]"
 int cmd_diff_files(int argc, const char **argv, const char *prefix)