Permalink
Browse files

rake submodule_pull

  • Loading branch information...
mislav committed Mar 19, 2012
1 parent 1cce443 commit 6bf67dd479c69818885d1d0c79270e170f7ee23d
Showing with 7 additions and 3 deletions.
  1. +7 −3 Rakefile
View
@@ -6,9 +6,13 @@ task :update do
sh "git submodule update --init"
end
-desc %(Update submodules to HEAD)
-task :pull_submodules do
- sh "git submodule foreach git pull origin master >/dev/null"
+desc %(Update each submodule from its upstream)
+task :submodule_pull do
+ system %[git submodule foreach '
+ git pull --quiet --ff-only --no-rebase origin master &&
+ git log --no-merges --pretty=format:"%s %Cgreen(%ar)%Creset" --date=relative master@{1}..
+ echo
+ ']
end
desc %(Make ~/.vimrc and ~/.gvimrc symlinks)

0 comments on commit 6bf67dd

Please sign in to comment.