Skip to contentSkip to conversation

Email patch -> git commit?

DISCUSSION H. Peter Anvin 3 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Anyone have any good scripts for taking patches in email and turning them into git commits, preferrably while preserving the author information?

-hpa

#1 lore raw
Quoted 2 lines · H. Peter Anvin

Anyone have any good scripts for taking patches in email and turning them into git commits, preferrably while preserving the author information?

git-applymbox seems to be what you are looking for. It was named dotest in the old days.

Sam

#2 lore raw
Quoted 8 lines · Sam Ravnborg
Quoted 1 line · H. Peter Anvin

Anyone have any good scripts for taking patches in email and turning them into git commits, preferrably while preserving the author information?

git-applymbox seems to be what you are looking for. It was named dotest in the old days.

Looks like it's not in cogito-0.12.1, which is why I didn't find it. I guess I'll wait until the layered cogito comes out, hopefully this week.

-hpa

#3 lore raw
In reply to H. Peter Anvin
Quoted 3 lines · H. Peter Anvin

Anyone have any good scripts for taking patches in email and turning them into git commits, preferrably while preserving the author information?

StGIT can do this as well, via the 'stg import -m' command. You will see it as a GIT commit (with 'git log') as well as an StGIT patch. It preserves the author information taken from the From: line (can be overwritten with command line options).

Signature · 1 line
Catalin