From 6db452e760ea0601311797dbda9672cfabf1d110 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Thu, 20 May 2021 12:16:20 +0200 Subject: [PATCH] config/git: add sd & dm shorties --- .config/git/config | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.config/git/config b/.config/git/config index a819efd..6aece74 100644 --- a/.config/git/config +++ b/.config/git/config @@ -71,8 +71,8 @@ s = !git stl && git stb st = stb . stb = status --short --branch - stv = --paginate status -v - stvv = --paginate status -vv + sv = --paginate status -v + svv = --paginate status -vv r = remote -v b = branch -vv @@ -81,6 +81,7 @@ sw = switch sc = switch -c + sd = switch -d sm = !git switch $(git main) ref = reflog show --pretty=tformat:'%C(auto)%h%d %s %Cgreen(%cd) %Cblue<%an>%Creset' @@ -102,6 +103,7 @@ when = git for-each-ref --sort=committerdate --format='%(refname:short) * %(authorname) * %(committerdate:relative)' refs/remotes/ # List all branches with their last updates d = diff + dm = !git diff $(git merge-base $(git main) HEAD) dw = diff --color-words dc = diff --color-words="[^[:space:]]|([[:alnum:]]|UTF_8_GUARD)+"