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

Re: auto commit merge using the default merge message

From
Jeff King <peff@peff.net>
Date
Apr 24, 2009, 14:06 UTC
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:
Show 12 quoted lines
> On Thu, Apr 23, 2009 at 4:32 AM, Junio C Hamano <gitster@pobox.com> 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
Previous: Caleb CushingNext: Caleb Cushing
Message 8 of 10 in “auto commit merge using the default merge message”
  1. Caleb CushingApr 23, 2009
  2. Alex RiesenApr 23, 2009
  3. Michael J GruberApr 23, 2009
  4. Junio C HamanoApr 23, 2009
  5. Michael J GruberApr 23, 2009
  6. Brian GernhardtApr 23, 2009
  7. Caleb CushingApr 24, 2009
  8. Jeff KingApr 24, 2009
  9. Caleb CushingApr 24, 2009
  10. Jeff KingApr 24, 2009

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.