;;
save)
cd $DATA
+ git rm '*' # Remove old data - perhaps, some homes were removed
for i in /home/*; do
du -shx $i | cut -f1 > ${i#/home/};
git add ${i#/home/}
cd $DATA
shift
GIT_AUTHOR_NAME="$0" GIT_AUTHOR_EMAIL="$USER@$(hostname -f)" \
- git commit -m 'Automatic commit' "$@"
+ git commit --quiet -m 'Automatic commit' "$@" > /dev/null || :
;;
status)
cd $DATA
grep . *|sort -h -k2 -t:
+ git ls-files --with-tree=HEAD | while read f; do
+ echo "$f:$(git show "HEAD:$f")"
+ done | sort -h -k2 -t:
;;
log)
cd $DATA