[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Savannah-hackers] log_accum
From: |
Jeff Bailey |
Subject: |
[Savannah-hackers] log_accum |
Date: |
Sun, 29 Sep 2002 16:59:15 -0700 |
User-agent: |
Mutt/1.3.28i |
I have created a special version of log_accum called log_accum_jbhack
that supports a -u option for generating unidiffs. We are using it
for the 'hurd' module of the 'hurd' project now.
Is there a CVS repository for this I can put it into? I'd like to
commit it to the main version and then update the relevant
documentation.
Here's the patch:
[/usr/local/bin]# diff -u log_accum log_accum_jbhack
--- log_accum Thu Nov 29 10:25:41 2001
+++ log_accum_jbhack Sun Sep 29 19:36:08 2002
@@ -26,6 +26,7 @@
# format string.
# -U URL - Base URL for cvsweb if -C option (above) is used.
# -D - generate diffs as part of the notification mail
+# -u - Unified Diff instead of context
#
# Configurable options
@@ -451,6 +452,8 @@
$modulename = shift @ARGV;
} elsif ($arg eq '-s') {
$do_status = 0;
+ } elsif ($arg eq '-u') {
+ $do_unidiff = 1;
} elsif ($arg eq '-f') {
($commitlog) && die("Too many '-f' args\n");
$commitlog = shift @ARGV;
@@ -763,7 +766,7 @@
print STDERR "main(): doing diff on $dofile\n";
}
open (DIFF, "-|")
- || exec 'cvs', '-nQq', 'rdiff', '-tc',
"$modulename/$dofile";
+ || exec 'cvs', '-nQq', 'rdiff', '-t', ($do_unidiff ? '-u' :
'-c'), "$modulename/$dofile";
while (<DIFF>) {
# FIXME: Rearrange the diffs so that they make valid
# `patch' input.
--
learning from failures is nice in theory...
but in practice, it sucks :)
- Wolfgang Jaehrling
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Savannah-hackers] log_accum,
Jeff Bailey <=