From: Chris Koeritz Date: Thu, 26 Apr 2012 12:27:20 +0000 (-0400) Subject: added a couple more patterns for overload report. X-Git-Tag: 2.140.90~1384 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=548ca4258dc705168cf490bccd1d217b66a567f6;p=feisty_meow.git added a couple more patterns for overload report. put a git add into the checkin command, so new files automatically get included and moved files get noticed properly. --- diff --git a/scripts/notes/info_overload_report.sh b/scripts/notes/info_overload_report.sh index d62a6a8e..80773324 100644 --- a/scripts/notes/info_overload_report.sh +++ b/scripts/notes/info_overload_report.sh @@ -3,11 +3,12 @@ REPORT_FILE="$HOME/cloud/overload_history.txt" -# given a path, this will find how many items are under it, ignoring svn and git files. +# given a path, this will find how many items are under it, ignoring svn and git files, plus +# other patterns we happen to notice are not useful. function calculate_depth() { local dir="$1"; shift - find "$dir" -type f -exec echo \"{}\" ';' | grep -v "\.svn" | grep -v "\.git" | wc -l | tr -d ' ' + find "$dir" -type f -exec echo \"{}\" ';' | grep -v "\.svn" | grep -v "\.git"| grep -v "\.basket" | grep -v "\.version" | grep -v "\.keep" | wc -l | tr -d ' ' } ############## diff --git a/scripts/rev_control/checkin.sh b/scripts/rev_control/checkin.sh index df405124..2bddd3c3 100644 --- a/scripts/rev_control/checkin.sh +++ b/scripts/rev_control/checkin.sh @@ -9,17 +9,12 @@ source "$FEISTY_MEOW_SCRIPTS/rev_control/rev_control.sh" function do_checkin() { local directory="$1"; shift - if [ -d "CVS" ]; then - # this appears to be cvs. -# pushd "$directory/.." &>/dev/null - cvs ci . -###"$directory" -# popd &>/dev/null - elif [ -d ".svn" ]; then - svn ci . + if [ -d "CVS" ]; then cvs ci . ; + elif [ -d ".svn" ]; then svn ci . ; elif [ -d ".git" ]; then - git commit . - git push + git add . # snag all new files. not to everyone's liking. + git commit . # tell git about all the files and get a check-in comment. + git push # upload the files to the server so others can see them. else echo unknown repository for $directory... fi