X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/f444229a67edd550bc091e376c92f203f5c1faae..774362e0c80355cafd9c93b9180563140e9fa448:/gitconfig 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 \