From: Gonzalo Garramuno <gga@filmaura.com>
To: Lars Hjemli <hjemli@gmail.com>, git@vger.kernel.org
Subject: Re: git update index question
Date: Wed, 17 Oct 2007 09:58:46 -0300 [thread overview]
Message-ID: <47160706.2000706@filmaura.com> (raw)
In-Reply-To: <8c5c35580710170549n25c8b692w2466091ea56d641e@mail.gmail.com>
Lars Hjemli wrote:
> 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'.
>
Thanks. I found out the root of my problem was actually something else.
I had incorrectly done a chmod a+x on the pre-commit hook when all my
previous commits had not been using it, so I think the pre-commit was
actually catching not my new fix but what was already in the repository.
git-commit -a had no effect due to that.
But it's good to know about the --no-verify option, thou.
--
Gonzalo Garramuño
Film Aura
A New Dawn in Media Companies
gga@filmaura.com
http://www.filmaura.com
next prev parent reply other threads:[~2007-10-17 12:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-17 10:23 git update index question Gonzalo Garramuno
2007-10-17 12:49 ` Lars Hjemli
2007-10-17 12:58 ` Gonzalo Garramuno [this message]
2007-10-17 13:30 ` Lars Hjemli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47160706.2000706@filmaura.com \
--to=gga@filmaura.com \
--cc=git@vger.kernel.org \
--cc=hjemli@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).