Re: Quick question: how to generate a patch?

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

 



Aubrey wrote:
It really should "just have worked". Can you show what the diff actually
looked like, and your exact command history?



If it was something like

       git clone remote-repo localdir
       cd localdir
       vi somefile
       git diff


Yes, exactly right.


Did you by any chance do chmod -R, chown -R or start an ntp daemon somewhere in between there (don't know if clock skews will be detected by git, but...)?


then you did everything right, and if it gives any diff other than your
changes to "somefile", something is buggy. Need more info.

Does "git diff" and "git diff HEAD" give different results, btw?


Yes. the two commands give the same results.


Decidedly odd. What happens when you do "git update-index --refresh" and then re-run the "git diff > my.patch" thing?

--
Andreas Ericsson                   andreas.ericsson@xxxxxx
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
-
: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]