Thread (1 message) 1 message, 1 author, 2022-06-08

Re: [PATCH] ls-files.c: add --only-object-name option

From: Junio C Hamano <hidden>
Date: 2022-06-08 16:09:31

ZheNing Hu [off-list ref] writes:
quoted
But in any case shouldn't this be called --name-only to go with "git
ls-tree"'s version of this? Or is there some subtle difference I'm
missing...?
Eh, git ls-tree --name-only will only show file paths, so maybe
--only-object-name will be better than --object-name-only in git
ls-files.
Yeah, it is not "--name-only" which is about paths, but
"--object-name-only" would be more correct but it is a tad long.

I think ls-tree learned "--object-only" for that fairly recently.
When in doubt, always check the documentation of a similar command
for inspiration.

Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help