X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=gitconfig.m4;h=1977f2e67955ff47e85d4a29e2ac8b6ee353b383;hb=cf2f4142baba6dc0bcc9d8af37e83cb8ca3add0e;hp=66c73761245e5a4aad1706b131a88be64ab74382;hpb=c132a73d71bfb6de4bdbe4ea935e5df7968dd179;p=config%2Fdotfiles.git diff --git a/gitconfig.m4 b/gitconfig.m4 index 66c7376..1977f2e 100644 --- a/gitconfig.m4 +++ b/gitconfig.m4 @@ -120,7 +120,12 @@ include(../lib.m4) # precise enough control over formats and colors. # # tig = log --pretty=oneline --graph --all --decorate --abbrev-commit - tig = ! TIG | less + tig = ! TIG + + # Create backup of uncommitted and untracked changes. + ssb = "! git stash save --include-untracked \ + \"Backup on $(date -R)\" >/dev/null \ + && git stash apply >/dev/null" [diff] # Detect copies and renames.