dotfiles/.local/bin/scripts/git-diffa

4 lines
201 B
Plaintext
Raw Normal View History

2021-10-14 18:25:44 +00:00
#!/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