-# does a careful git update on all the folders in the specified list.
-function puff_out_list()
-{
- # make the list of directories unique.
- local list="$(uniquify $*)"
-
- save_terminal_title
-
- # turn repo list back into an array.
- eval "repository_list=( ${REPOSITORY_LIST[*]} )"
-
- local outer inner
-
-#hmmm: once again, seeing some reusable code in this loop...
- for outer in "${repository_list[@]}"; do
- # check the repository first, since it might be an absolute path.
- if [[ $outer =~ /.* ]]; then
- # yep, this path is absolute. just handle it directly.
- if [ ! -d "$outer" ]; then continue; fi
- do_careful_git_update "$outer"
- test_or_die "running puff-out (absolute) on path: $outer"
- sep 28
- else
- for inner in $list; do
- # add in the directory component to see if we can find the folder.
- local path="$inner/$outer"
- if [ ! -d "$path" ]; then continue; fi
- do_careful_git_update "$path"
- test_or_die "running puff-out (relative) on path: $path"
- sep 28
- done
- fi
- done
-
- restore_terminal_title
-}
-
-#hmmm: to go below.
-### takes out the first few carriage returns that are in the input.
-##function squash_first_few_crs()
-##{
- ##i=0
- ##while read input_text; do
- ##i=$((i+1))
- ##if [ $i -le 5 ]; then
- ##echo -n "$input_text "
- ##else
- ##echo $input_text
- ##fi
- ##done
- ##if [ $i -le 3 ]; then
- ### if we're still squashing eols, make sure we don't leave them hanging.
- ##echo
- ##fi
-##}
-
-#hmmm: the below are git specific and should be named that way.