Permalink
Browse files

build-git: Print number of commits instead of showing the commit tree

To show the commit graph, use 't' choice instead. Just in case the local
git version is very old and there's lots of new changes.

537b18a8-6465-11e1-960d-00163e4e2c57
  • Loading branch information...
1 parent d5596f6 commit d975f9d534e27f077504551c03dd05c6040b183a @sunny256 sunny256 committed Mar 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 build-git
View
4 build-git
@@ -151,8 +151,8 @@ if [ ! -e GIT-VERSION-GEN ]; then
fi
fetch_remotes
is_official_branch $local_master && destbranch=origin/$local_master || destbranch=$local_master
-echo ================= New changes: $curr_git_ver..$destbranch =================
-commit_tree $curr_git_ver..$destbranch | cat
+echo
+echo $(git log --format=oneline $curr_git_ver..$destbranch | wc -l) new commits available in range $curr_git_ver..$destbranch
echo
echo ================= git status in `pwd` =================
git status

0 comments on commit d975f9d

Please sign in to comment.