git-annex diagnostics

Thomas Koch thomas at koch.ro
Tue Mar 27 21:52:22 CEST 2012


Certainly not perfect but good enough:

CDDIR=$1

find $CDDIR -type f -print | while read F
do
#  echo searching $F
  FILENAME=$(basename "$F")
  FOUND=$(find . -path .git -prune -o -name "$FILENAME" -print|head -n 1)
  if [ -r "$FOUND" ]
  then
    echo found $FOUND
  else
    echo not found: $F
    DIRNAME=$(dirname "$F")
    mkdir -p ./"$DIRNAME"
    cp -v "$F" ./"$DIRNAME"
  fi
done 

Still a solution backed into git-annex would be wonderful!

Thomas Koch, http://www.koch.ro


More information about the vcs-home mailing list