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

Re: [PATCH v4 2/4] i18n.patchencoding: introduce a new config variable

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 29, 2010, 20:23 UTC
Message-ID
<7vlj4b3mme.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1290971417-4474-3-git-send-email-r0bertz@gentoo.org>
"ZHANG, Le" <r0bertz@gentoo.org> writes:
> This varible will be used by git mailinfo's --recode-patch parameter only.
I have a few complaints and observations about this:
 - The patch order is screwed up in the series.  Without knowing what
   the --recode-patch option does, the reader is forced to look-ahead
   before judging this patch.
 - No documentation in the same patch as the feature is added.  I am
   guessing that the new configuration variable (and the new option we
   will see laster) means "the patchfile I got is in this encoding but the
   mail header does not mark it as such, so I am giving what encoding it
   is", but this forces the reader to look-ahead.
 - "It will be used by ... only", says who?  In an environment where
   people send patches in a local encoding but want to keep their
   repository in a different encoding, it may not be totally implausible
   to wish "format-patch" to pay attention to this variable to _produce_
   the output in that encoding, especially given the name of the variable
   that does not say anything about in which direction it is used, no?
 - Assuming that I guessed the meaning of this option and parameter right,
   I am not sure if this should be a configuration variable.  It implies
   that the majority of patches, if not all, are in this single local
   encoding that is different from the encoding used in the repository.
   Is it common?  I dunno.
Previous: ZHANG, LeNext: ZHANG, Le
Message 6 of 9 in “add --recode-patch parameter to mailinfo and am”
  1. 0/4 add --recode-patch parameter to mailinfo and amZHANG, Le, Nov 28, 2010
  2. 1/4 mailinfo.c: convert_to_utf8(): added a target_charset parameterZHANG, Le, Nov 28, 2010
  3. Junio C HamanoNov 29, 2010
  4. ZHANG, LeApr 16, 2011
  5. 2/4 i18n.patchencoding: introduce a new config variableZHANG, Le, Nov 28, 2010
  6. Junio C HamanoNov 29, 2010
  7. 3/4 git mailinfo: added a --recode-patch parameterZHANG, Le, Nov 28, 2010
  8. Junio C HamanoNov 29, 2010
  9. 4/4 git am: added a --recode-patch parameterZHANG, Le, Nov 28, 2010

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.