ls-files --full-name: usage string and documentation.
Somehow this option was not mentioned anywhere in the documentation nor the usage string. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Dec 23, 2005 at 15:51 UTC
9a84074d08e2e816a3310eb34ac69b584faf817b
2 files changed
+9
-2
Documentation/git-ls-files.txt
+8
-1
@@ -13,7 +13,8 @@ SYNOPSIS
13
(-[c|d|o|i|s|u|k|m])\*
14
[-x <pattern>|--exclude=<pattern>]
15
[-X <file>|--exclude-from=<file>]
16
- [--exclude-per-directory=<file>] [--] [<file>]\*
16
+ [--exclude-per-directory=<file>]
17
+ [--full-name] [--] [<file>]\*
18
19
DESCRIPTION
20
-----------
@@ -77,6 +78,12 @@ OPTIONS
78
K:: to be killed
79
? other
80
81
+--full-name::
82
+ When run from a subdirectory, the command usually
83
+ outputs paths relative to the current directory. This
84
+ option forces paths to be output relative to the project
85
+ top directory.
86
+
87
--::
88
Do not interpret any more arguments as options.
89
ls-files.c
+1
-1
@@ -562,7 +562,7 @@ static void verify_pathspec(void)
562
static const char ls_files_usage[] =
563
"git-ls-files [-z] [-t] (--[cached|deleted|others|stage|unmerged|killed|modified])* "
564
"[ --ignored ] [--exclude=<pattern>] [--exclude-from=<file>] "
565
- "[ --exclude-per-directory=<filename> ] [--] [<file>]*";
565
+ "[ --exclude-per-directory=<filename> ] [--full-name] [--] [<file>]*";
566
567
int main(int argc, const char **argv)
568
{