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
Matthieu Moy <matthieu.moy@imag.fr>
Date
Jun 6, 2007, 17:58 UTC
Message-ID
<vpqhcplx8vb.fsf@bauges.imag.fr>
In-Reply-To
<1181151454.6086.23.camel@zealous.synapsedev.com>
Marc Singer <elf@synapse.com> writes:
Show 8 quoted lines
> On Thu, 2007-05-24 at 07:30 -0700, Marc Singer wrote:
>> 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.

Cogito is more or less depreceted now. You should probably use git itself.

Show 10 quoted lines
>> 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.

You cannot "import" them, because they do not contain the necessary information (commit message and email adress). But you can "apply" them, and then commit manually. Use git-patch (even just "patch" could do) to apply the patch, and commit as usual.

-- 
Matthieu
Previous: Marc SingerNext: Jon Loeliger
Message 11 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.