git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
150d3de
)
pull submodules make command
author
Carl Fürstenberg
<azatoth@gmail.com>
Tue, 15 Mar 2011 20:25:51 +0000
(21:25 +0100)
committer
Carl Fürstenberg
<azatoth@gmail.com>
Tue, 15 Mar 2011 20:25:51 +0000
(21:25 +0100)
Adding an helper funciton to pull the latest from all registered
submodules
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
e0d1da7
..
7b67f7a
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-99,4
+99,9
@@
distclean: clean
@@echo "Removing submodules"
@@rm -rf test/qunit src/sizzle
+# update the submodules to the latest at the most logical branch
+pull_submodules:
+ @@git submodule foreach "git pull origin \$$(git branch --no-color --contains \$$(git rev-parse HEAD) | grep -v \( | head -1)"
+ @@git submodule summary
+
.PHONY: all jquery lint min init jq clean