gitconfig: update alias 'out', fix usage of pager config, add new alias 'tagme'
authorMichael Prokop <mika@grml.org>
Sun, 2 Nov 2008 22:52:06 +0000 (23:52 +0100)
committerMichael Prokop <mika@grml.org>
Sun, 2 Nov 2008 22:52:06 +0000 (23:52 +0100)
etc/skel/.gitconfig

index 4844c2f..39f4bff 100644 (file)
@@ -20,9 +20,9 @@
     numbered = auto
 
 [color]
-    branch = auto
+    branch = yes
     diff   = auto
-    pager  = auto
+    pager  = yes
     status = auto
 
 #[color "branch"]
@@ -45,6 +45,7 @@
 #[gui]
 #    fontui   = -family terminus -size 9 -weight normal -slant roman -underline 0 -overstrike 0
 #    fontdiff = -family terminus -size 9 -weight normal -slant roman -underline 0 -overstrike 0
+#    editor = gvim
 
 [svn]
     rmdir = true
     mnc   = merge --no-commit
     olg   = log --abbrev-commit --abbrev=6 --pretty=oneline
     one   = "!sh -c 'git show -s --pretty=\"tformat:%h (%s, %ai\" \"$@\" | sed -e \"s/ [012][0-9]:[0-5][0-9]:[0-5][0-9] [-+][0-9][0-9][0-9][0-9]$/)/\"' -"
-    out   = push --dry-run
+    out   = !git push --dry-run
     purge = !git checkout $(git rev-parse --show-cdup) && git clean -xdf
     serve = !sh -c 'git daemon --reuseaddr --verbose \"$@\" --base-path=. --export-all ./.git' sh
     stgd  = diff --cached
     st    = status
+    tagme = !sh -c '[ -z "$1" ] && exit 1 || git tag -s v\"$1\" -m \"release \"$1\"\"' sh
     tush  = push --tags
     who   = "!sh -c 'git log -1 --pretty=\"format:%an <%ae>\" --author=\"$1\"' -"