1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00

git diff HEAD@{1} does not return the modified files in the current commit

This commit is contained in:
aireilly
2024-01-16 09:42:12 +00:00
committed by openshift-cherrypick-robot
parent 643631e477
commit b8bd56990c

View File

@@ -3,7 +3,7 @@
# The list includes any topic maps that are themselves modified, and indirectly modifed topic maps where incldued AsciiDoc files have been updated.
# Get the *.adoc and distro maps files in the pull request
FILES=$(git diff --name-only HEAD@{1} --diff-filter=AMRD "*.yml" "*.adoc" ':(exclude)_unused_topics/*')
FILES=$(git diff --name-only HEAD~1 HEAD --diff-filter=AMRD "*.yml" "*.adoc" ':(exclude)_unused_topics/*')
REPO_PATH=$(git rev-parse --show-toplevel)