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, 01:22 UTC
Message-ID
<xmqqh8npv8hy.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<B8114616E07247C7A78F1DFF91E16A63@ad.pdinc.us>
"Jason Pyeron" <jpyeron@pdinc.us> writes:
> Any way to hit git with a stick to treat lone CR as a line break for blame/annotate?

I highly suspect that you would get more help from those whose love is Git if your inquiry were about a way to ask Git politely to do what you want to achieve, rather than hitting it with a stick ;-)

Perhaps define a textconv filter to fix the incorrect line endings? That way, you do not have to rewrite the history only to run blame, but can pretend as if the contents were all using consistent line endings (either LF or CRLF) retroactively.

Previous: Jason PyeronNext: Jason Pyeron
Message 2 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.