From: Yakov Lerner Date: Mon, 12 Jun 2006 19:18:53 GMT Subject: Re: Thoughts on adding another hook to git Message-ID: In-Reply-To: <448DBC2B.1070807@shlrm.org> On 6/12/06, David Kowis wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > Yakov Lerner wrote: > > On 6/12/06, David Kowis wrote: > >> I'd like to be able to modify the commit message before it ends up in > >> the $EDITOR. > > > > Can't you define $EDITOR to point to some script > > which modifies the file as you wish then calls the > > real editor on it ? > > > > I could, but then anything else that uses $EDITOR would also be affected > in the same way... Which would produce interesting results. git-commit sure creates those temp files with specific naming in specific dir. You could check for that in EDITOR script. In the script, you could even check the name of the parent process. Yakov