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

Re: [PATCH] --utf8 is now default for 'git-am'

From
Johannes Sixt <j.sixt@eudaptics.com>
Date
Jan 9, 2007, 08:28 UTC
Message-ID
<45A35243.FB9FB121@eudaptics.com>
In-Reply-To
<7vlkkduqm6.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 11 quoted lines
> @@ -128,7 +128,9 @@ do
>         -s|--s|--si|--sig|--sign|--signo|--signof|--signoff)
>         sign=t; shift ;;
>         -u|--u|--ut|--utf|--utf8)
> -       utf8=t; shift ;;
> +       shift ;; # this is now default
> +       --no-u|--no-ut|--no-utf|--no-utf8)
> +       utf8=; shift ;;
>         -k|--k|--ke|--kee|--keep)
>         keep=t; shift ;;
> 
How is
  git-am --no-utf8 --utf8 mbox

to be interpreted? I'd expect that the last option on the command line has precedence, for example, if git-am is used in a script like this:

  git-am --no-utf8 $userpreferences $mbox
With you patch --no-utf8 always overrides any --utf8 that is specified.
-- Hannes
Previous: Junio C Hamano
Message 2 of 2 in “--utf8 is now default for 'git-am'”
  1. --utf8 is now default for 'git-am'Junio C Hamano, Jan 8, 2007
  2. Johannes SixtJan 9, 2007

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.