commit | b673c44595db6ffce1fcae50d122771bbf8360b5 | [log] [tgz] |
---|---|---|
author | Vincent Driessen <vincent@datafox.nl> | 周三 2月 10 00:43:53 2010 +0100 |
committer | Vincent Driessen <vincent@datafox.nl> | 周三 2月 10 00:43:53 2010 +0100 |
tree | 9717bad4557a126a788b2c7dea2684d345d51027 | |
parent | 68845235272d895c3358325d6ef7aec273bcced6 [diff] [blame] |
Better (less complex) way of counting the branch name length.
diff --git a/git-flow-hotfix b/git-flow-hotfix index 0b4ab25..cee8d2f 100644 --- a/git-flow-hotfix +++ b/git-flow-hotfix
@@ -44,7 +44,7 @@ typeset -i width=0 typeset branch for branch in $short_names; do - typeset -i len=$(($(echo "$branch" | wc -c) - 1)) + typeset -i len=${#branch} width=$(max $width $len) done width=width+3