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

Re: [PATCH] Documentation: networking: device drivers: Remove stray asterisks

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 2, 2019, 14:22 UTC
Message-ID
<xmqqk17eyfh1.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<CAFzckaEQo6CQM9LukikgbtUKZX=eajG+OFNhnDJ_EY7M1V4XKA@mail.gmail.com>
Amit Choudhary <amitchoudhary2305@gmail.com> writes:
> Is it possible that git complains about everything that has ^M in it
> and rejects it (that is without trying to fix it, etc.)

I am not sure what you mean. Are you asking if there is a mode (e.g. command line switch) to tell "git am" to reject any input with CR in it? I do not think there is, and I do not think it would help all that much. But perhaps the pre-applypatch hook can be used to inspect the current working tree files (and it can compare them with HEAD to learn what are the proposed changes) and reject the patch--- an advantage of such an approach is that the "inspect" step does not have to be limited to "does it contain a carriage-return?"

Or are you asking if the patch (mis)application that triggered this discussion thread was somehow caused by Git that complains a payload with CR in it? I do not think so.

Previous: Amit Choudhary
Message 8 of 8 in “Fw: [PATCH] Documentation: networking: device drivers: Remove stray asterisks”
  1. Jonathan CorbetDec 1, 2019
  2. Linus TorvaldsDec 1, 2019
  3. Jonathan CorbetDec 1, 2019
  4. Junio C HamanoDec 1, 2019
  5. Linus TorvaldsDec 1, 2019
  6. Junio C HamanoDec 1, 2019
  7. Amit ChoudharyDec 2, 2019
  8. Junio C HamanoDec 2, 2019

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.