Subject: Re: Quick question: how to generate a patch?

From: Andreas Ericsson <[email-masked]>
Date: Mon, 27 Feb 2006 18:09:21 +0100

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                   [email-masked]
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231