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

Re: Let me ask again: How do we import patches from non-git sources?

From
MSMarc Singer <elf@synapse.com>
Date
Jun 12, 2007, 16:27 UTC
Message-ID
<1181665653.4194.24.camel@zealous.synapsedev.com>
In-Reply-To
<20070606175458.GH12774@fieldses.org>
On Wed, 2007-06-06 at 13:54 -0400, J. Bruce Fields wrote:
Show 11 quoted lines
> Based on my notes from the last time I needed to feed a bunch of
> non-mbox, non-git-produced patches into git-am, the hard part was
> figuring out how it split a file into separate messages; my notes say:
> 
> 	"Finds lines begining with "From " and ending with "hh:mm:ss
> 	yyyy".  See builtin-mailsplit code for more details."
> 
> Other than that, I think it just needs and From: and Subject: lines to
> get author and first-line of the commit.  the git-am man page has some
> documentation of this.  It could probably use more.
> 
I'm not sure that I understand your response. 

git-am complains that it cannot find an email address, but raw patches seldom have these. So, either we could use another command, or it would be handy if we could supply the email address to git-am (or some other data it needs so that it can split the patch.) I suppose the mistaken assumption is that the patch source in an email instead of already being a nice clean patch.

Previous: J. Bruce FieldsNext: J. Bruce Fields
Message 8 of 14 in “How do we import patches from non-git sources?”
  1. Marc SingerMay 24, 2007
  2. Johannes SchindelinMay 24, 2007
  3. Yann DirsonMay 24, 2007
  4. Jakub NarebskiMay 25, 2007
  5. Linus TorvaldsMay 24, 2007
  6. Let me ask again: How do we import patches from non-git sources?Marc Singer, Jun 6, 2007
  7. J. Bruce FieldsJun 6, 2007
  8. Marc SingerJun 12, 2007
  9. J. Bruce FieldsJun 12, 2007
  10. Marc SingerJun 14, 2007
  11. Matthieu MoyJun 6, 2007
  12. Jon LoeligerJun 6, 2007
  13. Marc SingerJun 14, 2007
  14. Matthieu MoyJun 14, 2007

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.