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

Re: Why is there no git-update-cache --modified (aka I give up)

From
MSMarc Singer <elf@buici.com>
Date
Jul 12, 2005, 15:53 UTC
Message-ID
<20050712155316.GA5841@buici.com>
In-Reply-To
<7v7jfwbfvj.fsf@assigned-by-dhcp.cox.net>
On Tue, Jul 12, 2005 at 01:14:24AM -0700, Junio C Hamano wrote:
Show 11 quoted lines
> Marc Singer <elf@buici.com> writes:
> 
> >   # git-diff-cache HEAD
> >
> > is really nice.  But, do I really have to invoke git-update-cache with
> > every modified file?  I could write a script to cul the filenames from
> > git-diff-cache, but I'm having a hard time believing that that is how
> > others are preparing their commits.
> 
> Me too.  By the way, I think you mean diff-files not
> diff-cache.
No, I mean git-diff-cache.  I find that this works pretty well, though.
  # git-update-cache `git-diff-cache | cut -f2`
It looks like the same thing works for git-diff-files. 
  # git-update-cache `git-diff-files | cut -f2`
This seems to agree with the way you handle things.

Similarly, there is the need to determine which files are new to the tree. This isn't much of a burden when creating files in the tree, but can be bothersome when using patch since git-apply is conservative about fuzz.

Previous: Junio C HamanoNext: Matthias Urlichs
Message 4 of 9 in “Why is there no git-update-cache --modified (aka I give up)”
  1. Marc SingerJul 12, 2005
  2. Petr BaudisJul 12, 2005
  3. Junio C HamanoJul 12, 2005
  4. Marc SingerJul 12, 2005
  5. Matthias UrlichsJul 12, 2005
  6. Junio C HamanoJul 12, 2005
  7. diff-stages: support "-u" as a synonym for "-p".Junio C Hamano, Jul 13, 2005
  8. git-diff-*: --name-only and --name-only-z.Junio C Hamano, Jul 13, 2005
  9. Clean up diff option descriptions.Junio C Hamano, Jul 13, 2005

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.