~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e08f81
)
gitconfig: Improve the git release alias.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 23 Mar 2008 19:34:33 +0000
(19:34 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 23 Mar 2008 19:34:33 +0000
(19:34 +0000)
gitconfig
patch
|
blob
|
blame
|
history
diff --git
a/gitconfig
b/gitconfig
index
1505132
..
c1a4d4d
100644
(file)
--- a/
gitconfig
+++ b/
gitconfig
@@
-47,9
+47,12
@@
egrep = "grep -E"
patch = "format-patch -o p -s"
release = !"sh -e -c ' \
- ver=${1?version}; \
- shift; \
- git tag -as "$@" -m \"Release $ver.\" \"$ver\"' release"
+ [ $# -gt 0 ] || { \
+ echo >&2 \"usage: git release [OPTS] TAG\"; \
+ exit 1; \
+ }; \
+ ver=$(eval echo \"\\$$#\"); \
+ git tag -as -m \"Release $ver.\" \"$@\"' release"
amend = !"env EDITOR=true VISUAL=true git commit --amend -a"
mailto = "send-email \
--quiet \