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

Re: Latest builtin-commit series

From
Kristian Høgsberg <krh@redhat.com>
Date
Sep 18, 2007, 23:15 UTC
Message-ID
<1190157301.7157.1.camel@hinata.boston.redhat.com>
In-Reply-To
<7vbqbzvcf4.fsf@gitster.siamese.dyndns.org>
On Tue, 2007-09-18 at 15:25 -0700, Junio C Hamano wrote:
Show 14 quoted lines
> Kristian Høgsberg <krh@redhat.com> writes:
> 
> > Better late than never:
> >
> >       * rebase to Pierres strbuf changes.  Note, there is still some
> >         strbuf tweaking required, to let stripspace work on a strbuf.
> >         Also, I changed the semantics of stripspace to always add a
> >         newline if the last line doesn't have one.  I believe the
> >         current odd semantics (always remove the last newline) comes
> >         from not being able to easily add a newline, but now that it's a
> >         strbuf, that's easy.
> 
> I do not find the "remove trailing newline" so odd.  Didn't it
> come because you sometimes needed to _not_ add it?
All users add a trailing newline if it's not present after stripping.
Show 13 quoted lines
> >       * Set the test suite default editor to '/bin/true' instead of ':'.
> >         Since we're not exec'ing the editor from shell anymore, ':'
> >         won't work.  Maybe we should special case ':' in launch_editor
> >         or perhaps make launch_editor use system(3).  Not sure.
> 
> We've had a few threads on the list about what to do with:
> 
> 	GIT_EDITOR='emacs -nw'
> 
> I think David's 08874658b450600e72bb7cb0d0747c1ec4b0bfe1
> (git-sh-setup.sh: make GIT_EDITOR/core.editor/VISUAL/EDITOR
> accept commands) is a sensible to deal with this issue, and
> prefer to see the same semantics kept in the C version.
Ok, I'll take a look at that commit.
Kristian
Previous: Junio C HamanoNext: Pierre Habouzit
Message 5 of 7 in “Latest builtin-commit series”
  1. Kristian HøgsbergSep 18, 2007
  2. Alex RiesenSep 18, 2007
  3. Johannes SchindelinSep 18, 2007
  4. Junio C HamanoSep 18, 2007
  5. Kristian HøgsbergSep 18, 2007
  6. Pierre HabouzitSep 18, 2007
  7. Junio C HamanoSep 19, 2007

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.