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

Re: Does CVS has a easy way to compare file with its previous version?

From
Paolo Bonzini <paolo.bonzini@gmail.com>
Date
Jul 7, 2009, 19:57 UTC
Message-ID
<4A53A8BA.6060505@gmail.com>
In-Reply-To
<279b37b20907061639o6d6c72e7qf7bbc2459c7fc77e@mail.gmail.com>
On 07/07/2009 01:39 AM, Eric Raible wrote:
Show 14 quoted lines
> On Thu, Jul 2, 2009 at 11:39 PM, Paolo Bonzini<bonzini@gnu.org>  wrote:
>> On 07/02/2009 08:04 PM, Eric Raible wrote:
>>> Isn't the first one incorrect because<file>    needs to be inside the
>>> backticks?
>>> git diff `git log -2 --pretty=format:%h<file>` --<file>
>>>
>>> And isn't the replacement incorrect also (the diffs are backwards)?
>>> git log --no-merges -p -R -1<file>
>> Yes and no.
>>
>> Paolo
>>
>
> Are you sure that you didn't mean yes and yes?

I'm sure; I'm not sure I was right (though I did retest at the time, and I was convinced that Linus's alternative worked).

Paolo
Previous: Eric RaibleNext: dtletmn
Message 9 of 10 in “Does CVS has a easy way to compare file with its previous version?”
  1. dtletmnJun 30, 2009
  2. Andreas EricssonJun 30, 2009
  3. Jakub NarebskiJun 30, 2009
  4. Paolo BonziniJun 30, 2009
  5. Linus TorvaldsJul 1, 2009
  6. Eric RaibleJul 2, 2009
  7. Paolo BonziniJul 3, 2009
  8. Eric RaibleJul 6, 2009
  9. Paolo BonziniJul 7, 2009
  10. dtletmnJul 1, 2009

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.