git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Implement git-staged, an alias for 'git diff --cached'.

From
TLTeemu Likonen <tlikonen@iki.fi>
Date
Oct 29, 2008, 18:30 UTC
Message-ID
<878ws7w8xc.fsf@iki.fi>
In-Reply-To
<E4E10B61-FA92-417C-9046-F9DE3B48C2A6@wincent.com>
Wincent Colaiuta (2008-10-29 18:42 +0100) wrote:
Show 7 quoted lines
> El 29/10/2008, a las 18:03, Johannes Schindelin escribió:
>> I completely disagree. If the existing set of commands causes
>> confusion, we need to deprecate those parts and add new commands.
>> Even if we have a ton of commands already.
>
> The confusion isn't at the command level; it's at the switch/option
> level. The solution isn't to add a new command.

I don't remember being confused in particular area but I think it's a _very_ good thing that the following three are behind the same "diff" command:

    git diff
    git diff --cached       (or --staged)
    git diff HEAD
It's also good idea to pretty much always teach those three together.
Previous: Wincent ColaiutaNext: David Kågedal
Message 16 of 25 in “Implement git-staged, an alias for 'git diff --cached'.”
  1. Implement git-staged, an alias for 'git diff --cached'.David Symonds, Oct 28, 2008
  2. Jeff KingOct 28, 2008
  3. Implement git-staged, an alias for 'git diff --cached'.David Symonds, Oct 28, 2008
  4. Jeff KingOct 29, 2008
  5. Implement git-staged, an alias for 'git diff --cached'.David Symonds, Oct 29, 2008
  6. Johannes SchindelinOct 29, 2008
  7. Jeff KingOct 29, 2008
  8. Wincent ColaiutaOct 29, 2008
  9. Johannes SchindelinOct 29, 2008
  10. Stephan BeyerOct 29, 2008
  11. Johannes SchindelinOct 29, 2008
  12. Wincent ColaiutaOct 29, 2008
  13. Johannes SchindelinOct 29, 2008
  14. Pascal ObryOct 29, 2008
  15. Wincent ColaiutaOct 29, 2008
  16. Teemu LikonenOct 29, 2008
  17. David KågedalOct 29, 2008
  18. Johannes SchindelinOct 29, 2008
  19. Wincent ColaiutaOct 29, 2008
  20. Stephan BeyerOct 29, 2008
  21. Jeff KingOct 29, 2008
  22. Brandon CaseyOct 29, 2008
  23. Jeff KingOct 29, 2008
  24. Pascal ObryOct 29, 2008
  25. Felipe ContrerasOct 29, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.