3 # suck in a pile of files, commit based on timestamp,
6 : ${AUTHOR:="Unknown <>"}
10 test -d "$base/.git" || git init "$base"
16 find . -name .git -prune -o -type f -printf '%T@ %P\n' | sort -n | while read ts fn; do
17 if [ -n "$prevts" ] && [ "$prevts" != "$ts" ]; then
18 git commit --date="$prevts" --author="$AUTHOR" -m 'auto commit for import'
26 find . -name .git -prune -o -type f -printf '%T@ %P\n' | sort -n | tail -1 | while read ts fn; do
27 git commit --date="$ts" --author="$AUTHOR" -m 'auto commit for import'