sccsdiff of currently edited file

View: New views
2 Messages — Rating Filter:   Alert me  

sccsdiff of currently edited file

by Ivan Novick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I am trying to see the diffs of a currently edited file.

So for example my file hello.cc has a latest version of 1.28

sccs sccsdiff -r1.28 -r1.27 hello.cc

shows me the differences in the last committed change.

But after a file has been open for editing and changes have been  
made, how can one see the changes before committing?

sccs diffs hello.cc is what I usually do on Sun machines with SCCS  
installed.

Thank you,
Ivan


_______________________________________________
cssc-users mailing list
cssc-users@...
http://lists.gnu.org/mailman/listinfo/cssc-users

Re: sccsdiff of currently edited file

by James Youngman-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Aug 27, 2005 at 04:12:26PM +0100, Ivan Novick wrote:

> sccs diffs hello.cc is what I usually do on Sun machines with SCCS  
> installed.

The same thing works with GNU CSSC:-

james@orbital:~/source/GNU/CSSC/sourceforge/compile$ ls -ld SCCS/* foo
-rw-r--r--  1 james users  12 2005-08-27 18:22 foo
-rw-r--r--  1 james users  32 2005-08-27 18:22 SCCS/p.foo
-r--r--r--  1 james users 156 2005-08-27 18:22 SCCS/s.foo
james@orbital:~/source/GNU/CSSC/sourceforge/compile$ sccs diffs foo

------- foo -------
1a2
> world
james@orbital:~/source/GNU/CSSC/sourceforge/compile$ sccs diffs -u foo

------- foo -------
--- -   2005-08-27 18:24:31.663076000 +0100
+++ foo 2005-08-27 18:22:40.275756811 +0100
@@ -1 +1,2 @@
 hello
+world
james@orbital:~/source/GNU/CSSC/sourceforge/compile$ ./bsd/sccs --version
sccs from GNU CSSC 1.0.1
$Id: sccs.c,v 1.41 2004/10/03 10:57:35 james_youngman Exp $
SccsPath = 'SCCS'
SccsDir = ''
Default prefix for SCCS subcommands is '/usr/local/libexec/cssc/'


Regards,
James.


_______________________________________________
cssc-users mailing list
cssc-users@...
http://lists.gnu.org/mailman/listinfo/cssc-users