]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - gitconfig.m4
tig.pl: Spawn a pager.
[config/dotfiles.git] / gitconfig.m4
index 66c73761245e5a4aad1706b131a88be64ab74382..1977f2e67955ff47e85d4a29e2ac8b6ee353b383 100644 (file)
@@ -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.