Signed-off-by: Michael Niedermayer <[email protected]>
---
 tools/merge-all-source-plugins | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/tools/merge-all-source-plugins b/tools/merge-all-source-plugins
index 4dbfa898723..536e1664a43 100755
--- a/tools/merge-all-source-plugins
+++ b/tools/merge-all-source-plugins
@@ -18,6 +18,17 @@ merge(){ # $1=repository, $2=refspec
     suceeded="$suceeded $2"
 }
 
+error(){
+    echo $1
+    exit 1
+}
+
+git diff --exit-code >/dev/null ||\
+    error "Please commit local changes first"
+
+git diff --cached --exit-code >/dev/null ||\
+    error "Please commit local changes first"
+
 #version="12.34"
 
 merge "https://github.com/michaelni/FFmpeg.git"; "libpostproc"
-- 
2.49.0

_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to