https://www.mediawiki.org/wiki/Special:Code/MediaWiki/114531
Revision: 114531
Author: platonides
Date: 2012-03-27 17:05:37 +0000 (Tue, 27 Mar 2012)
Log Message:
-----------
Show the folder in which we're executing each subcommand
if passed the -v parameter.
Modified Paths:
--------------
trunk/tools/code-utils/subgits
Modified: trunk/tools/code-utils/subgits
===================================================================
--- trunk/tools/code-utils/subgits 2012-03-27 16:54:23 UTC (rev 114530)
+++ trunk/tools/code-utils/subgits 2012-03-27 17:05:37 UTC (rev 114531)
@@ -12,5 +12,11 @@
# For updating all the repositories:
# subgits pull
-find -name .git -execdir git "$@" \;
+EXTRA=""
+if [ "$1" == "-v" ]; then
+ shift
+ EXTRA="-execdir pwd ;"
+fi
+find -name .git $EXTRA -execdir git "$@" \;
+
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs