From: Andrew Keller Date: Fri, 15 Jul 2016 20:30:28 GMT Subject: Re: obsolete index in wt_status_print after pre-commit hook runs Message-ID: <2ED67396-2530-4D1C-8F21-1C30983DB9DC@kellerfarm.com> In-Reply-To: <5988D847-25A2-4997-9601-083772689879@covenanteyes.com> Am 15.07.2016 um 12:34 nachm. schrieb Andrew Keller : > I pulled out the source for version 2.9.1 and briefly skimmed how run_commit and > prepare_to_commit work. It seems that Git already understands that a pre-commit > hook can change the index, and it rereads the index before running the > prepare-commit-msg hook: https://github.com/git/git/blob/v2.9.1/builtin/commit.c#L941-L951 Quick question: Why does Git reread the index after the pre-commit hook runs? Thanks, - Andrew Keller