now complains about attempts to do nothing
[feisty_meow.git] / scripts / rev_control / version_control.sh
index 000c3c61b7903d2ea12403dc7dc0f74858fdf77e..2e2214913c8055977b6dc86dcc7e2aea514fdb7f 100644 (file)
@@ -94,7 +94,7 @@ function do_checkin()
       # there could already be committed changes that haven't been pushed yet.
 
       # upload any changes to the upstream repo so others can see them.
-      git push 2>&1 | grep -v "X11 forwarding request failed" | $TO_SPLITTER
+      git push origin "$(my_branch_name)" 2>&1 | grep -v "X11 forwarding request failed" | $TO_SPLITTER
       test_or_die "git push"
 
     fi
@@ -286,7 +286,7 @@ function careful_git_update()
   local branch_list=$(git branch |grep -v '^\*')
   local bran
   for bran in $branch_list; do
-    echo "synchronizing remote branch: $bran"
+#    echo "synchronizing remote branch: $bran"
     git checkout "$bran"
     test_or_die "git checking out remote branch: $bran"
     git pull --no-ff
@@ -336,7 +336,7 @@ function do_update()
   elif [ -d ".git" ]; then
     if test_writeable ".git"; then
       $blatt
-      git pull --no-ff origin 2>&1 | grep -v "X11 forwarding request failed" | $TO_SPLITTER
+      git pull --no-ff 2>&1 | grep -v "X11 forwarding request failed" | $TO_SPLITTER
       if [ ${PIPESTATUS[0]} -ne 0 ]; then false; fi
       test_or_die "git pull of origin without fast forwards"
     fi
@@ -421,8 +421,16 @@ function perform_revctrl_action_on_file()
 
   save_terminal_title
 
+  local first_run=true
+
   while read -u 3 dirname; do
-    if [ -z "$dirname" ]; then continue; fi
+    if [ -z "$dirname" ]; then
+      if [ ! -z "$first_run" ]; then
+        echo "There was nothing to do the action '$action' on."
+      fi
+      break
+    fi
+    unset first_run
     pushd "$dirname" &>/dev/null
     echo "[$(pwd)]"
     $action .