aboutsummaryrefslogtreecommitdiff
path: root/metadot
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-10-08 11:48:56 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-10-08 11:48:56 -0300
commit17c4db02212b4e6b5124a1d9104fcffcc4bf62a3 (patch)
treea72013e3bfc3c51888b60ba823dff473499e4861 /metadot
parent6964d1ae135144b28e4935e849602ab0607b4c71 (diff)
downloaddotfiles-17c4db02212b4e6b5124a1d9104fcffcc4bf62a3.tar.gz
dotfiles-17c4db02212b4e6b5124a1d9104fcffcc4bf62a3.tar.bz2
Metadot: new 'version' option
Diffstat (limited to 'metadot')
-rwxr-xr-xmetadot2
1 files changed, 2 insertions, 0 deletions
diff --git a/metadot b/metadot
index 1f39888..3ba6c28 100755
--- 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