Re: submitting a patch questions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/17/07, Erik Mouw <mouw@xxxxxxxxxxxx> wrote:
On Wed, Jan 17, 2007 at 10:37:27AM +0200, Ramagudi Naziir wrote:
> I'm writing a new driver.
> This is a new file, entirely, not changed code.
> when I do a "git diff" I don't see it.

When you haven't told git about the file (i.e.: git add, git commit),
it will not track it and will not show a diff.

> How do I make the patch then ?

 git add mynewfile
 git commit mynewfile Kconfig-for-mynewfile Makefile-for-mynewfile \
     Documentation-for-my-newfile
 git diff HEAD^ HEAD

Is there a way to unroll a commit ?

Thank You
naziir

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux