All of lore.kernel.org
 help / color / mirror / Atom feed
* Subject: Encoding of git diff --name-only stdout
@ 2021-04-06 12:20 Andrey Bienkowski
  2021-04-06 14:54 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Andrey Bienkowski @ 2021-04-06 12:20 UTC (permalink / raw)
  To: git

Hi. I want to parse the output of git diff --name-only and git diff
--name-status, but the documentation https://git-scm.com/docs/git-diff
does not say what encoding it is in. Is it always utf8 on all
platforms? If not is there a flag to make it so? Once I get an answer
to this question I'll submit a PR to add the missing documentation.
-- Andrey Bienkowski

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Subject: Encoding of git diff --name-only stdout
  2021-04-06 12:20 Subject: Encoding of git diff --name-only stdout Andrey Bienkowski
@ 2021-04-06 14:54 ` Jeff King
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff King @ 2021-04-06 14:54 UTC (permalink / raw)
  To: Andrey Bienkowski; +Cc: git

On Tue, Apr 06, 2021 at 12:20:45PM +0000, Andrey Bienkowski wrote:

> Hi. I want to parse the output of git diff --name-only and git diff
> --name-status, but the documentation https://git-scm.com/docs/git-diff
> does not say what encoding it is in. Is it always utf8 on all
> platforms? If not is there a flag to make it so? Once I get an answer
> to this question I'll submit a PR to add the missing documentation.

There's some discussion in Documentation/i18n.txt, which is included in
various manpages (e.g., https://git-scm.com/docs/git-log#_discussion)
but it doesn't seem to be mentioned in git-diff.

The short answer is: mostly utf8, but historically on platforms that
don't care (like Linux) you could get away with other encodings.

-Peff

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-06 14:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-06 12:20 Subject: Encoding of git diff --name-only stdout Andrey Bienkowski
2021-04-06 14:54 ` Jeff King

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.