Created
July 1, 2025 13:33
-
-
Save lucasbracher/9fc4cbbc81dad6c304d07bd9ee450e2b to your computer and use it in GitHub Desktop.
Ohmyzsh plugin for using meld as git diff without making it the default
This file contains hidden or 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
| gitmeld() { | |
| FILENAME=$1 | |
| HASH_1=$2 | |
| HASH_2={3:HEAD} | |
| meld --label="$HASH_2 $(basename $FILENAME)" --label="$HASH_1 $(basename $FILENAME)" <(git show $HASH_2:$FILENAME) <(git show $HASH_1:$FILENAME) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment