Skip to content

Commit

Permalink
ls-files --full-name: usage string and documentation.
Browse files Browse the repository at this point in the history
Somehow this option was not mentioned anywhere in the
documentation nor the usage string.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Dec 23, 2005
1 parent 695bf72 commit 9a84074
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion Documentation/git-ls-files.txt
Expand Up @@ -13,7 +13,8 @@ SYNOPSIS
(-[c|d|o|i|s|u|k|m])\*
[-x <pattern>|--exclude=<pattern>]
[-X <file>|--exclude-from=<file>]
[--exclude-per-directory=<file>] [--] [<file>]\*
[--exclude-per-directory=<file>]
[--full-name] [--] [<file>]\*

DESCRIPTION
-----------
Expand Down Expand Up @@ -77,6 +78,12 @@ OPTIONS
K:: to be killed
? other

--full-name::
When run from a subdirectory, the command usually
outputs paths relative to the current directory. This
option forces paths to be output relative to the project
top directory.

--::
Do not interpret any more arguments as options.

Expand Down
2 changes: 1 addition & 1 deletion ls-files.c
Expand Up @@ -562,7 +562,7 @@ static void verify_pathspec(void)
static const char ls_files_usage[] =
"git-ls-files [-z] [-t] (--[cached|deleted|others|stage|unmerged|killed|modified])* "
"[ --ignored ] [--exclude=<pattern>] [--exclude-from=<file>] "
"[ --exclude-per-directory=<filename> ] [--] [<file>]*";
"[ --exclude-per-directory=<filename> ] [--full-name] [--] [<file>]*";

int main(int argc, const char **argv)
{
Expand Down

0 comments on commit 9a84074

Please sign in to comment.