how to apply patches from git ?
Hi all, Sorry if this is a basic question. How do i take patches from e-mail? for example git send mail sends patches as e-mail if someone wants to apply that patch to his branch then how do i get that in . patch format and then use patch -p1 *.patch or is there something im missing here? thanks. -- Warm Regards, Ravi .
On Wed, Jul 13, 2011 at 00:22, RKK <kulkarni.ravi4@gmail.com> wrote:
Hi all,
Sorry if this is a basic question. How do i take patches from e-mail? for example git send mail sends patches as e-mail
if someone wants to apply that patch to his branch then how do i get that in . patch format and then use patch -p1 *.patch or is there something im missing here? thanks. -- Warm Regards, Ravi .
Save the email message in mbox format and then you can use git am /path/to/mbox/file to apply the email patch to your tree. -- Cheers, Jeff
On Wed, 13 Jul 2011 02:16:09 -0700, Jeff Kirsher wrote:
On Wed, Jul 13, 2011 at 00:22, RKK <kulkarni.ravi4@gmail.com> wrote:
Hi all,
Sorry if this is a basic question. How do i take patches from e-mail? for example git send mail sends patches as e-mail
if someone wants to apply that patch to his branch then how do i get that in . patch format and then use patch -p1 *.patch or is there something im missing here? thanks. -- Warm Regards, Ravi .
Save the email message in mbox format and then you can use git am /path/to/mbox/file to apply the email patch to your tree.
well, actually you don't need to do the whole mbox thing with git. You only need to get the patches into .patch files in a directory. I believe you can then use git am /path/to/patches and it will apply the patches in the order the ls command displays them. I'm assuming that would be helpful since most people who don't know how to apply patches from mail also don't have an mbox.
Hi
Hi all,
Sorry if this is a basic question. How do i take patches from e-mail? for example git send mail sends patches as e-mail
if someone wants to apply that patch to his branch then how do i get that in . patch format and then use patch -p1 *.patch or is there something im missing here? thanks. -- Warm Regards, Ravi .
Save the email message in mbox format and then you can use git am /path/to/mbox/file to apply the email patch to your tree.
well, actually you don't need to do the whole mbox thing with git. You only need to get the patches into .patch files in a directory. I believe you can then use git am /path/to/patches and it will apply the patches in the order the ls command displays them. are there any git tools to set up this so that i can use them ?
I'm assuming that would be helpful since most people who don't know how to apply patches from mail also don't have an mbox.
makes sense -- Warm Regards, Ravi Kulkarni.
Take a look at 'git apply' and 'git format-patch' commands. On Wed, Jul 13, 2011 at 3:22 AM, RKK <kulkarni.ravi4@gmail.com> wrote:
Hi all,
Sorry if this is a basic question. How do i take patches from e-mail? for example git send mail sends patches as e-mail
if someone wants to apply that patch to his branch then how do i get that in . patch format and then use patch -p1 *.patch or is there something im missing here? thanks. -- Warm Regards, Ravi .
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
On Wed, Jul 13, 2011 at 9:40 AM, Anand Arumugam <anand.arumug@gmail.com>wrote:
Take a look at 'git apply' and 'git format-patch' commands.
On Wed, Jul 13, 2011 at 3:22 AM, RKK <kulkarni.ravi4@gmail.com> wrote:
Hi all,
Sorry if this is a basic question. How do i take patches from e-mail? for example git send mail sends patches as e-mail
if someone wants to apply that patch to his branch then how do i get that in . patch format and then use patch -p1 *.patch or is there something im missing here? thanks. -- Warm Regards, Ravi .
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Hi you can see greg video about write and submit your first kernel patch it's really good. It can help you very much. the link is www.youtube.com/watch?v=LLBrBBImJt4 best samuel PS: apologize in advance to weak english and multi times send.
Hi Ravi, On Wed, Jul 13, 2011 at 12:52 PM, RKK <kulkarni.ravi4@gmail.com> wrote:
Hi all,
Sorry if this is a basic question. How do i take patches from e-mail? for example git send mail sends patches as e-mail
if someone wants to apply that patch to his branch then how do i get that in . patch format and then use patch -p1 *.patch or is there something im missing here? thanks.
If its a public mailing list then I use a newsgroup reader that will allow me to download the entire patch email as file and then use the git apply on it.
Hi Prashant, On Thu, Jul 14, 2011 at 1:46 PM, Prashant Shah <pshah.mumbai@gmail.com> wrote:
Hi Ravi,
On Wed, Jul 13, 2011 at 12:52 PM, RKK <kulkarni.ravi4@gmail.com> wrote:
Hi all,
Sorry if this is a basic question. How do i take patches from e-mail? for example git send mail sends patches as e-mail
if someone wants to apply that patch to his branch then how do i get that in . patch format and then use patch -p1 *.patch or is there something im missing here? thanks.
If its a public mailing list then I use a newsgroup reader that will allow me to download the entire patch email as file and then use the git apply on it.
may i know which newsgroup reader u use and how to setup that? thanks. -- Warm Regards, Ravi Kulkarni
Hi Ravi, On Thu, Jul 14, 2011 at 2:23 PM, RKK <kulkarni.ravi4@gmail.com> wrote:
Hi Prashant,
On Thu, Jul 14, 2011 at 1:46 PM, Prashant Shah <pshah.mumbai@gmail.com> wrote:
Hi Ravi,
If its a public mailing list then I use a newsgroup reader that will allow me to download the entire patch email as file and then use the git apply on it.
may i know which newsgroup reader u use and how to setup that? thanks.
I use Pan News reader http://pan.rebelbase.com/ Server : news.gmane.org Linux Kernel : http://news.gmane.org/gmane.linux.kernel
Hi Prashant ,
If its a public mailing list then I use a newsgroup reader that will allow me to download the entire patch email as file and then use the git apply on it.
may i know which newsgroup reader u use and how to setup that? thanks.
I use Pan News reader
Server : news.gmane.org Linux Kernel : http://news.gmane.org/gmane.linux.kernel
thanks for that i have set up the pan news reader. i tried applying patch but it dint work. guess have to check git apply for that. also, how do u clone a particular git tree for a particular tag for example if i use git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-2.6 it will clone the linus latest tree but if i want to clone only till rc4 or rc5 of his tree how to do it. Warm Regards, Ravi Kulkarni.
Hi, On Thu, Jul 14, 2011 at 3:13 PM, RKK <kulkarni.ravi4@gmail.com> wrote:
Hi Prashant ,
thanks for that i have set up the pan news reader. i tried applying patch but it dint work. guess have to check git apply for that.
yes. git apply will work.
also, how do u clone a particular git tree for a particular tag for example if i use git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-2.6 it will clone the linus latest tree but if i want to clone only till rc4 or rc5 of his tree how to do it.
If you dont want the history it is available at kernel.org ftp://ftp.kernel.org/pub/linux/kernel/v3.0/testing/ If you want the history then you will have to clone the entire repo and then checkout whichever rev. you want.
also, how do u clone a particular git tree for a particular tag for example if i use git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-2.6 it will clone the linus latest tree but if i want to clone only till rc4 or rc5 of his tree how to do it.
Once you clone, you get the entire source in the master branch. git branch => will show which branch you are in currently If you want to see the list of tags use => git tag -l and then if you want to checkout a particular tag to a new branch created from the master, use => git checkout -b v3.0-rc4 regards, Calvin On Thu, Jul 14, 2011 at 3:13 PM, RKK <kulkarni.ravi4@gmail.com> wrote:
Hi Prashant ,
If its a public mailing list then I use a newsgroup reader that will allow me to download the entire patch email as file and then use the git apply on it.
may i know which newsgroup reader u use and how to setup that? thanks.
I use Pan News reader
Server : news.gmane.org Linux Kernel : http://news.gmane.org/gmane.linux.kernel
thanks for that i have set up the pan news reader. i tried applying patch but it dint work. guess have to check git apply for that. also, how do u clone a particular git tree for a particular tag for example if i use git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-2.6 it will clone the linus latest tree but if i want to clone only till rc4 or rc5 of his tree how to do it.
Warm Regards, Ravi Kulkarni.
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
On Thu, Jul 14, 2011 at 1:53 AM, RKK <kulkarni.ravi4@gmail.com> wrote:
Hi Prashant,
On Thu, Jul 14, 2011 at 1:46 PM, Prashant Shah <pshah.mumbai@gmail.com> wrote:
Hi Ravi,
On Wed, Jul 13, 2011 at 12:52 PM, RKK <kulkarni.ravi4@gmail.com> wrote:
Hi all,
Sorry if this is a basic question. How do i take patches from e-mail? for example git send mail sends patches as e-mail
if someone wants to apply that patch to his branch then how do i get that in . patch format and then use patch -p1 *.patch or is there something im missing here? thanks.
If its a public mailing list then I use a newsgroup reader that will allow me to download the entire patch email as file and then use the git apply on it.
you can get kernel related patches at http://patchwork.ozlabs.org/ in mbox format. -- Thanks - Manish
participants (8)
-
Anand Arumugam -
Calvin Johnson -
Christopher Harvey -
esmaeil mirzaee -
Jeff Kirsher -
Manish Katiyar -
Prashant Shah -
RKK