OSDN Git Service
(root)
/
git-core
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2da2ddc
)
git-submodule summary: fix that some "wc" flavors produce leading spaces
author
Johannes Sixt
<johannes.sixt@telecom.at>
Wed, 12 Mar 2008 08:30:01 +0000
(09:30 +0100)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 12 Mar 2008 08:53:30 +0000
(
01:53
-0700)
We print the number of commits in parentheses, but without this change
we would get an oddly looking line like this:
* sm1
4c8d358
...
41fbea9
( 4):
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-submodule.sh
patch
|
blob
|
history
diff --git
a/git-submodule.sh
b/git-submodule.sh
index
4d28fc0
..
558a5ca
100755
(executable)
--- a/
git-submodule.sh
+++ b/
git-submodule.sh
@@
-448,7
+448,7
@@
cmd_summary() {
GIT_DIR="$name/.git" \
git log --pretty=oneline --first-parent $range | wc -l
)
- total_commits=" ($
total_commits
)"
+ total_commits=" ($
(($total_commits + 0))
)"
;;
esac