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

Re: 'git commit --short' without touching index?

From
Ffriedan@muon.rutgers.edu <friedan@muon.rutgers.edu>
Date
Jul 3, 2010, 10:08 UTC
Message-ID
<4C2F0C20.1020004@muon.rutgers.edu>
In-Reply-To
<20100703091748.GA11714@sigill.intra.peff.net>
Thanks.  Your suggestion seems to work.  Much appreciated.
Daniel
On 2010.07.03 9:17 AM, Jeff King wrote:
Show 13 quoted lines
> However, both "status" and "commit --dry-run" will opportunistically
> refresh the index. If you don't want to touch the index at all, you can
> use a combination of:
> 
>   # show changes between HEAD and index
>   git diff-index HEAD
> 
>   # show changes between index and working tree
>   git diff-files
> 
>   # show untracked files
>   git ls-files --exclude-standard -o
> 
Previous: Jeff KingNext: Junio C Hamano
Message 3 of 7 in “'git commit --short' without touching index?”
  1. DanielJul 3, 2010
  2. Jeff KingJul 3, 2010
  3. friedan@muon.rutgers.eduJul 3, 2010
  4. Junio C HamanoJul 5, 2010
  5. Jeff KingJul 5, 2010
  6. Junio C HamanoJul 5, 2010
  7. Jeff KingJul 6, 2010

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.