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

Re: [PATCH] Add git-find-new-files to spot files added to the tree, but not the repository

From
Linus Torvalds <torvalds@osdl.org>
Date
Jul 23, 2005, 17:43 UTC
Message-ID
<Pine.LNX.4.58.0507231039290.6074@g5.osdl.org>
In-Reply-To
<20050723074219.GB3255@mythryan2.michonline.com>
On Sat, 23 Jul 2005, Ryan Anderson wrote:
Show 6 quoted lines
>
> Add git-find-new-files to find files that are in the tree, but not checked into the repository.
> 
> Most users will probably want to "make clean" before using this for real
> significant changes, as it does such a good job that it finds binaries that
> just got built.

You really want to run "file" on the files. We almost certainly don't want to add binary executables, object files etc etc to the tree, so why even show them?

You should also filter the list by the "ignore" file. And I'd suggest ignoring dot-files by default, for example (maybe add a "-a" flag to disable that, the same way "ls" does).

		Linus
Previous: Ryan AndersonNext: Linus Torvalds
Message 2 of 5 in “Add git-find-new-files to spot files added to the tree, but not the repository”
  1. Add git-find-new-files to spot files added to the tree, but not the repositoryRyan Anderson, Jul 23, 2005
  2. Linus TorvaldsJul 23, 2005
  3. Linus TorvaldsJul 23, 2005
  4. Ryan AndersonJul 25, 2005
  5. Junio C HamanoJul 23, 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.