Skip to content

Commit 50df963

Browse files
committed
doc: give attr.tree a bit more visibility
In "git help config" output, attr.tree mentions both --attr-source and GIT_ATTR_SOURCE, but the description of --attr-source and GIT_ATTR_SOURCE that appear in "git help git", attr.tree is missing. Add it so that these three are described together in both places. Signed-off-by: Junio C Hamano <[email protected]>
1 parent c2b3f2b commit 50df963

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Documentation/git.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,10 @@ If you just want to run git as if it was started in `<path>` then use
224224
--attr-source=<tree-ish>::
225225
Read gitattributes from <tree-ish> instead of the worktree. See
226226
linkgit:gitattributes[5]. This is equivalent to setting the
227-
`GIT_ATTR_SOURCE` environment variable.
227+
`GIT_ATTR_SOURCE` environment variable. The `attr.tree`
228+
configuration variable is used as a fallback when this option
229+
or the environment variable are not in use.
230+
228231

229232
GIT COMMANDS
230233
------------

0 commit comments

Comments
 (0)