monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] "diff -p" default?


From: Nathaniel Smith
Subject: [Monotone-devel] "diff -p" default?
Date: Tue, 11 Jul 2006 03:38:38 -0700
User-agent: Mutt/1.5.11+cvs20060403

Now that we have diff -p support on mainline, is there any reason we
shouldn't make it the default?

(For those who haven't run across this before, diff -p gives output
like:

--- hello       80ad86578e12a12c838cd4ff7ca226aa6bcc44e9
+++ hello       94ebfe438b30bf18631c1846b2891b818f46aa23
@@ -9,3 +9,9 @@ int main()
 {
         say_hello();
 }
+
+void say_goodbye()
+{
+        printf("goodbye\n");
+}
+

In particular, note the "int main()" stuck on the end of the @@ line,
to give you context when reading the patch.)

AFAIK it's still compatible with patch(1) and the various other tools
out there.

-- Nathaniel

-- 
Sentience can be such a burden.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]