[darcs-devel] should --look-for-adds imply --summary ?

Tommy Pettersson ptp at lysator.liu.se
Tue Mar 1 10:40:25 PST 2005


On Tue, Mar 01, 2005 at 09:06:03AM -0800, Dave Roberts wrote:
> As an aside, I frankly think that whatsnew has it a bit backwards and
> should maybe default to -s behavior, with a --detail switch or
[...]
> Does anybody else have this same issue?

I disagree on the default, but that's really not a big issue
since it can be changed in ~/.darcs/defaults.

The name is somewhat more complicated, since --summary is
also a flag to 'darcs changes', but there it gives _more
detailed_ information.

The information in both cases looks the same, so maybe the
name of the flag should explain what this information is.
In a technical sense (darcs' internal data structures) it _is_
a summary of the changes, but most users probably interpret
the flag as --summarize.

Maybe it could be changed into a three-valued option:

  --no-whats, --summary-whats (-s), --whats

with 'whatsnew' default to --whats and 'changes' default
to --no-whats.

'whatsnew --no-whats' would print just "Changes!" or "No
changes!", and 'changes --whats' would print the full patch
contents just like 'annotate -p foo'.


-- 
Tommy Pettersson <ptp at lysator.liu.se>




More information about the darcs-devel mailing list