15 if [ -n "$(git ls-files)" ]; then
16 git rm --force --quiet '*' # Remove old data - perhaps, some homes were removed
19 du -shx $i | cut -f1 > ${i#/home/};
26 GIT_AUTHOR_NAME="$0" GIT_AUTHOR_EMAIL="$USER@$(hostname -f)" \
27 git commit --quiet -m 'Automatic commit' "$@" > /dev/null || :
31 git ls-files --with-tree=HEAD | while read f; do
32 printf "%-8s\t%s\n" "$f" "$(git show "HEAD:$f")"
38 if ! [ "$dir" ]; then echo "Missing directory name" >&2; exit 1; fi
39 if ! [ -f "$dir" ]; then echo "No information about $dir in $DATA" >&2; exit 1; fi
40 git log --format='%H %ci' -- $dir | while read commit date; do
41 echo $date $(git show $commit:$dir)
46 Usage: $0 <command> [ <options> ]
51 - commit [ <git commit arguments> ]