From 2e5ace359825351cc10fcdfc0864ef7863be1908 Mon Sep 17 00:00:00 2001 From: Guilherme Rugai Freire <41879254+GRFreire@users.noreply.github.com> Date: Sat, 9 Oct 2021 11:49:40 -0300 Subject: [PATCH] git: add alias git changes --- .gitconfig | 1 + 1 file changed, 1 insertion(+) 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}..)