Skip to contentSkip to conversation

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

DISCUSSION Joe Perches 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

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

#1 lore raw
Quoted 23 lines · Joe Perches

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

Quoted 10 lines

--------------------------
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.

#2 lore raw
Quoted 2 lines · Chris Packham
Quoted 1 line · Joe Perches

I have a patch file created by git format-patch.

[]

Quoted 1 line
Quoted 1 line

ASoC:? where does that come from?

[]

Quoted 2 lines

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.