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

Re: [PATCH 3/3] tutorial: add discussion of index file, object database

From
Jakub Narebski <jnareb@gmail.com>
Date
May 22, 2006, 15:27 UTC
Message-ID
<e4sl90$l3b$1@sea.gmane.org>
In-Reply-To
<1148255528.61d5d241.2@fieldses.org>
J. Bruce Fields wrote:
Show 6 quoted lines
> +With the right arguments, git diff can also show us the difference
> +between the working directory and the last commit, or between the
> +index and the last commit:
> +
> +------------------------------------------------
> +$ git diff HEAD
[...]
> +$ git diff --cached
Junio C Hamano wrote:
Show 5 quoted lines
> Also, ":<path>" to mean the
> entry in the index is often equivalent to "git diff --cached".
> 
> IOW, these are obscure special purpose notation, and I do not
> think tutorial is a good place to cover them.

Hmm, wouldn't it be nice to have here :<path> mentioned as alternative/extension to --cached, and <ref>:<path> including HEAD:<path> as an extension of HEAD, and <path> as an extension to not having arguments? By extension I mean adding path limiting and some more advanced selection of things to diff.

-- 
Jakub Narebski
Warsaw, Poland
Previous: J. Bruce FieldsNext: Jakub Narebski
Message 6 of 14 in “(unknown)”
  1. J. Bruce FieldsMay 21, 2006
  2. J. Bruce FieldsMay 21, 2006
  3. J. Bruce FieldsMay 21, 2006
  4. Junio C HamanoMay 22, 2006
  5. J. Bruce FieldsMay 22, 2006
  6. Jakub NarebskiMay 22, 2006
  7. Jakub NarebskiMay 22, 2006
  8. Junio C HamanoMay 22, 2006
  9. Jakub NarebskiMay 22, 2006
  10. J. Bruce FieldsMay 22, 2006
  11. J. Bruce FieldsMay 21, 2006
  12. Junio C HamanoMay 22, 2006
  13. J. Bruce FieldsMay 22, 2006
  14. git help: remove whatchanged from list of common commandsMartin Waitz, May 22, 2006

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.