Closed exoego closed 1 year ago
Fixes #167
This PR leverages -- <path>... options of git diff [<options>] [<commit>] [--] [<path>…] Refer https://git-scm.com/docs/git-diff
-- <path>...
git diff [<options>] [<commit>] [--] [<path>…]
I've tested the results of git diff --name-only --diff-filter=AM "$MASTER_HASH" -- "${FOLDER_ARRAY[@]}" with some variants of FOLDER_PATH in bash.
git diff --name-only --diff-filter=AM "$MASTER_HASH" -- "${FOLDER_ARRAY[@]}"
FOLDER_PATH
$ FOLDER_PATH="." $ FOLDER_ARRAY=(${FOLDER_PATH//,/ }) $ git diff --name-only --diff-filter=AM "$MASTER_HASH" -- "${FOLDER_ARRAY[@]}" .github/workflows/linkcheck.yml docs/running.md docs/scalafix-migrations.md modules/core/src/main/scala/org/scalasteward/core/application/Cli.scala modules/core/src/test/scala/org/scalasteward/core/application/CliTest.scala modules/docs/mdoc/running.md modules/docs/mdoc/scalafix-migrations.md $ FOLDER_PATH="docs" $ FOLDER_ARRAY=(${FOLDER_PATH//,/ }) $ git diff --name-only --diff-filter=AM "$MASTER_HASH" -- "${FOLDER_ARRAY[@]}" docs/running.md docs/scalafix-migrations.md $ FOLDER_PATH="docs,modules" $ FOLDER_ARRAY=(${FOLDER_PATH//,/ }) $ git diff --name-only --diff-filter=AM "$MASTER_HASH" -- "${FOLDER_ARRAY[@]}" docs/running.md docs/scalafix-migrations.md modules/core/src/main/scala/org/scalasteward/core/application/Cli.scala modules/core/src/test/scala/org/scalasteward/core/application/CliTest.scala modules/docs/mdoc/running.md modules/docs/mdoc/scalafix-migrations.md
@exoego Sorry for delay on this one. Can you rebase and push this commit again?
@gaurav-nelson Rebased
Fixes #167
This PR leverages
-- <path>...
options ofgit diff [<options>] [<commit>] [--] [<path>…]
Refer https://git-scm.com/docs/git-diffI've tested the results of
git diff --name-only --diff-filter=AM "$MASTER_HASH" -- "${FOLDER_ARRAY[@]}"
with some variants ofFOLDER_PATH
in bash.Reference