]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - gitconfig.m4
gitconfig: Add fg alias (git fs && git gc --aggressive).
[config/dotfiles.git] / gitconfig.m4
index b6c59d5ad677d825e4122d94e1e482da511f5004..32bb9cff67608e4c6a8b415a4dffab3100199b1e 100644 (file)
@@ -84,8 +84,11 @@ include(../lib.m4)
        ru  = remote update
        # Patches.
        fp  = format-patch
+       # Maintenance. (Redirection of stderr is necessary to prevent missing
+       # output with my "color stderr" solution in Zsh.)
+       fs  = ! git fsck --strict --full 2>&1
+       fg  = ! git fs && git gc --aggressive 2>&1 # fsck and compress repo
        # Misc.
-       fs  = fsck --strict --full
        sl  = stash list
        ss  = stash save
        sa  = stash apply