From 44c4c5658ac0ecf153ccd2e321fc96292570c2cf Mon Sep 17 00:00:00 2001 From: Juan Navarro Date: Tue, 21 Mar 2023 10:40:46 +0100 Subject: [PATCH] set-versions: Change git diff --staged to --cached, like other git commands --- browser/kurento-utils-js/bin/set-versions.sh | 2 +- clients/java/bin/set-versions.sh | 2 +- clients/java/qa-pom/bin/set-versions.sh | 2 +- clients/javascript/bin/set-versions.sh | 2 +- server/bin/set-versions.sh | 2 +- test/integration/bin/set-versions.sh | 2 +- test/tutorial/bin/set-versions.sh | 2 +- tutorials/java/bin/set-versions.sh | 2 +- tutorials/javascript-browser/bin/set-versions.sh | 2 +- tutorials/javascript-node/bin/set-versions.sh | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/browser/kurento-utils-js/bin/set-versions.sh b/browser/kurento-utils-js/bin/set-versions.sh index 95b5a38fb..7c1cd7d59 100755 --- a/browser/kurento-utils-js/bin/set-versions.sh +++ b/browser/kurento-utils-js/bin/set-versions.sh @@ -162,7 +162,7 @@ function git_commit { git add -- "$@" # Check if there are new staged changes ready to be committed. - if git diff --staged --quiet --exit-code; then + if git diff --cached --quiet --exit-code; then return 0 fi diff --git a/clients/java/bin/set-versions.sh b/clients/java/bin/set-versions.sh index 75fbdfb8e..9699ca1f9 100755 --- a/clients/java/bin/set-versions.sh +++ b/clients/java/bin/set-versions.sh @@ -203,7 +203,7 @@ function git_commit { git add -- "$@" # Check if there are new staged changes ready to be committed. - if git diff --staged --quiet --exit-code; then + if git diff --cached --quiet --exit-code; then return 0 fi diff --git a/clients/java/qa-pom/bin/set-versions.sh b/clients/java/qa-pom/bin/set-versions.sh index 4c31899e8..c04089283 100755 --- a/clients/java/qa-pom/bin/set-versions.sh +++ b/clients/java/qa-pom/bin/set-versions.sh @@ -196,7 +196,7 @@ function git_commit { git add -- "$@" # Check if there are new staged changes ready to be committed. - if git diff --staged --quiet --exit-code; then + if git diff --cached --quiet --exit-code; then return 0 fi diff --git a/clients/javascript/bin/set-versions.sh b/clients/javascript/bin/set-versions.sh index 0b450e9bd..94d4a49d0 100755 --- a/clients/javascript/bin/set-versions.sh +++ b/clients/javascript/bin/set-versions.sh @@ -162,7 +162,7 @@ function git_commit { git add -- "$@" # Check if there are new staged changes ready to be committed. - if git diff --staged --quiet --exit-code; then + if git diff --cached --quiet --exit-code; then return 0 fi diff --git a/server/bin/set-versions.sh b/server/bin/set-versions.sh index d62770afd..50af83c2c 100755 --- a/server/bin/set-versions.sh +++ b/server/bin/set-versions.sh @@ -249,7 +249,7 @@ function git_commit { git add -- "$@" # Check if there are new staged changes ready to be committed. - if git diff --staged --quiet --exit-code; then + if git diff --cached --quiet --exit-code; then return 0 fi diff --git a/test/integration/bin/set-versions.sh b/test/integration/bin/set-versions.sh index 2c34c763d..11226b1fa 100755 --- a/test/integration/bin/set-versions.sh +++ b/test/integration/bin/set-versions.sh @@ -196,7 +196,7 @@ function git_commit { git add -- "$@" # Check if there are new staged changes ready to be committed. - if git diff --staged --quiet --exit-code; then + if git diff --cached --quiet --exit-code; then return 0 fi diff --git a/test/tutorial/bin/set-versions.sh b/test/tutorial/bin/set-versions.sh index 103fed1c8..977d5aee3 100755 --- a/test/tutorial/bin/set-versions.sh +++ b/test/tutorial/bin/set-versions.sh @@ -196,7 +196,7 @@ function git_commit { git add -- "$@" # Check if there are new staged changes ready to be committed. - if git diff --staged --quiet --exit-code; then + if git diff --cached --quiet --exit-code; then return 0 fi diff --git a/tutorials/java/bin/set-versions.sh b/tutorials/java/bin/set-versions.sh index bf6a19662..61ce77a74 100755 --- a/tutorials/java/bin/set-versions.sh +++ b/tutorials/java/bin/set-versions.sh @@ -184,7 +184,7 @@ function git_commit { git add -- "$@" # Check if there are new staged changes ready to be committed. - if git diff --staged --quiet --exit-code; then + if git diff --cached --quiet --exit-code; then return 0 fi diff --git a/tutorials/javascript-browser/bin/set-versions.sh b/tutorials/javascript-browser/bin/set-versions.sh index 9aa553947..97b7f6919 100755 --- a/tutorials/javascript-browser/bin/set-versions.sh +++ b/tutorials/javascript-browser/bin/set-versions.sh @@ -162,7 +162,7 @@ function git_commit { git add -- "$@" # Check if there are new staged changes ready to be committed. - if git diff --staged --quiet --exit-code; then + if git diff --cached --quiet --exit-code; then return 0 fi diff --git a/tutorials/javascript-node/bin/set-versions.sh b/tutorials/javascript-node/bin/set-versions.sh index 37af99023..da49fe81f 100755 --- a/tutorials/javascript-node/bin/set-versions.sh +++ b/tutorials/javascript-node/bin/set-versions.sh @@ -162,7 +162,7 @@ function git_commit { git add -- "$@" # Check if there are new staged changes ready to be committed. - if git diff --staged --quiet --exit-code; then + if git diff --cached --quiet --exit-code; then return 0 fi