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

BUG: "git checkout" displays Q-escaped commit titles

From
TLTeemu Likonen <tlikonen@iki.fi>
Date
May 2, 2008, 13:39 UTC
Message-ID
<20080502133903.GA3079@mithlond.arda.local>

When commit message's first line (i.e. the title) contains non-Ascii characters "git checkout <commit>" displays this title in Q-escaped form which looks something like this: =?utf-8?q?=C3=84=C3=A4kk=C3=B6si=C3=A4?=

Steps to reproduce:
$ mkdir repo
$ cd repo
$ git init
$ echo stuff >file
$ git add file
$ git commit -m "Ääkkösiä"
$ git checkout $(git rev-list -1 HEAD)
Note: moving to "dc968d26f2fb74a6991c03798ee1d7aab458548a" which isn't a local branch
If you want to create a new branch from this checkout, you may do so
(now or later) by using -b with the checkout command again. Example:
  git checkout -b <new_branch_name>
HEAD is now at dc968d2... =?utf-8?q?=C3=84=C3=A4kk=C3=B6si=C3=A4?=
Next: Jeff King
Message 1 of 4 in “BUG: "git checkout" displays Q-escaped commit titles”
  1. Teemu LikonenMay 2, 2008
  2. Jeff KingMay 2, 2008
  3. Junio C HamanoMay 4, 2008
  4. Jeff KingMay 4, 2008

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.