updated to recurse for checkin and diff, but not super far. just allows us to
[feisty_meow.git] / scripts / rev_control / rev_diff.sh
index f197b3d97264f61e7a8c5806919e72c99c1edce1..8682714a4dbdb4b2e16d1b0b5616904ac9d57b8f 100644 (file)
@@ -9,24 +9,31 @@ if [ -z "$dir" ]; then
   dir=.
 fi
 
-pushd "$dir" &>/dev/null
+source "$FEISTY_MEOW_SCRIPTS/rev_control/version_control.sh"
 
-for i in * ; do
-  if [ -d "$i" ]; then
-    echo "[$i]"
-    pushd $i &>/dev/null
-    # only update if we see a repository living there.
-    if [ -d ".svn" ]; then
-      svn diff .
-    elif [ -d ".git" ]; then
-      git diff 
-    elif [ -d "CVS" ]; then
-      cvs diff .
-    fi
-    popd &>/dev/null
-    echo "======="
-  fi
-done
+tempfile=$(generate_rev_ctrl_filelist)
 
-popd &>/dev/null
+perform_action_on_file "$tempfile" do_diff
+
+
+#pushd "$dir" &>/dev/null
+#
+#for i in * ; do
+#  if [ -d "$i" ]; then
+#    echo "[$i]"
+#    pushd $i &>/dev/null
+#    # only update if we see a repository living there.
+#    if [ -d ".svn" ]; then
+#      svn diff .
+#    elif [ -d ".git" ]; then
+#      git diff 
+#    elif [ -d "CVS" ]; then
+#      cvs diff .
+#    fi
+#    popd &>/dev/null
+#    echo "======="
+#  fi
+#done
+#
+#popd &>/dev/null