git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Applying patches from a patch set
@ 2008-12-20 14:37 Mark Ryden
  2008-12-20 19:25 ` Jakub Narebski
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Mark Ryden @ 2008-12-20 14:37 UTC (permalink / raw)
  To: git

Hello,
  I am subscribed to some linux kernel subsystem mailing list; in this
list there are sometimes patchsets with more than
30-40 patches.
I am using gmail web interface client.

In order to apply a patch set I copy and paste each patch from the
patchset into a file, and then apply that patch.
I assume that there is a better way.
Recently I encountered a fatal error when doing so (and I am not sure
what caused it).

So my question is: does anyone know a more elegant way of applying a
large patchset ?
Maybe there is better mail client with which this process can be done easily ?

(I remember there was something called git apply-mbox in the past).

Rgs,
Mark

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Applying patches from a patch set
  2008-12-20 14:37 Applying patches from a patch set Mark Ryden
@ 2008-12-20 19:25 ` Jakub Narebski
  2008-12-20 20:06 ` Junio C Hamano
  2008-12-21  8:20 ` Sitaram Chamarty
  2 siblings, 0 replies; 7+ messages in thread
From: Jakub Narebski @ 2008-12-20 19:25 UTC (permalink / raw)
  To: Mark Ryden; +Cc: git

"Mark Ryden" <markryde@gmail.com> writes:

>   I am subscribed to some linux kernel subsystem mailing list; in this
> list there are sometimes patchsets with more than
> 30-40 patches.

I hope in proper patch series...

> I am using gmail web interface client.

Better use some standalone mail program. Patch series should be send
in thread, either as reply to the cover letter message, or threaded
each being reply to previous patch... beside being numbered; IIRC
GMail web interface doesn't have threading implemented...


> In order to apply a patch set I copy and paste each patch from the
> patchset into a file, and then apply that patch.

You use raw view, I assume? Otherwise you would fail afoul word
wrapping and other whitespace mangling, at least...

[...]

> (I remember there was something called git apply-mbox in the past).

You can use "git am" for that, which is modern equivalent, and which
can do (almost) everything git-apply-mbox did.

-- 
Jakub Narebski
Poland
ShadeHawk on #git

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Applying patches from a patch set
  2008-12-20 14:37 Applying patches from a patch set Mark Ryden
  2008-12-20 19:25 ` Jakub Narebski
@ 2008-12-20 20:06 ` Junio C Hamano
  2008-12-23 11:25   ` Mark Ryden
  2008-12-21  8:20 ` Sitaram Chamarty
  2 siblings, 1 reply; 7+ messages in thread
From: Junio C Hamano @ 2008-12-20 20:06 UTC (permalink / raw)
  To: Mark Ryden; +Cc: git

"Mark Ryden" <markryde@gmail.com> writes:

> Hello,
>   I am subscribed to some linux kernel subsystem mailing list; in this
> list there are sometimes patchsets with more than
> 30-40 patches.
> I am using gmail web interface client.
>
> In order to apply a patch set I copy and paste each patch from the
> patchset into a file, and then apply that patch.
> I assume that there is a better way.
> Recently I encountered a fatal error when doing so (and I am not sure
> what caused it).
>
> So my question is: does anyone know a more elegant way of applying a
> large patchset ?
> Maybe there is better mail client with which this process can be done easily ?

First mistake(?) is you seem to be doing copy&paste from browser.  Don't.
It can easily damage whitespaces.  Find out how your webmail interface
allows you to save selected messages in a mbox and let you download it.

Then

	$ git am that-mbox-file

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Applying patches from a patch set
  2008-12-20 14:37 Applying patches from a patch set Mark Ryden
  2008-12-20 19:25 ` Jakub Narebski
  2008-12-20 20:06 ` Junio C Hamano
@ 2008-12-21  8:20 ` Sitaram Chamarty
  2008-12-21 18:34   ` Mark Ryden
  2 siblings, 1 reply; 7+ messages in thread
From: Sitaram Chamarty @ 2008-12-21  8:20 UTC (permalink / raw)
  To: git

On 2008-12-20, Mark Ryden <markryde@gmail.com> wrote:

>   I am subscribed to some linux kernel subsystem mailing list; in this
> list there are sometimes patchsets with more than
> 30-40 patches.
> I am using gmail web interface client.

solution 1: see if that list is mirrored by gmane and use a
newsreader like slrn to access the list via gmane

