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

4 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