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

Re: git commit <path> scanning entire working tree?

From
Boyd Stephen Smith Jr. <bss@iguanasuicide.net>
Date
Feb 17, 2009, 02:57 UTC
Message-ID
<200902162057.48460.bss@iguanasuicide.net>
In-Reply-To
<7vwsbpewkl.fsf@gitster.siamese.dyndns.org>
On Monday 16 February 2009 18:28:10 Junio C Hamano wrote:
Show 11 quoted lines
> skillzero@gmail.com writes:
> > When I do a 'git commit <path to a single file>', git seems to scan
> > the entire working tree.  [I]t takes quite a while (5 or so
> > seconds) before I can even edit the commit message.
>
> Do you mean you edit the commit message, starting from the message
> template "git commit" gives you?
>
> The template lists "Changes to be committed", but
> also "Changed but not updated" and "Untracked files".  You cannot generate
> the latter two lists without checking with your work tree.
So, specify one or more -m options and you shouldn't see the scan.
-- 
Boyd Stephen Smith Jr.                   ,= ,-_-. =.
bss@iguanasuicide.net                   ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy         `-'(. .)`-'
http://iguanasuicide.net/                    \_/
Previous: Junio C HamanoNext: skillzero@gmail.com
Message 3 of 7 in “git commit <path> scanning entire working tree?”
  1. skillzero@gmail.comFeb 16, 2009
  2. Junio C HamanoFeb 17, 2009
  3. Boyd Stephen Smith Jr.Feb 17, 2009
  4. skillzero@gmail.comFeb 17, 2009
  5. Boyd Stephen Smith Jr.Feb 17, 2009
  6. Junio C HamanoFeb 17, 2009
  7. skillzero@gmail.comFeb 18, 2009

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.