common/hooks: generate null diffs to the new files itself.
This commit is contained in:
parent
f4544b82a6
commit
b713c62413
1 changed files with 5 additions and 0 deletions
|
@ -19,6 +19,11 @@ hook() {
|
|||
done
|
||||
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}"
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue