mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-25 05:48:47 +01:00
scripts : do not sync commits from this repo
This commit is contained in:
parent
65e5f6dadb
commit
ca38b8d334
@ -26,9 +26,20 @@ echo "Syncing ggml changes since commit $lc"
|
|||||||
|
|
||||||
cd $SRC_GGML
|
cd $SRC_GGML
|
||||||
|
|
||||||
git log --oneline $lc..HEAD
|
git log --oneline $lc..HEAD | grep -v "(llama/[0-9]*)" | cut -d' ' -f1 > $SRC_LLAMA/ggml-commits
|
||||||
|
|
||||||
git format-patch $lc --stdout -- \
|
if [ ! -s $SRC_LLAMA/ggml-commits ]; then
|
||||||
|
rm -v $SRC_LLAMA/ggml-commits
|
||||||
|
echo "No new commits"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f $SRC_LLAMA/ggml-src.patch ]; then
|
||||||
|
rm -v $SRC_LLAMA/ggml-src.patch
|
||||||
|
fi
|
||||||
|
|
||||||
|
while read c; do
|
||||||
|
git format-patch -k $c~1..$c --stdout -- \
|
||||||
include/ggml/ggml*.h \
|
include/ggml/ggml*.h \
|
||||||
src/ggml*.h \
|
src/ggml*.h \
|
||||||
src/ggml*.c \
|
src/ggml*.c \
|
||||||
@ -41,7 +52,10 @@ git format-patch $lc --stdout -- \
|
|||||||
tests/test-quantize-fns.cpp \
|
tests/test-quantize-fns.cpp \
|
||||||
tests/test-quantize-perf.cpp \
|
tests/test-quantize-perf.cpp \
|
||||||
tests/test-backend-ops.cpp \
|
tests/test-backend-ops.cpp \
|
||||||
> $SRC_LLAMA/ggml-src.patch
|
>> $SRC_LLAMA/ggml-src.patch
|
||||||
|
done < $SRC_LLAMA/ggml-commits
|
||||||
|
|
||||||
|
rm -v $SRC_LLAMA/ggml-commits
|
||||||
|
|
||||||
# delete files if empty
|
# delete files if empty
|
||||||
if [ ! -s $SRC_LLAMA/ggml-src.patch ]; then
|
if [ ! -s $SRC_LLAMA/ggml-src.patch ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user