]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vcs/gitconfig.in
vcs: gitconfig: use --date=now in cad alias
[config/dotfiles.git] / vcs / gitconfig.in
index 7b76f4197746fae1a392d1acd99f7b442cd9e2b4..1c26d07abe99a03dab65b0ec9d7f2ea45cb0464a 100644 (file)
@@ -1,6 +1,6 @@
 # Global Git configuration file.
 
-# Copyright (C) 2011-2017  Simon Ruderich
+# Copyright (C) 2011-2018  Simon Ruderich
 #
 # This file is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -62,7 +62,7 @@
        ## Local.
        c   = commit --verbose
        ca  = commit --verbose --amend
-       cad = commit --verbose --amend --date=
+       cad = commit --verbose --amend --date=now
        d   = diff
        dw  = diff --color-words
        ds  = diff --stat
        fg  = ! git fs && git gc --aggressive 2>&1 # fsck and compress repo
        ## Misc.
        sl  = stash list
-       ss  = stash save
-       ssk = stash save --keep-index
-       ssu = stash save --include-untracked
+       ss  = stash push
+       ssk = stash push --keep-index
+       ssu = stash push --include-untracked
        sa  = stash apply --index
        sp  = stash pop --index
 
        tig = ! PWD/bin/tig.pl
 
        # Create backup of uncommitted and untracked changes.
-       ssb = "! git stash save --include-untracked \
-                    \"Backup on $(LANG=C date '+%a, %d %b %Y %H:%M:%S %z')\" \
+       ssb = "! git stash push --include-untracked \
+                    -m \"Backup on $(LANG=C date '+%a, %d %b %Y %H:%M:%S %z')\" \
                     >/dev/null \
              && git stash apply >/dev/null"
 
        # Disable annoying advice messages.
        waitingForEditor = false
 
+[init]
+       # Don't create .git/hooks with any sample hooks. Reduces the clutter
+       # in new git repositories.
+       templateDir =
+
 
 # NON-GIT SETTINGS