Last active
July 7, 2023 01:18
-
-
Save WizardOfOgz/eeed8e828e239eaaf19a676346f17a4e to your computer and use it in GitHub Desktop.
A script to locate and execute diff-highlight from the current Git installation (my install was done on macOS using Homebrew). Just save this where it can be found on your PATH.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
$(ruby -e 'puts File.expand_path("../../share/git-core/contrib/diff-highlight/diff-highlight", File.realpath(`/usr/bin/which git`.strip))') "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment