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

3 messages from 2014-11-05 to 2014-11-05. Participants: Joe Perches, Chris Packham.
Thread: https://gitlist.dev/t/37879

## Joe Perches, 2014-11-05 01:12

Subject: Odd git am behavior rewriting subject, adding "ASoC: " prefix
Message-ID: <1415149921.6634.1.camel@perches.com>
URL: https://gitlist.dev/e/1415149921.6634.1.camel%40perches.com

```
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?

```

## Chris Packham, 2014-11-05 09:12

Subject: Re: Odd git am behavior rewriting subject, adding "ASoC: " prefix
Message-ID: <CAFOYHZAimkSMWC42S_C=OkNuz+cjT3vhsGo6AwuCtt8M2REkig@mail.gmail.com>
URL: https://gitlist.dev/e/CAFOYHZAimkSMWC42S_C%3DOkNuz%2BcjT3vhsGo6AwuCtt8M2REkig%40mail.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:
> 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.

```

## Joe Perches, 2014-11-05 13:51

Subject: Re: Odd git am behavior rewriting subject, adding "ASoC: " prefix
Message-ID: <1415195503.6634.7.camel@perches.com>
URL: https://gitlist.dev/e/1415195503.6634.7.camel%40perches.com
In-Reply-To: <CAFOYHZAimkSMWC42S_C=OkNuz+cjT3vhsGo6AwuCtt8M2REkig@mail.gmail.com>

```
On Wed, 2014-11-05 at 22:12 +1300, Chris Packham wrote:
> On Wed, Nov 5, 2014 at 2:12 PM, Joe Perches <joe@perches.com> wrote:
> > I have a patch file created by git format-patch.
[]
> > 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.

Correct.  I didn't look there.  Thanks. 

```
