On Sat, Nov 3, 2012 at 5:25 AM, Richard Hipp <d...@sqlite.org> wrote:
>
>
> On Sat, Nov 3, 2012 at 4:33 AM, Themba Fletcher <themba.fletc...@gmail.com>
> wrote:
>>
>> Attached is a simple shell wrapper around fossil diff that colorizes
<snip>
>>
>> Criticism and feedback welcome, and I hope it's useful to somebody.
>
>
> Cool script.  Works for me.
>
> But I'm going to stick with the built-in --tk option to the "fossil diff"
> command that was added about a month ago (and appears in the 1.24 release.)
> Do you know about that one?
>
>      fossil diff --tk
>      fossil diff --tk --unified
>

I'm ashamed to admit that that by the time I found the --tk option I
was half done with the script, and it never crossed my mind that I
could pass the --unified flag to it.

I do have quite a bit of time invested in my terminal based workflow
at this point (for example the fonts and background colors all match
my editor, and some other trivial stuff that makes the mode-switch to
a Tk window a little jarring) so I do prefer a fully text based
solution, but I do have to say that the new Tck/Tk diffs are nice and
certainly much more accessible than the way I'm doing it.

So between being half done, the above mentioned text bias, and the
fact that my fingers have already grown accustomed to typing f-diff (I
used to just pipe it to less -S) and still getting to use 'q' to end
the diff rather than Alt-F4 I just finished the script instead of
adapting to the new regime :)

On the other hand, the Tcl/Tk based solution is (I assume) taking its
cues directly from fossil's diff engine, so at least it can be counted
on to always add its color correctly...

> The above requires that you have Tcl/Tk installed on your system.  Any
> reasonable version of Tcl/Tk will do.  Tcl/Tk is installed by default on
> Macs, so you should be good there, and is included by default on most linux
> distros, if I'm not badly mistaken.
>

Just for reference, Tcl/Tk is installed in Ubuntu 12.04 by default --
or at least enough of it that the new diff mode does seem to work. It
doesn't always scale itself appropriately (it's pretty narrow), but
this is likely due more to my poor line-length discipline than
anything else.

>
>>
>>
>> Themba
>>
>> _______________________________________________
>> fossil-users mailing list
>> fossil-users@lists.fossil-scm.org
>> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>>
>
>
>
> --
> D. Richard Hipp
> d...@sqlite.org
>
> _______________________________________________
> fossil-users mailing list
> fossil-users@lists.fossil-scm.org
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to