git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* A few usability question about git diff --cached
@ 2007-10-04 12:27 Paolo Ciarrocchi
  2007-10-04 12:54 ` Wincent Colaiuta
  2007-10-04 12:56 ` Miklos Vajna
  0 siblings, 2 replies; 22+ messages in thread
From: Paolo Ciarrocchi @ 2007-10-04 12:27 UTC (permalink / raw)
  To: Git Mailing List

Hi all,
I'm having and interesting discussion with an happy mercurial users
which started reading the git documentation. He raised aquestion that
I'm not able to answer:

> $ git diff --cached
>
> (Without —cached, git-diff(1) will show you any changes that you've
> made but not yet added to the index.) You can also get a brief summary
> of the situation with git-status(1):

Why do we have the option "--cached" and not "--index"?

I believe that, just reading the documentation, is not very easy to
fully understand the role of the index and then we have an option
"--cached" that refers to the index.
Is it a good idea to add and document an option "--index" and remove
from the doc the option "--cached"?

Thanks.

Regards,
-- 
Paolo
http://paolo.ciarrocchi.googlepages.com/

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: A few usability question about git diff --cached
@ 2021-08-14 19:31 Court Rankin
  0 siblings, 0 replies; 22+ messages in thread
From: Court Rankin @ 2021-08-14 19:31 UTC (permalink / raw)
  To: gitster; +Cc: git, paolo.ciarrocchi, vmiklos

Courtney 

Sent from my iPhone

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: A few usability question about git diff --cached
@ 2023-01-12 11:54 Mohammed Al-Mahmeed
  0 siblings, 0 replies; 22+ messages in thread
From: Mohammed Al-Mahmeed @ 2023-01-12 11:54 UTC (permalink / raw)
  To: gitster; +Cc: git, paolo.ciarrocchi, vmiklos



Sent from my iPhone

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

end of thread, other threads:[~2023-01-12 12:08 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-04 12:27 A few usability question about git diff --cached Paolo Ciarrocchi
2007-10-04 12:54 ` Wincent Colaiuta
2007-10-05  5:59   ` Miles Bader
2007-10-05 10:27     ` Wincent Colaiuta
2007-10-05 10:41       ` Miles Bader
2007-10-04 12:56 ` Miklos Vajna
2007-10-04 13:10   ` Paolo Ciarrocchi
2007-10-04 13:14   ` Junio C Hamano
2007-10-04 13:39     ` Paolo Ciarrocchi
2007-10-04 14:09     ` Wincent Colaiuta
2007-10-04 14:34     ` Johannes Schindelin
2007-10-04 14:40       ` Junio C Hamano
2007-10-04 14:47         ` David Kastrup
2007-10-04 14:44       ` Matthieu Moy
2007-10-04 15:51         ` J. Bruce Fields
2007-10-04 16:02           ` Matthieu Moy
2007-10-04 16:19             ` J. Bruce Fields
2007-10-05  6:40               ` Matthieu Moy
2007-10-05  5:22         ` David Tweed
2007-10-04 15:49       ` Wincent Colaiuta
  -- strict thread matches above, loose matches on Subject: below --
2021-08-14 19:31 Court Rankin
2023-01-12 11:54 Mohammed Al-Mahmeed

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).