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 <bonzini@gnu.org>
Date
Jun 30, 2009, 23:28 UTC
Message-ID
<4A4A9FA5.7000009@gnu.org>
In-Reply-To
<m3hbxxx5jk.fsf@localhost.localdomain>
On 06/30/2009 02:36 PM, Jakub Narebski wrote:
Show 17 quoted lines
> dtletmn<dtletmedn@gmail.com>  writes:
>
>> Hi,All,
>>
>>       I am wondering if cvs has an easy way to compare a file with its
>> previous version.
>>
>>       In clearcase,I can use  :
>>         cleartool diff -pred file.cc
>>
>>       how can I acheive it in CVS?
>>       any help would be highly appreciated!
>
> In CVS or in Git?
>
> In CVS: "cvs diff -r<previous revision>  <file>".
> In Git: "git diff HEAD^ --<file>".
I think he wants something more like
git diff `git log -2 --pretty=format:%h` <file> -- <file>
In CVS it should not be hard, but I definitely have no idea.
Paolo
Previous: Jakub NarebskiNext: Linus Torvalds
Message 4 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.