darcs

Issue 1387 darcs whatsnew --summary: diffstat style

Title darcs whatsnew --summary: diffstat style
Priority feature Status needs-implementation
Milestone Resolved in
Superseder Nosy List darcs-devel, dmitry.kurochkin, jaredj, kowey, mndrix, twb
Assigned To
Topics ProbablyEasy, UI

Created on 2009-03-12.02:11:28 by twb, last changed 2012-02-24.05:29:40 by mndrix.

Messages
msg7431 (view) Author: twb Date: 2009-03-12.02:11:25
Recently I have been using git a little, and when pulling patches from
an upstream repository, it emits a summary similar to that produced by
the diffstat(1) command:

    Fast forward
     panels/midori-addons.c     |    2 ++
     panels/midori-console.c    |    9 ++++++---
     panels/midori-extensions.c |    2 ++
     3 files changed, 10 insertions(+), 3 deletions(-)

The diffstat style is to have one + for each added hunk, and one - for
each removed hunk.  This is useful as you can see at a glance which
files have a lot of changes, and which have only a few.  I think this
is easier to "see" than just the numbers.

This could be done for darcs --summary, too:

    $ darcs changes --last=1 --summary
    M ./GNUmakefile -12
    M ./configure.ac -9
    M ./darcs.cabal -16
    M ./src/Darcs/External.hs -31 +1

    $ darcs changes --last=1 --summary --diffstat
    M ./GNUmakefile		------------
    M ./configure.ac		-------------------
    M ./darcs.cabal		----------------
    M ./src/Darcs/External.hs	+-------------------------------

A demo patch would be useful so people can try it out.
History
Date User Action Args
2009-03-12 02:11:28twbcreate
2009-03-31 19:48:41tux_rockersetpriority: feature
nosy: kowey, simon, twb, thorkilnaur, dmitry.kurochkin
2009-08-18 14:43:09koweysetstatus: unread -> needs-implementation
nosy: + jaredj
topic: + ProbablyEasy
2009-08-18 14:43:22koweysettopic: + UI
nosy: kowey, simon, twb, thorkilnaur, jaredj, dmitry.kurochkin
2009-08-25 17:41:56adminsetnosy: + darcs-devel, - simon
2009-08-27 14:26:59adminsetnosy: kowey, darcs-devel, twb, thorkilnaur, jaredj, dmitry.kurochkin
2010-04-03 16:22:22koweysetnosy: - thorkilnaur
2012-02-24 05:29:40mndrixsetnosy: + mndrix