gitconfig: New alias `amend' does the obvious thing.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 23 Mar 2008 16:27:37 +0000 (16:27 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 23 Mar 2008 16:27:37 +0000 (16:27 +0000)
gitconfig

index 7ef9adf..1505132 100644 (file)
--- a/gitconfig
+++ b/gitconfig
@@ -50,6 +50,7 @@
                ver=${1?version}; \
                shift; \
                git tag -as "$@" -m \"Release $ver.\" \"$ver\"' release"
+       amend = !"env EDITOR=true VISUAL=true git commit --amend -a"
        mailto = "send-email \
                        --quiet \
                        --no-chain-reply-to \