Skip to content

Commit

Permalink
set-versions: Change git diff --staged to --cached, like other git co…
Browse files Browse the repository at this point in the history
…mmands
  • Loading branch information
j1elo committed Mar 21, 2023
1 parent 4e39acf commit 44c4c56
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion browser/kurento-utils-js/bin/set-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion clients/java/bin/set-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion clients/java/qa-pom/bin/set-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion clients/javascript/bin/set-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion server/bin/set-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion test/integration/bin/set-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion test/tutorial/bin/set-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tutorials/java/bin/set-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tutorials/javascript-browser/bin/set-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tutorials/javascript-node/bin/set-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 44c4c56

Please sign in to comment.