Last active
September 27, 2026 14:55
-
-
Save Shoozza/af3863258e7e94a8a6c6843dea082dcc to your computer and use it in GitHub Desktop.
flatpak kompare histogram diffing via git diff
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
| #!/bin/bash | |
| left="${@: -2:1}" | |
| right="${@: -1}" | |
| # myers diff | |
| #flatpak-spawn --host git \ | |
| --no-pager \ | |
| diff \ | |
| --no-index \ | |
| --no-color \ | |
| --no-ext-diff \ | |
| --diff-algorithm=myers \ | |
| -- "$left" "$right" | |
| # histogram diff | |
| flatpak-spawn --host git \ | |
| --no-pager \ | |
| diff \ | |
| --no-index \ | |
| --no-color \ | |
| --no-ext-diff \ | |
| --diff-algorithm=histogram \ | |
| -- "$left" "$right" | |
| exit $? |
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
| #!/bin/bash | |
| # allow access to the shell script's folder | |
| # so it can be run | |
| flatpak override --user \ | |
| --filesystem=/home/deck/bin:ro \ | |
| org.kde.kompare | |
| # allow flatpak-spawn support | |
| # so it can call git diff | |
| flatpak override --user \ | |
| --talk-name=org.freedesktop.Flatpak \ | |
| org.kde.kompare |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment