Thread (10 messages) flat view 10 messages, 6 authors, 2016-06-15

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

From: J. Bruce Fields <hidden>
Date: 2016-06-15 22:43:14

On Wed, Jun 06, 2007 at 10:37:34AM -0700, Marc Singer wrote:
On Thu, 2007-05-24 at 07:30 -0700, Marc Singer wrote:
quoted
It looks like it reduces to something very simple.

Git patches, as generated by git-format-patch, have a header with an
email address.

Cogito patches, as generated by cg-mkpatch, have no email address in the
header.

git-am doesn't like the cogito patches.

Is there a way to import patches that did not come from git?  Remember
that we'd like to include the functionality of git-am that adds new
files to the index.

Cheers.
I have patches from another source as well and I'd like to be able to
import them even though these aren't from git.
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.

--b.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help