[darcs-users] proposal for whitespace annotation in darcs what

Jamie Webb j at jmawebb.cjb.net
Tue Mar 29 23:00:11 UTC 2005


On Tue, Mar 29, 2005 at 07:47:03PM +0200, Stefan Rank wrote:
> hi
> 
> this is a wishlist thing, but i wanted to ask the list first, maybe 
> there is an easier way which i do not see:
> 
> i'd like to have two options for `darcs whatsnew`:
> 
> - `--shownewlines`: outputs the type of line ending after each hunk line
> - `--showtabsas=<string>`: replaces tabs in the output with <string>

I don't think this is something for Darcs to be concerned with. You
can get what you want with:

darcs what | perl -pe 's/\t/<TAB>   /g; s/\n/<LF>\n/g; s/\r/<CR>/g;'

(or some variation on that theme, e.g. to consider only lines starting
with + or -)

-- Jamie Webb




More information about the darcs-users mailing list