git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: 'git am' doubt

From
David Aguilar <davvid@gmail.com>
Date
Sep 23, 2009, 23:54 UTC
Message-ID
<20090923235433.GB80337@gmail.com>
In-Reply-To
<a4c8a6d00909231520s53be6654ibf74d4430e7e82f@mail.gmail.com>
On Wed, Sep 23, 2009 at 07:20:53PM -0300, Thiago Farina wrote:
Show 19 quoted lines
> Hi,
> 
> I'm trying to apply a patch from the mailing list using 'git am'.
> 
> What I'm doing is:
> 
> - In gmail:
>  - Save original, then I copied the content to a text editor.
> - In text editor:
>  - Remove the first empty line.
>  - Save the file in the same directory where I have the git source.
> - In git directory:
>  - $ git am -s ./filename.mbox
> 
> Of course I'm doing something wrong here, but I don't know what.
> The error is:
> cat: /home/tfarina/git/.git/rebase-apply/next: No such file or directory
> previous rebase directory /home/tfarina/git/.git/rebase-apply still
> exists but mbox given.

Perhaps you tried this previously and 'git am' failed? In which case, run 'git am --abort'.

Now.. I've _never_ had luck saving patches out of gmail. But, I've had good luck with its imap interface. I use mutt, save emails to an mbox file, and use 'git am' on them. This has worked great for me.

For sending emails to the list, I use msmtp and a ~/.gitconfig setting:

[sendemail]
        smtpserver = /usr/bin/msmtp
Then it's simply 'git send-email <patch-file>'.

Here's a random page explaining how to use mutt with gmail. http://shreevatsa.wordpress.com/2007/07/31/using-gmail-with-mutt-the-minimal-way/

I can send you my .muttrc if that helps.

Here's the git wiki page about msmtp, gmail, and git-send-email:

http://git-scm.org/gitwiki/GitTips#Usingmsmtptosendyourpatches
-- 
	David
Previous: Thiago FarinaNext: Thiago Farina
Message 2 of 3 in “'git am' doubt”
  1. Thiago FarinaSep 23, 2009
  2. David AguilarSep 23, 2009
  3. Thiago FarinaSep 24, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.