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

Re: [PATCH] add a diff-files command

From
Nicolas Pitre <nico@cam.org>
Date
Apr 28, 2005, 16:56 UTC
Message-ID
<Pine.LNX.4.62.0504281238130.14033@localhost.localdomain>
In-Reply-To
<7vr7gu97xq.fsf@assigned-by-dhcp.cox.net>
On Thu, 28 Apr 2005, Junio C Hamano wrote:
> If you want to see if working tree has some junk other than
> those listed in dontdiff, wouldn't this be sufficient?
> 
>   $ show-files --others | grep -f dontdiff

Well, it would work if the dontdiff file other people are maintaining was made up of regexps. But it is made of shell wildcard patterns meant to be used with the -X switch of the diff command.

> Again, "checking for potentially uncommitted" files is what
> you use show-files --others for, not show-diff.

Indeed. And yesterday I realized that the (currently unimplemented) --ignore switch to show-files, combined with the exclusion pattern list, whould be more logical than teaching show-diff (which I still think is a misnamer in the context of the other diff tools) about files unknown to the cache. The patch to show-files is also much smaller and logical.

BTW, I don't do this out of pure entousiasm but rather trying to make my own workflow with the Linux kernel source tree more efficient in the context of git usage. My pure coding entousiasm lies somewhere else.

Nicolas
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 6 in “add a diff-files command”
  1. add a diff-files commandNicolas Pitre, Apr 27, 2005
  2. Junio C HamanoApr 27, 2005
  3. Nicolas PitreApr 28, 2005
  4. Junio C HamanoApr 28, 2005
  5. Nicolas PitreApr 28, 2005
  6. Junio C HamanoApr 28, 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.