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

Re: git update index question

From
LHLars Hjemli <hjemli@gmail.com>
Date
Oct 17, 2007, 12:49 UTC
Message-ID
<8c5c35580710170549n25c8b692w2466091ea56d641e@mail.gmail.com>
In-Reply-To
<4715E2AB.4030900@filmaura.com>
On 10/17/07, Gonzalo Garramuno <gga@filmaura.com> wrote:
> what's the proper way to rebuild git's index file for all the files that
> were to be committed but weren't due to the abort.

Have you tried 'git commit -a'? It will run update-index on all modified files prior to executing the hook.

Btw: If you want to inspect your changes for offending whitespace,
'git diff --color' and  'git diff --cached --color' are your friends.
And if you give up, there is also 'git commit -a --no-verify'.

-- larsh

Previous: Gonzalo GarramunoNext: Gonzalo Garramuno
Message 2 of 4 in “git update index question”
  1. Gonzalo GarramunoOct 17, 2007
  2. Lars HjemliOct 17, 2007
  3. Gonzalo GarramunoOct 17, 2007
  4. Lars HjemliOct 17, 2007

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.