Skip to content

Commit 9408cfd

Browse files
committed
scripts : sync-ggml-am.sh option to skip commits
1 parent 03c5267 commit 9408cfd

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

scripts/sync-ggml-am.sh

+13-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Usage:
66
#
77
# $ cd /path/to/llama.cpp
8-
# $ ./scripts/sync-ggml-am.sh
8+
# $ ./scripts/sync-ggml-am.sh -skip hash0,hash1,hash2...
99
#
1010

1111
set -e
@@ -24,6 +24,11 @@ fi
2424
lc=$(cat $SRC_LLAMA/scripts/sync-ggml.last)
2525
echo "Syncing ggml changes since commit $lc"
2626

27+
to_skip=""
28+
if [ "$1" == "-skip" ]; then
29+
to_skip=$2
30+
fi
31+
2732
cd $SRC_GGML
2833

2934
git log --oneline $lc..HEAD
@@ -40,6 +45,13 @@ if [ -f $SRC_LLAMA/ggml-src.patch ]; then
4045
fi
4146

4247
while read c; do
48+
if [ -n "$to_skip" ]; then
49+
if [[ $to_skip == *"$c"* ]]; then
50+
echo "Skipping $c"
51+
continue
52+
fi
53+
fi
54+
4355
git format-patch -k $c~1..$c --stdout -- \
4456
include/ggml/ggml*.h \
4557
src/ggml*.h \

scripts/sync-ggml.last

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1890780da4ea10db88736fcde85f285abf6c64b0
1+
b306d6e996ec0ace77118fa5098822cdc7f9c88f

0 commit comments

Comments
 (0)