From: Jeff King Date: Fri, 24 Apr 2009 14:06:06 GMT Subject: Re: auto commit merge using the default merge message Message-ID: <20090424140606.GB10761@coredump.intra.peff.net> In-Reply-To: <81bfc67a0904231831y31bfb057pa5eaa86d0e153824@mail.gmail.com> On Thu, Apr 23, 2009 at 09:31:10PM -0400, Caleb Cushing wrote: > On Thu, Apr 23, 2009 at 4:32 AM, Junio C Hamano wrote: > > Use "GIT_EDITOR=:" instead.  It also is *true* just like /bin/true, but > > git knows a simple magic about this and avoids an extra fork+exec. > > > > So I could put > > GIT_EDITOR=: > > at the top of my shell script, and then whenever I need to do a > commit, just git commit and it'll work (assuming the commit has a > default message). You need to also export GIT_EDITOR for "git commit" to see it. -Peff