Skip to content

Commit 7a461b5

Browse files
committed
Document ls-files --with-tree=<tree-ish>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent cba8d48 commit 7a461b5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Documentation/git-ls-files.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ SYNOPSIS
1515
[-x <pattern>|--exclude=<pattern>]
1616
[-X <file>|--exclude-from=<file>]
1717
[--exclude-per-directory=<file>]
18-
[--error-unmatch]
18+
[--error-unmatch] [--with-tree=<tree-ish>]
1919
[--full-name] [--abbrev] [--] [<file>]\*
2020

2121
DESCRIPTION
@@ -81,6 +81,13 @@ OPTIONS
8181
If any <file> does not appear in the index, treat this as an
8282
error (return 1).
8383

84+
--with-tree=<tree-ish>::
85+
When using --error-unmatch to expand the user supplied
86+
<file> (i.e. path pattern) arguments to paths, pretend
87+
that paths which were removed in the index since the
88+
named <tree-ish> are still present. Using this option
89+
with `-s` or `-u` options does not make any sense.
90+
8491
-t::
8592
Identify the file status with the following tags (followed by
8693
a space) at the start of each line:

0 commit comments

Comments
 (0)