User: Password:
|
|
Subscribe / Log in / New account

Ask a kernel developer: maintainer workflow

Ask a kernel developer: maintainer workflow

Posted Aug 23, 2012 13:36 UTC (Thu) by zuki (subscriber, #41808)
Parent article: Ask a kernel developer: maintainer workflow

Why would one use patch if git am can be used? It is smarter and has better diagnostics. And git am --3way can often help if the patch was generated for an old version of the tree.


(Log in to post comments)

Ask a kernel developer: maintainer workflow

Posted Aug 23, 2012 20:14 UTC (Thu) by jschrod (subscriber, #1646) [Link]

git am is used, obviously, to apply the patch.

Greg uses patch with --dry-run to see if the patch would apply cleanly in the first place, if it should be merged to another branch, etc. Neat idea, IMHO.

Ask a kernel developer: maintainer workflow

Posted Aug 23, 2012 20:46 UTC (Thu) by zuki (subscriber, #41808) [Link]

Sure, but git am is sometimes able to apply the patch at a different point (with --3way). And there's no need to run with --dry-run first: git am will atomically either apply the patch, or fail. I'm not saying that using patch is wrong, just not very useful.

Ask a kernel developer: maintainer workflow

Posted Sep 5, 2012 9:44 UTC (Wed) by jnareb (subscriber, #46500) [Link]

Well, there is always `git apply --check`...


Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds