Add linediff alias

This commit is contained in:
ItsDrike 2023-05-22 16:41:21 +02:00
parent 9921a7bdc4
commit 4aaa1e1e64
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -42,6 +42,7 @@
ds = "diff --staged" ds = "diff --staged"
dw = "diff --word-diff" dw = "diff --word-diff"
dcm = "!sh -c 'git diff $0~ $0'" dcm = "!sh -c 'git diff $0~ $0'"
linediff = "!sh -c 'git diff --unified=0 $1 $2 | grep -Po \"(?<=^\\+)(?!\\+\\+).*\" '"
b = "branch" b = "branch"
ba = "branch --all" ba = "branch --all"