# git-apply versus git-am

7 messages from 2007-07-23 to 2007-07-23. Participants: Sean Kelley, Alex Riesen, Junio C Hamano, Timur Tabi, Johannes Schindelin, Peter Baumann.
Thread: https://gitlist.dev/t/9169

## Sean Kelley, 2007-07-23 07:54

Subject: git-apply versus git-am
Message-ID: <a2e879e50707230054m60d45293ua1d57887367914c1@mail.gmail.com>
URL: https://gitlist.dev/e/a2e879e50707230054m60d45293ua1d57887367914c1%40mail.gmail.com

```
Why doesn't git-apply include an option for a signoff line like git-am?

git-applymbox /tmp/mbox ~/.signoff

Or am I missing something?  (most likely the case!)

Sean

```

## Alex Riesen, 2007-07-23 08:31

Subject: Re: git-apply versus git-am
Message-ID: <81b0412b0707230131y666cff17vdcccb170b6034ca9@mail.gmail.com>
URL: https://gitlist.dev/e/81b0412b0707230131y666cff17vdcccb170b6034ca9%40mail.gmail.com
In-Reply-To: <a2e879e50707230054m60d45293ua1d57887367914c1@mail.gmail.com>

```
On 7/23/07, Sean Kelley <svk.sweng@gmail.com> wrote:
> Why doesn't git-apply include an option for a signoff line like git-am?
>
> git-applymbox /tmp/mbox ~/.signoff
>
> Or am I missing something?  (most likely the case!)
>

git apply is just a safer patch(1). They serve different purpose.

```

## Junio C Hamano, 2007-07-23 08:54

Subject: Re: git-apply versus git-am
Message-ID: <7vsl7flctg.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vsl7flctg.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <a2e879e50707230054m60d45293ua1d57887367914c1@mail.gmail.com>

```
"Sean Kelley" <svk.sweng@gmail.com> writes:

> Why doesn't git-apply include an option for a signoff line like git-am?
>
> git-applymbox /tmp/mbox ~/.signoff
>
> Or am I missing something?  (most likely the case!)

applymbox is going away.

```

## Timur Tabi, 2007-07-23 17:20

Subject: Re: git-apply versus git-am
Message-ID: <46A4E368.7080909@freescale.com>
URL: https://gitlist.dev/e/46A4E368.7080909%40freescale.com
In-Reply-To: <7vsl7flctg.fsf@assigned-by-dhcp.cox.net>

```
Junio C Hamano wrote:

> applymbox is going away.

That sucks!  I like git-am.  Is there a replacement command that applies a patch and 
commits it at the same time?  If I use git-apply on a patch that adds new files, I need to 
use git-add on the files before I can commit it.  That's a real pain.

-- 
Timur Tabi
Linux Kernel Developer @ Freescale

```

## Johannes Schindelin, 2007-07-23 17:34

Subject: Re: git-apply versus git-am
Message-ID: <Pine.LNX.4.64.0707231834280.14781@racer.site>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0707231834280.14781%40racer.site
In-Reply-To: <46A4E368.7080909@freescale.com>

```
Hi,

On Mon, 23 Jul 2007, Timur Tabi wrote:

> Junio C Hamano wrote:
> 
> > applymbox is going away.
> 
> That sucks!  I like git-am.

Read it again.  Junio talked about applymbox, not am.

Ciao,
Dscho

```

## Peter Baumann, 2007-07-23 17:37

Subject: Re: git-apply versus git-am
Message-ID: <20070723173756.GA4626@xp.machine.xx>
URL: https://gitlist.dev/e/20070723173756.GA4626%40xp.machine.xx
In-Reply-To: <46A4E368.7080909@freescale.com>

```
On Mon, Jul 23, 2007 at 12:20:40PM -0500, Timur Tabi wrote:
> Junio C Hamano wrote:
>
>> applymbox is going away.
>
> That sucks!  I like git-am.  Is there a replacement command that applies a 
> patch and commits it at the same time?  If I use git-apply on a patch that 
> adds new files, I need to use git-add on the files before I can commit it.  
> That's a real pain.

'git am' isn't going away, but as Junio mentioned, 'git applymbox' is.
Those are two *different* programms doing roughly the same, but
'git applymbox' is superceded by 'git am'.

-Peter

```

## Timur Tabi, 2007-07-23 17:37

Subject: Re: git-apply versus git-am
Message-ID: <46A4E777.8090301@freescale.com>
URL: https://gitlist.dev/e/46A4E777.8090301%40freescale.com
In-Reply-To: <Pine.LNX.4.64.0707231834280.14781@racer.site>

```
Johannes Schindelin wrote:

> Read it again.  Junio talked about applymbox, not am.

Sorry, for some reason I thought git-am is just a shortcut for git-applymbox.

-- 
Timur Tabi
Linux Kernel Developer @ Freescale

```
