dotfiles/.local/bin/scripts/git-diffa
2021-10-14 20:36:08 +02:00

3 lines
201 B
Bash
Executable file

#!/bin/sh
# Diff given files against all branches
git for-each-ref --format='%(refname:short)' | while read branch; do { highlight $branch && git diff --color=always $branch..HEAD "$@"; }; done | less