solution 2: enable pop/imap access on your gmail account and
pull emails from there using whatever command line mail
client you like (like mutt maybe).  Not tested, but should
work.  For some definition of "work" (not sure how gmail's
"tags" map to imap folders, which might trip you...)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Applying patches from a patch set
  2008-12-21  8:20 ` Sitaram Chamarty
@ 2008-12-21 18:34   ` Mark Ryden
  2008-12-21 18:53     ` Jakub Narebski
  0 siblings, 1 reply; 7+ messages in thread
From: Mark Ryden @ 2008-12-21 18:34 UTC (permalink / raw)
  To: Sitaram Chamarty; +Cc: git

Hello,
  Thanks a lot for your answer ! I was not aware of the option using a
newsreader like slrn to access the list via gmane.

The list I want to work with **does** have a gmane interface.
It is :
http://thread.gmane.org/gmane.linux.kernel.wireless.general

However, after I tried:
setenv NNTPSERVER gmane.linux.kernel.wireless.general
and
slrn -f /root/.jnewsrc --create
I got:
slrn 0.9.8.1pl2 [2005-02-17]

Reading startup file /etc/slrn.rc.
Using newsrc file /root/.jnewsrc for server gmane.linux.kernel.wireless.general.
Connecting to host gmane.linux.kernel.wireless.general ...
Failed to resolve gmane.linux.kernel.wireless.general

Run-Time Error
slrn fatal error:
Failed to initialize server.


I assume that this is some silly mistake I had done,.Any ideas?

Rgs,
Mark




On Sun, Dec 21, 2008 at 10:20 AM, Sitaram Chamarty <sitaramc@gmail.com> wrote:
> On 2008-12-20, Mark Ryden <markryde@gmail.com> wrote:
>
>>   I am subscribed to some linux kernel subsystem mailing list; in this
>> list there are sometimes patchsets with more than
>> 30-40 patches.
>> I am using gmail web interface client.
>
> solution 1: see if that list is mirrored by gmane and use a
> newsreader like slrn to access the list via gmane
>
> solution 2: enable pop/imap access on your gmail account and
> pull emails from there using whatever command line mail
> client you like (like mutt maybe).  Not tested, but should
> work.  For some definition of "work" (not sure how gmail's
> "tags" map to imap folders, which might trip you...)
>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Applying patches from a patch set
  2008-12-21 18:34   ` Mark Ryden
@ 2008-12-21 18:53     ` Jakub Narebski
  0 siblings, 0 replies; 7+ messages in thread
From: Jakub Narebski @ 2008-12-21 18:53 UTC (permalink / raw)
  To: Mark Ryden; +Cc: Sitaram Chamarty, git

"Mark Ryden" <markryde@gmail.com> writes:

> However, after I tried:
> setenv NNTPSERVER gmane.linux.kernel.wireless.general

This is not a _NNTP server_; this is _news group_ name.
You should use news.gmane.org for NNTPSERVER.

> I assume that this is some silly mistake I had done,.Any ideas?

setenv NNTPSERVER news.gmane.org

-- 
Jakub Narebski
Poland
ShadeHawk on #git

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Applying patches from a patch set
  2008-12-20 20:06 ` Junio C Hamano
@ 2008-12-23 11:25   ` Mark Ryden
  0 siblings, 0 replies; 7+ messages in thread
From: Mark Ryden @ 2008-12-23 11:25 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

Hello,
  I tried usuing slrn with mutt; mutt seems to me better.
I saved 15 git patches from one patch set into a mailbox
using mutt.
Now I tried:
git am maibox
and got this error:

Patch is empty.  Was it split wrong?

This error occurred after "git am maibox" applied the first 6 patches
in this patch set.

looking at that seventh patch shows that it seems to be perfectly
ok.

Any ideas what can be wrong here?
Regards,
Mark


On Sat, Dec 20, 2008 at 10:06 PM, Junio C Hamano <gitster@pobox.com> wrote:
> "Mark Ryden" <markryde@gmail.com> writes:
>
>> Hello,
>>   I am subscribed to some linux kernel subsystem mailing list; in this
>> list there are sometimes patchsets with more than
>> 30-40 patches.
>> I am using gmail web interface client.
>>
>> In order to apply a patch set I copy and paste each patch from the
>> patchset into a file, and then apply that patch.
>> I assume that there is a better way.
>> Recently I encountered a fatal error when doing so (and I am not sure
>> what caused it).
>>
>> So my question is: does anyone know a more elegant way of applying a
>> large patchset ?
>> Maybe there is better mail client with which this process can be done easily ?
>
> First mistake(?) is you seem to be doing copy&paste from browser.  Don't.
> It can easily damage whitespaces.  Find out how your webmail interface
> allows you to save selected messages in a mbox and let you download it.
>
> Then
>
>        $ git am that-mbox-file
>
>
>
>
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-12-23 11:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-20 14:37 Applying patches from a patch set Mark Ryden
2008-12-20 19:25 ` Jakub Narebski
2008-12-20 20:06 ` Junio C Hamano
2008-12-23 11:25   ` Mark Ryden
2008-12-21  8:20 ` Sitaram Chamarty
2008-12-21 18:34   ` Mark Ryden
2008-12-21 18:53     ` Jakub Narebski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).