# Usage:
#
# $ cd /path/to/whisper.cpp
-# $ ./extra/sync-ggml-am.sh
+# $ ./extra/sync-ggml-am.sh -skip hash0,hash1,hash2...
#
set -e
lc=$(cat $SRC_WHISPER/extra/sync-ggml.last)
echo "Syncing ggml changes since commit $lc"
+to_skip=""
+if [ "$1" == "-skip" ]; then
+ to_skip=$2
+fi
+
cd $SRC_GGML
git log --oneline $lc..HEAD
fi
while read c; do
+ if [ -n "$to_skip" ]; then
+ if [[ $to_skip == *"$c"* ]]; then
+ echo "Skipping $c"
+ continue
+ fi
+ fi
+
git format-patch -k $c~1..$c --stdout -- \
include/ggml/ggml*.h \
src/ggml*.h \