better naming for revision control action method.
[feisty_meow.git] / scripts / rev_control / rev_diff.sh
index f197b3d97264f61e7a8c5806919e72c99c1edce1..9f04b069aeff19ae101f6ca7ecd9546be52fb38a 100644 (file)
@@ -9,24 +9,11 @@ if [ -z "$dir" ]; then
   dir=.
 fi
 
-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
+source "$FEISTY_MEOW_SCRIPTS/rev_control/version_control.sh"
 
+pushd "$dir" &>/dev/null
+tempfile=$(generate_rev_ctrl_filelist)
 popd &>/dev/null
 
+perform_revctrl_action_on_file "$tempfile" do_diff
+