[darcs-users] Re: proposal for whitespace annotation in darcs what
dzsekijo at creo.hu
Wed Mar 30 21:39:05 UTC 2005
On 2005-03-29, Jamie Webb <j at jmawebb.cjb.net> wrote:
> On Tue, Mar 29, 2005 at 07:47:03PM +0200, Stefan Rank wrote:
>> 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;'
darcs what | ruby -ne 'p $_'
is simple and gives quite nice output.
More information about the darcs-users