Skip to content

Commit

Permalink
rake submodule_pull
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Mar 19, 2012
1 parent 1cce443 commit 6bf67dd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Rakefile
Expand Up @@ -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)
Expand Down

0 comments on commit 6bf67dd

Please sign in to comment.