threads / discuss / 1396

Email patch -> git commit?

Subject: Email patch -> git commit?

## tl;dr

4 messages between Aug 2, 2005 and Aug 3, 2005.

replies: 3people: 3as markdown or json

Sam Ravnborg· Aug 2, 2005, 22:27 UTC · re: H. Peter Anvin · lore

Re: Email patch -> git commit?

On Tue, Aug 02, 2005 at 03:15:19PM -0700, H. Peter Anvin wrote:
> 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
H. Peter Anvin· Aug 2, 2005, 22:32 UTC · re: Sam Ravnborg · lore

Re: Email patch -> git commit?

Sam Ravnborg wrote:
Show 9 quoted lines
> On Tue, Aug 02, 2005 at 03:15:19PM -0700, H. Peter Anvin wrote:
> 
>>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
Catalin Marinas· Aug 3, 2005, 08:47 UTC · re: H. Peter Anvin · lore

Re: Email patch -> git commit?

"H. Peter Anvin" <hpa@zytor.com> wrote:
> 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).

-- 
Catalin

← back to recent threads