git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Potential Issue with ls-tree documentation
@ 2020-01-11  9:46 Kevin Bowersox
  2020-01-13 22:33 ` Re* " Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Bowersox @ 2020-01-11  9:46 UTC (permalink / raw)
  To: git

Within the ls-tree documentation for Git found here: 
https://git-scm.com/docs/git-ls-tree <https://git-scm.com/docs/git-ls-tree>

It mentions the following:

the behaviour is slightly different from that of "/bin/ls" in that the 
<path> denotes just a list of patterns to match, e.g. so specifying 
directory name (without |-r|) will behave differently, and order of the 
arguments does not matter.

I'm wondering if this statement is accurate.  Here is my reasoning:

When using this form of the command:

git ls-tree <tree-ish> [<path>]

the <tree-ish> (assuming this is typically a branch name) must be 
specified prior to the path, making the order of the arguments matter 
when issuing the command.

If my reasoning is correct I would be glad to submit the changes for 
review/merge.

Appreciate any insights.

Kevin Bowersox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-01-13 22:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-11  9:46 Potential Issue with ls-tree documentation Kevin Bowersox
2020-01-13 22:33 ` Re* " Junio C Hamano
2020-01-13 22:55   ` Elijah Newren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).