# Email patch -> git commit?

4 messages from 2005-08-02 to 2005-08-03. Participants: H. Peter Anvin, Sam Ravnborg, Catalin Marinas.
Thread: https://gitlist.dev/t/1396

## H. Peter Anvin, 2005-08-02 22:15

Subject: Email patch -> git commit?
Message-ID: <42EFF077.6080606@zytor.com>
URL: https://gitlist.dev/e/42EFF077.6080606%40zytor.com

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

	-hpa

```

## Sam Ravnborg, 2005-08-02 22:27

Subject: Re: Email patch -> git commit?
Message-ID: <20050802222718.GA19107@mars.ravnborg.org>
URL: https://gitlist.dev/e/20050802222718.GA19107%40mars.ravnborg.org
In-Reply-To: <42EFF077.6080606@zytor.com>

```
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, 2005-08-02 22:32

Subject: Re: Email patch -> git commit?
Message-ID: <42EFF48F.2050007@zytor.com>
URL: https://gitlist.dev/e/42EFF48F.2050007%40zytor.com
In-Reply-To: <20050802222718.GA19107@mars.ravnborg.org>

```
Sam Ravnborg wrote:
> 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, 2005-08-03 08:47

Subject: Re: Email patch -> git commit?
Message-ID: <tnx64unjtjg.fsf@arm.com>
URL: https://gitlist.dev/e/tnx64unjtjg.fsf%40arm.com
In-Reply-To: <42EFF077.6080606@zytor.com>

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

```
