common/hooks: generate null diffs to the new files itself.
This commit is contained in:
parent
f4544b82a6
commit
b713c62413
|
@ -19,6 +19,11 @@ hook() {
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# generate an empty diff to the new file
|
||||||
|
newchk=`sha256sum ${newfile} | awk '{ print $1 }'`
|
||||||
|
xdelta3 -D -R -f -e -s "${newfile}" "${newfile}" \
|
||||||
|
"${newfile}.${newchk}.vcdiff"
|
||||||
|
|
||||||
rm -- "${oldfile}"
|
rm -- "${oldfile}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue