Re: Consistent terminology: cached/staged/index

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: Consistent terminology: cached/staged/index

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:50:33

Miles Bader [off-list ref] writes:
Michael J Gruber [off-list ref] writes:
quoted
Short options should really not be "wasted" easily. "-s" named after "to
stage" is really problematic, as outlined in this thread.
Er, but the point is that this is _such_ a common operation, that a
short option for it would not be "wasted" at all.
True, but I am afraid "-c" is not it, as it would certainly be confusing
to users who know what "diff" does before they learn "git diff".

And I'd like to also keep "-i" open for "ignore case", which I actually
wished the other day while reviewing a topic.  Unlike "-c", I might
implement it myself not in a distant future when I find time.

Using "-I" (as an abbreviation for "index-only") is tempting, though.

Both "-i" and "-I" are GNU extensions, and the latter traditionally was
useful primarily to ignore cruft left in the file with use of "$Id$", but
we actively discourage its use in git controlled projects, so taking it
over might not be such a big issue.

Re: Consistent terminology: cached/staged/index

From: Miles Bader <hidden>
Date: 2016-06-15 22:50:33

On Tue, Feb 15, 2011 at 2:12 AM, Junio C Hamano [off-list ref] wrote:
Miles Bader [off-list ref] writes:
quoted
Michael J Gruber [off-list ref] writes:
quoted
Short options should really not be "wasted" easily. "-s" named after "to
stage" is really problematic, as outlined in this thread.
Er, but the point is that this is _such_ a common operation, that a
short option for it would not be "wasted" at all.
True, but I am afraid "-c" is not it, as it would certainly be confusing
to users who know what "diff" does before they learn "git diff".
Er...?

Here we were talking about using "-s" (inspired by "--staged"), which
I suggested because you earlier objected to "-c"...

-miles

-- 
Cat is power.  Cat is peace.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help