]> 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 f30716150a830e0dc03e16ea6431ebd7194d3b2d..32bb9cff67608e4c6a8b415a4dffab3100199b1e 100644 (file)
@@ -87,6 +87,7 @@ include(../lib.m4)
        # 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.
        sl  = stash list
        ss  = stash save