It looks like Git Tower launches the diff tool through the command line and there are command line switches for these preferences. What you'd do is create a shell script wrapper which takes the parameters that git sends to the diff tool and pass them to the bbdiff tool with the appropriate command line switches set.
http://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration <http://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration> Usage: bbdiff [options] FILE1 FILE2 --case-sensitive --flatten-folders --help --ignore-curly-quotes --ignore-spaces --ignore-extra-spaces --ignore-leading-spaces --ignore-trailing-spaces --resume --reverse --short-version --show-identical-files --skip-shielded-folders --text-files-only --version --wait [fletcher] > On Nov 11, 2014, at 10:00 AM, Phillip Apley <[email protected]> wrote: > > Is there any way to change the default settings for BBEDit so that when it > launches in as the "Diff Tool" or "Merge Tool" (compare-file mode) from Git > Tower or other apps, it will ignore > leading and trailing whitespace? When comparing from the 'Search' -> 'Find > Differences' menu there are checkboxes for these settings. > Once the diff is launched I don't see any way to change them and recalculate > the diffs. > > This could be managed with a preference, or global environment variable > before the app launches, or ideally an option click on the 'recalculate' > button, or a checkbox that can be clicked after the app is launched. > > > <https://lh3.googleusercontent.com/-O0KHe9N2M2Y/VGJMtUl_LRI/AAAAAAAAACk/Wed52vRRtHs/s1600/tmp.tiff> > If there's a way to do this from the BBEdit command line tools API, it might > be possible for me to intercept what Tower is doing to launch it, but I > imagine that will be difficult and not survive upgrades. > > This is an essential feature. Please let me know if there's a way to do it or > if it can be added. > > It would also be very valuable to have control over ignoring line ending > differences (Unix/Mac; CR, LF, CRLF) in this context as well. > An alternative I've found is to use Kaleidoscope, which has a check box for > this, but doesn't let you edit the files directly, so I'd have to go back and > forth between BBEdit and Kaleidoscope, and it wouldn't work well. > > > -- > This is the BBEdit Talk public discussion group. If you have a > feature request or would like to report a problem, please email > "[email protected]" rather than posting to the group. > Follow @bbedit on Twitter: <http://www.twitter.com/bbedit > <http://www.twitter.com/bbedit>> > > --- > You received this message because you are subscribed to the Google Groups > "BBEdit Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
