delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/12/27/15:23:42

Message-Id: <200012271945.OAA15362@qnx.com>
Subject: Re: diff -u
To: djgpp-workers AT delorie DOT com
Date: Wed, 27 Dec 2000 14:45:50 -0500 (EST)
From: "Alain Magloire" <alain AT qnx DOT com>
In-Reply-To: <Pine.SUN.3.91.1001227190901.12222C-100000@is> from "Eli Zaretskii" at Dec 27, 2000 07:12:27 PM
X-Mailer: ELM [version 2.5 PL0b1]
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> 
> 
> On Wed, 27 Dec 2000, Martin Str|mberg wrote:
> 
> > What's the context in context diffs that aren't in unified diffs?
> 
> Unified (-u) diffs prefer line deletions and additions, while context 
> (-c) diffs favor groups of changed lines.  The latter makes it easier to 
> see the two versions side by side, while -u requires you to reconstruct 
> that mentally.  Some people find that reconstruction hard.

True, but you can put some context, for example
diff -U3
asking for 3 lines context. At least GNU diff can do this.

IIRC gcc maintainers asked for
diff -c3p
diff -up

-- 
au revoir, alain
----
Aussi haut que l'on soit assis, on est toujours assis que sur son cul !!!

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019