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

Re: commit log encoding [Was: [PATCH 1/2] tree-wide: fix typos "offest" -> "offset"]

From
Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Date
Nov 11, 2009, 14:13 UTC
Message-ID
<20091111141342.GA1849@pengutronix.de>
In-Reply-To
<alpine.LSU.2.00.0911111318260.15039@wotan.suse.de>
On Wed, Nov 11, 2009 at 01:19:32PM +0100, Jiri Kosina wrote:
Show 7 quoted lines
> On Wed, 11 Nov 2009, Uwe Kleine-König wrote:
> 
> > > Thanks for noticing, I had a bug in my git charset config for quite some 
> > > time. Fixed it now.
> > Now my name is latin1 encoded.  It should be utf-8, doesn't it?
> 
> It's not latin1, it's iso-8859-2
For my name it makes no difference.
>                                   which is what I use on my terminals.
> And git can handle that fine too (it stores the encoding together with the 
> commit).
Ah, OK, that's news to me, but you're right.  I have here:
	~/gsrc/linux-2.6$ git cat-file commit 30ff0743f88a70f52a4de5ea5bcb1fd29bcfab2d
	tree 6121d35bb2606878be636e897fa77cd51804d724
	parent 916b7c73db593510d5c38706be2f2888981747ee
	author Uwe Kleine-K�nig <u.kleine-koenig@pengutronix.de> 1256757064 +0100
	committer Jiri Kosina <jkosina@suse.cz> 1257780224 +0100
	encoding ISO-8859-2
	tree-wide: fix typos "couter" -> "counter"
	This patch was generated by
		git grep -E -i -l 'couter' | xargs -r perl -p -i -e 's/couter/counter/'
	Signed-off-by: Uwe Kleine-K�nig <u.kleine-koenig@pengutronix.de>
	Signed-off-by: Jiri Kosina <jkosina@suse.cz>

So the remaining question is: Does the encoding specified in the encoding "header" also apply to the other headers?

If yes[1] then there's a bug in git-shortlog
	~/gsrc/linux-2.6$ git shortlog linus/master..trivial/for-next | grep Uwe
	Uwe Kleine-K�nig (5):
(with linus/master = 799dd75b1a8380a967c929a4551895788c374b31,
trivial/for-next = 4030ec040a0e21fe9953da70eaa59ee7b4f2297b).
 
Best regards
Uwe

[1] git log linus/master..trivial/for-next looks OK, so I suspect it does apply.

-- 
Pengutronix e.K.                              | Uwe Kleine-König            |
Industrial Linux Solutions                    | http://www.pengutronix.de/  |
Next: Uwe Kleine-König
Message 1 of 5 in “Re: commit log encoding [Was: [PATCH 1/2] tree-wide: fix typos "offest" -> "offset"]”
  1. Uwe Kleine-KönigNov 11, 2009
  2. shortlog: respect commit encodingUwe Kleine-König, Nov 24, 2009
  3. more problems with commit encoding [Was: [PATCH] shortlog: respect commit encoding]Uwe Kleine-König, Nov 24, 2009
  4. Junio C HamanoNov 25, 2009
  5. Uwe Kleine-KönigNov 25, 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.