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

Re: [PATCH/RFC] git svn: optionally trim imported log messages

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 24, 2012, 23:38 UTC
Message-ID
<7vk3wnyi5u.fsf@alter.siamese.dyndns.org>
In-Reply-To
<5038027B.4090208@debian.org>
Robert Luberda <robert@debian.org> writes:
Show 9 quoted lines
>> I think it would be saner to call them "trailers" to avoid
>> confusion.
>
> Thanks, I haven't got any idea how to call them, especially because
> existing git documentation refers to them just by using the word `line',
> e.g.:
>
>  git-am.txt:     Add a `Signed-off-by:` line to the commit message,
>  git-cherry-pick.txt:    Add Signed-off-by line at the end of the

Then "line" is fine; they never come before the body, and are certainly not headers.

Show 7 quoted lines
>> There needs an explanation to the reader why this is an optional
>> feature.
>
> OK, I'll add some explanation. Basically it is optional, per Eric
> request, for backward compatibility  to make it possible to work on a
> centralized clone of svn repository by people using both old and new
> versions of git svn.

That matches my recollection. I didn't ask you to explain it to me, by the way, as I've skimmed the discussion during the review.

I wanted the resulting history and the documentation to explain that to git-svn users.

> NL means newline. The new line characters implicitly added after each
> commit message line, that's why the value is empty. But, yes, this can
> be misleading. I'd prefer to keep it short, so would EL (i.e.
> `empty-line') be an acceptable name?
I'd rather call it "$EMPTY"; $NL is already obscure, nobody uses $EL.
Show 9 quoted lines
>> 	next_N () {
>> 		N=$(($N + 1)) &&
>>                 ...
>> 	}
>> 
>> (the above also has two style fixes).
>
> Just to be sure: shall the `...' line start a new level of indentation
> or is it a typo?

It was meant to align with "N=", but perhaps HT and quoting interacted badly or something.

Previous: Robert LuberdaNext: Eric Wong
Message 9 of 13 in “git svn: don't introduce new paragraph for git-svn-id”
  1. git svn: don't introduce new paragraph for git-svn-idRobert Luberda, Aug 1, 2012
  2. Eric WongAug 1, 2012
  3. Robert LuberdaAug 1, 2012
  4. Eric WongAug 1, 2012
  5. Robert LuberdaAug 19, 2012
  6. git svn: optionally trim imported log messagesRobert Luberda, Aug 19, 2012
  7. Junio C HamanoAug 19, 2012
  8. Robert LuberdaAug 24, 2012
  9. Junio C HamanoAug 24, 2012
  10. Eric WongAug 21, 2012
  11. Junio C HamanoAug 21, 2012
  12. Robert LuberdaAug 24, 2012
  13. Eric WongAug 26, 2012

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.