* [RFC] Rename git-rm --cached to --index
@ 2008-05-28 23:14 Nico -telmich- Schottelius
2008-05-28 23:25 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Nico -telmich- Schottelius @ 2008-05-28 23:14 UTC (permalink / raw)
To: git; +Cc: Nico -telmich- Schottelius
[-- Attachment #1: Type: text/plain, Size: 777 bytes --]
Hello!
I just re-read the git-rm manpage and recognized git-rm knows about
the --cached option. As in current git we do not talk about the cache,
but about the index, it would imho make sense to rename --cache to
--index in a user friendly way:
- add --index to git-rm
- add --index to manpage of git-rm
- still support --cached in git-rm
- add hint in manpage that --cached is old naming style
I think naming it --index would make life more consistent for new users
of git.
Now I'm interested in your opinion ;-)
Sincerly
Nico
P.S.: As always, please CC me on reply
--
Think about Free and Open Source Software (FOSS).
http://nico.schottelius.org/documentations/foss/the-term-foss/
PGP: BFE4 C736 ABE5 406F 8F42 F7CF B8BE F92A 9885 188C
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC] Rename git-rm --cached to --index
2008-05-28 23:14 [RFC] Rename git-rm --cached to --index Nico -telmich- Schottelius
@ 2008-05-28 23:25 ` Junio C Hamano
2008-05-28 23:57 ` Wincent Colaiuta
0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2008-05-28 23:25 UTC (permalink / raw)
To: Nico -telmich- Schottelius; +Cc: git
Please don't make naming inconsistent. --index means "do things that
usually affect only work tree also to the index as well", while --cached
means "act only on the index" (study "git apply" for another example).
"git rm" that does not touch work tree but removes only the index entry
should be named --cached.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC] Rename git-rm --cached to --index
2008-05-28 23:25 ` Junio C Hamano
@ 2008-05-28 23:57 ` Wincent Colaiuta
0 siblings, 0 replies; 3+ messages in thread
From: Wincent Colaiuta @ 2008-05-28 23:57 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Nico -telmich- Schottelius, git
El 29/5/2008, a las 1:25, Junio C Hamano escribió:
> Please don't make naming inconsistent. --index means "do things that
> usually affect only work tree also to the index as well", while --
> cached
> means "act only on the index" (study "git apply" for another example).
>
> "git rm" that does not touch work tree but removes only the index
> entry
> should be named --cached.
I think this is a bit of an arcane distinction. I wonder if a more
intuitive scheme might be:
"--index" as it is now (for "do things that usually affect only
work tree also to the index as well")
And:
"--index-only" for "act only on the index"
Although the latter is more characters to type than "--cached", it is
a hell of a lot less surprising. For the typing-phobic there's always
completion.
Let the arguments about bikeshed color and breaking people's scripts
ensue!
Cheers,
Wincent
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-05-28 23:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-28 23:14 [RFC] Rename git-rm --cached to --index Nico -telmich- Schottelius
2008-05-28 23:25 ` Junio C Hamano
2008-05-28 23:57 ` Wincent Colaiuta
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox