From 5622a4e0239c03472d57594f3a830f639ea7d9c3 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 27 Dec 2008 11:58:07 +0000 Subject: [PATCH] gitconfig: Fix release alias; add whitespace checking. The git release alias had become mouldy, and didn't work properly when tagging historical releases. New git space command warns about whitespace snafus. --- gitconfig | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gitconfig b/gitconfig index d74e60b..3d2a12c 100644 --- a/gitconfig +++ b/gitconfig @@ -1,3 +1,6 @@ +### -*-conf-*- +### Git configuration + [core] filemode = true excludesfile = @gitignore@ @@ -49,12 +52,13 @@ patch = "format-patch -o p -s" release = !"sh -e -c ' \ [ $# -gt 0 ] || { \ - echo >&2 \"usage: git release [OPTS] TAG\"; \ + echo >&2 \"usage: git release TAG [OPTS]\"; \ exit 1; \ }; \ - ver=$(eval echo \"\\$$#\"); \ - git tag -as -m \"Release $ver.\" \"$@\"' release" + git tag -as -m \"Release $1.\" \"$@\"' release" amend = !"env EDITOR=true VISUAL=true git commit --amend -a" + spaces = !"sh -e -c 'git ls-files -z \"$@\"| \ + xargs -0r space -cv' spaces" mailto = "send-email \ --quiet \ --no-chain-reply-to \ -- 2.11.0