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

Re: Odd git am behavior rewriting subject, adding "ASoC: " prefix

From
Chris Packham <judge.packham@gmail.com>
Date
Nov 5, 2014, 09:12 UTC
Message-ID
<CAFOYHZAimkSMWC42S_C=OkNuz+cjT3vhsGo6AwuCtt8M2REkig@mail.gmail.com>
In-Reply-To
<1415149921.6634.1.camel@perches.com>
On Wed, Nov 5, 2014 at 2:12 PM, Joe Perches <joe@perches.com> wrote:
Show 33 quoted lines
> I have a patch file created by git format-patch.
>
> Applying it via git am changes the subject prefix.
> Anyone know why?
>
> $ git --version
> git version 2.1.2
>
> $ git am -i 0002-staging-ft1000-Logging-message-neatening.patch
> Commit Body is:
> --------------------------
> staging: ft1000: Logging message neatening
>
> Use a more common logging style.
>
> o Convert DEBUG macros to pr_debug
> o Add pr_fmt
> o Remove embedded function names from pr_debug
> o Convert printks to pr_<level>
> o Coalesce formats and align arguments
> o Add missing terminating newlines
>
> Signed-off-by: Joe Perches <joe@perches.com>
> --------------------------
> Apply? [y]es/[n]o/[e]dit/[v]iew patch/[a]ccept all
>
> choosing "Y" emits:
>
> Applying: ASoC: staging: ft1000: Logging message neatening
>
> ASoC:? where does that come from?
>
>

Looks like you have an apply-patch-msg hook installed. What does the output of 'ls -l .git/hooks' look like.

Previous: Joe PerchesNext: Joe Perches
Message 2 of 3 in “Odd git am behavior rewriting subject, adding "ASoC: " prefix”
  1. Joe PerchesNov 5, 2014
  2. Chris PackhamNov 5, 2014
  3. Joe PerchesNov 5, 2014

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.