diff --git a/.gitconfig b/.gitconfig index 8f647c9..016942c 100644 --- a/.gitconfig +++ b/.gitconfig @@ -20,6 +20,7 @@ unstage = reset HEAD -- undo = reset --soft HEAD~1 discard = checkout -- + changes = !(commit=$(git log --pretty=format:'%h %cr <%an> %s' | fzf | cut -d' ' -f1) && git diff "$commit~1" "$commit") incoming = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' ..@{u}) outgoing = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' @{u}..)