Skip to content

Commit 59a7714

Browse files
René Scharfegitster
authored andcommitted
archive: clarify explanation of --worktree-attributes
Make it a bit clearer that --worktree-attributes is about files in the working tree (checked out files, possibly changed) and not the current working directory ($PWD). Link to the ATTRIBUTES section, which has more details. Reported-by: Amit Bakshi <[email protected]> Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 13cb3bb commit 59a7714

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Documentation/git-archive.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ OPTIONS
5656
Write the archive to <file> instead of stdout.
5757

5858
--worktree-attributes::
59-
Look for attributes in .gitattributes in working directory too.
59+
Look for attributes in .gitattributes files in the working tree
60+
as well (see <<ATTRIBUTES>>).
6061

6162
<extra>::
6263
This can be any options that the archiver backend understands.
@@ -120,6 +121,7 @@ tar.<format>.remote::
120121
user-defined formats, but true for the "tar.gz" and "tgz"
121122
formats.
122123

124+
[[ATTRIBUTES]]
123125
ATTRIBUTES
124126
----------
125127

0 commit comments

Comments
 (0)