home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.perl
- Path: sparky!uunet!fmrco!fmrco!asherman
- From: asherman@laser.fmrco.com (Aaron Sherman)
- Subject: Re: processing of "diff -c" for code reviews
- In-Reply-To: utashiro@sran230.sra.co.jp's message of Mon, 7 Sep 1992 08:07:38 GMT
- Message-ID: <ASHERMAN.92Sep9161406@laser.fmrco.com>
- Sender: news@fmrco.uucp
- Reply-To: asherman@fmrco.COM
- Organization: I-Kinetics, 19 Bishop-Allen Dr., Cambridge, MA
- References: <17580@autodesk.COM> <Bu77ws.B7K@sran230.sra.co.jp>
- Date: Wed, 9 Sep 1992 21:14:06 GMT
- Lines: 44
-
-
- >>>>> utashiro@sran230.sra.co.jp (Kazumasa Utashiro) said:
-
- utashiro> dansmith@Autodesk.COM (Daniel Smith) writes:
-
- >> Looking for something that can take a context diff (like diff -c)
- >> and process it so that it can be useful in code reviews. Any pointers
- >> to scripts already written out there?
-
- utashiro> I hope that you'll like my cdif and sdif. Cdif is
- utashiro> post-processor of diff which hilights modified part of text
- utashiro> by changing text attributes. Sdif is a clone of System V
- utashiro> sdiff command but more powerfull except lack of -o option.
- utashiro> Sdif can handle cdif output.
-
- If the original poster wanted something to look at at a conference
- table with others around, this may not work, since getting a terminal
- to the meeting might not be trivial.
-
- I've actually found that GNU's diff -u (unified diff) is quite
- readable. Here is a sample:
-
- --- c.c.old Wed Sep 9 16:11:36 1992
- +++ c.c Wed Sep 9 16:12:26 1992
- @@ -1,8 +1,9 @@
- #include <stdio.h>
-
- -main(argc,argv)
- - int argc;
- - char *argv[];
- +void
- +main(int argc,char *argv[])
- {
- printf("Hello, world!\n");
- +
- + exit(0);
- }
-
-
- --
- --------
- Disclaimer: I am solely responsible for the content of this message.
- The views expressed here may not be the views of I-Kinetics, Fidelity,
- any of the Fidelity-owned corporations or my mother.
-