git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Quick question: how to generate a patch?

From
Andreas Ericsson <ae@op5.se>
Date
Feb 27, 2006, 17:09 UTC
Message-ID
<44033241.6070001@op5.se>
In-Reply-To
<6d6a94c50602270902k2c06aaffw7e70268b0753ef64@mail.gmail.com>
Aubrey wrote:
Show 15 quoted lines
>>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...)?

Show 9 quoted lines
> 
>>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@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: AubreyNext: Aubrey
Message 7 of 13 in “Quick question: how to generate a patch?”
  1. AubreyFeb 27, 2006
  2. Andreas EricssonFeb 27, 2006
  3. Linus TorvaldsFeb 27, 2006
  4. AubreyFeb 27, 2006
  5. Linus TorvaldsFeb 27, 2006
  6. AubreyFeb 27, 2006
  7. Andreas EricssonFeb 27, 2006
  8. AubreyFeb 27, 2006
  9. Linus TorvaldsFeb 27, 2006
  10. AubreyFeb 28, 2006
  11. Linus TorvaldsFeb 28, 2006
  12. AubreyFeb 28, 2006
  13. Linus TorvaldsFeb 27, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.