]> gitweb.fluxo.info Git - metadot.git/commitdiff
Metadot: new 'version' option
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 8 Oct 2013 14:48:56 +0000 (11:48 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 8 Oct 2013 14:48:56 +0000 (11:48 -0300)
metadot

diff --git a/metadot b/metadot
index 1f39888da52b2b26bfe61e23efce53319bc730e7..3ba6c283b17845b74a63d82a227223eaeda1a2f0 100755 (executable)
--- a/metadot
+++ b/metadot
@@ -77,6 +77,8 @@ if [ -z "$OPT" ]; then
   exit 1
 elif [ "$OPT" == "ls" ]; then
   ls -1 $MODULES
+elif [ "$OPT" == "version" ]; then
+  ( cd $DOT && git log -n 1 )
 elif [ "$OPT" == "update" ]; then
   ( cd $DOT && git pull origin master && git submodule update --init )
 elif [ "$OPT" == "backup" ]; then