Thread (2 messages) flat view 2 messages, 2 authors, 2025-12-10

Re: About --staged ang --cached

From: Junio C Hamano <hidden>
Date: 2025-12-09 23:06:24

Lucas Seiki Oshiro [off-list ref] writes:
Do you think that it would be relevant to add --staged to the other
commands just like [2] did to git-diff? Perhaps this is just a personal
issue, but I find it curious that those commands still have a flag named
after an obsolete name while newer commands are using --staged.
As long as "Only in the index" aspect of the name is kept, I do not
think the exact phrasing matters all that match.  The distinction
between "apply --cached" vs "apply --index" must be expressable even
if you swap "--cached" with something else.

Would it be simpler to remove the label "obsoleted" from the name,
and remove the "--staged" synonym?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help