From 548ca4258dc705168cf490bccd1d217b66a567f6 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Thu, 26 Apr 2012 08:27:20 -0400 Subject: [PATCH] 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. --- scripts/notes/info_overload_report.sh | 5 +++-- scripts/rev_control/checkin.sh | 15 +++++---------- 2 files changed, 8 insertions(+), 12 deletions(-) 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 -- 2.34.1