ggerganov commited on
Commit
c34dd82
·
unverified ·
1 Parent(s): b9d2bd9

scripts : sync-ggml-am.sh add option to skip commits

Browse files
Files changed (1) hide show
  1. extra/sync-ggml-am.sh +13 -1
extra/sync-ggml-am.sh CHANGED
@@ -5,7 +5,7 @@
5
  # Usage:
6
  #
7
  # $ cd /path/to/whisper.cpp
8
- # $ ./extra/sync-ggml-am.sh
9
  #
10
 
11
  set -e
@@ -24,6 +24,11 @@ fi
24
  lc=$(cat $SRC_WHISPER/extra/sync-ggml.last)
25
  echo "Syncing ggml changes since commit $lc"
26
 
 
 
 
 
 
27
  cd $SRC_GGML
28
 
29
  git log --oneline $lc..HEAD
@@ -40,6 +45,13 @@ if [ -f $SRC_WHISPER/ggml-src.patch ]; then
40
  fi
41
 
42
  while read c; do
 
 
 
 
 
 
 
43
  git format-patch -k $c~1..$c --stdout -- \
44
  include/ggml/ggml*.h \
45
  src/ggml*.h \
 
5
  # Usage:
6
  #
7
  # $ cd /path/to/whisper.cpp
8
+ # $ ./extra/sync-ggml-am.sh -skip hash0,hash1,hash2...
9
  #
10
 
11
  set -e
 
24
  lc=$(cat $SRC_WHISPER/extra/sync-ggml.last)
25
  echo "Syncing ggml changes since commit $lc"
26
 
27
+ to_skip=""
28
+ if [ "$1" == "-skip" ]; then
29
+ to_skip=$2
30
+ fi
31
+
32
  cd $SRC_GGML
33
 
34
  git log --oneline $lc..HEAD
 
45
  fi
46
 
47
  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
+
55
  git format-patch -k $c~1..$c --stdout -- \
56
  include/ggml/ggml*.h \
57
  src/ggml*.h \