delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/12/27/16:17:45

Date: Wed, 27 Dec 2000 23:15:37 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
Sender: halo1 AT zahav DOT net DOT il
To: "Alain Magloire" <alain AT qnx DOT com>
Message-Id: <9003-Wed27Dec2000231536+0200-eliz@is.elta.co.il>
X-Mailer: Emacs 20.6 (via feedmail 8.3.emacs20_6 I) and Blat ver 1.8.6
CC: djgpp-workers AT delorie DOT com
In-reply-to: <200012271945.OAA15362@qnx.com> (alain@qnx.com)
Subject: Re: diff -u
References: <200012271945 DOT OAA15362 AT qnx DOT com>
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

> Date: Wed, 27 Dec 2000 14:45:50 -0500 (EST)
> From: "Alain Magloire" <alain AT qnx DOT com>
> > 
> > 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.

Context is not the problem here: the lines which are changed are.
Some people have difficulty to digest the representation used by -u.

> IIRC gcc maintainers asked for
> diff -c3p
> diff -up

Both Richard Stallman and Gerd Moellmann (the Emacs head maintainer)
asked me to use -c when I want them to read the diffs.

- Raw text -


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