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

Re: [PATCH v2] commit, status: #comment diff output in verbose mode

From
Jeff King <peff@peff.net>
Date
Mar 17, 2011, 19:41 UTC
Message-ID
<20110317194122.GE20508@sigill.intra.peff.net>
In-Reply-To
<4D81BFDD.7050009@drmicha.warpmail.net>
On Thu, Mar 17, 2011 at 09:01:33AM +0100, Michael J Gruber wrote:
Show 12 quoted lines
> > Yuck. You may be literally feeding different charsets into a single
> > buffer of the editor. The best you could do is something like:
> > 
> >   au BufNewFile,BufRead COMMIT_EDITMSG set fenc=utf-8
>
> [...]
>
> Though I'm wondering whether we should do something about it in general
> (we assume utf8 commit messages, don't we), at least in doc. Your
> suggestion above does make things safer (so that you don't screw up the
> commit message accidentally) and would make a good patch to vim's
> filetype.vim

Being perfectly content with ASCII for my native language, I am not a good person to judge. But I wonder how common your situation is. That is, your files are all in latin1, but you continue to use utf8 for your commit messages. Perhaps an easier solution would just be to tell git that you want to make commit messages in latin1?

-Peff
Previous: Michael J GruberNext: Piotr Krukowiecki
Message 10 of 11 in “commit, status: #comment diff output in verbose mode”
  1. commit, status: #comment diff output in verbose modeIan Ward Comfort, Mar 10, 2011
  2. Jeff KingMar 10, 2011
  3. SZEDER GáborMar 10, 2011
  4. Junio C HamanoMar 11, 2011
  5. Jeff KingMar 11, 2011
  6. Jeff KingMar 11, 2011
  7. Michael J GruberMar 11, 2011
  8. Jeff KingMar 17, 2011
  9. Michael J GruberMar 17, 2011
  10. Jeff KingMar 17, 2011
  11. Piotr KrukowieckiMar 13, 2011

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.