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

Re: Blame / annotate with mixed mac line endings?

From
Junio C Hamano <gitster@pobox.com>
Date
May 3, 2018, 04:55 UTC
Message-ID
<xmqqd0yduylh.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<8957C3B9BEF94443ABE0A67340786A86@ad.pdinc.us>
"Jason Pyeron" <jpyeron@pdinc.us> writes:
Show 5 quoted lines
> $ cat /usr/local/bin/helper.sh
> cat "$1" | mac2unix
>
> The important issue was to not use mac2unix directly, because it
> modifies the file itself.
I wonder if
[diff "test"]
	textconv = sh -c 'mac2unix <"$1"' -IAmArgv0-
works without an extra helper.
Previous: Jason Pyeron
Message 4 of 4 in “Blame / annotate with mixed mac line endings?”
  1. Jason PyeronMay 2, 2018
  2. Junio C HamanoMay 3, 2018
  3. Jason PyeronMay 3, 2018
  4. Junio C HamanoMay 3, 2018

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.