threads / discuss / 9169

git-apply versus git-am

Subject: git-apply versus git-am

## tl;dr

7 messages between Jul 23, 2007 and Jul 23, 2007.

replies: 6people: 6as markdown or json

Sean Kelley· Jul 23, 2007, 07:54 UTC · lore
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· Jul 23, 2007, 08:31 UTC · re: Sean Kelley · lore

Re: git-apply versus git-am

On 7/23/07, Sean Kelley <svk.sweng@gmail.com> wrote:
Show 6 quoted lines
> 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· Jul 23, 2007, 08:54 UTC · re: Sean Kelley · lore

Re: git-apply versus git-am

"Sean Kelley" <svk.sweng@gmail.com> writes:
Show 5 quoted lines
> 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· Jul 23, 2007, 17:20 UTC · re: Junio C Hamano · lore

Re: git-apply versus git-am

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· Jul 23, 2007, 17:34 UTC · re: Timur Tabi · lore

Re: git-apply versus git-am

Hi,
On Mon, 23 Jul 2007, Timur Tabi wrote:
Show 5 quoted lines
> 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

Timur Tabi· Jul 23, 2007, 17:37 UTC · re: Johannes Schindelin · lore

Re: git-apply versus git-am

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
Peter Baumann· Jul 23, 2007, 17:37 UTC · re: Timur Tabi · lore

Re: git-apply versus git-am

On Mon, Jul 23, 2007 at 12:20:40PM -0500, Timur Tabi wrote:
Show 8 quoted lines
> 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

← back to recent threads