]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
src/script/config_diff.py: add support for `ref-commit-sha` and `cmp-commit-sha`...
authorNaveen Naidu <naveennaidu479@gmail.com>
Sun, 8 Jun 2025 13:55:24 +0000 (19:25 +0530)
committerNaveen Naidu <naveennaidu479@gmail.com>
Mon, 9 Jun 2025 08:00:07 +0000 (13:30 +0530)
commitbf2aa9220a1ff747d8dc943ea1ebe8b171d4c07c
tree5a32a4836ab6d9579033a30248e8e7fc5272d9f0
parent37d296b314bc631754ee00d87fee1a97dcbf40b2
src/script/config_diff.py: add support for `ref-commit-sha` and `cmp-commit-sha` arguments

Introduced `ref-commit-sha` and `cmp-commit-sha` arguments to the
`diff-branch-remote-repo` mode, enabling comparison of remote
branches against specific commits.

This enhancement is crucial for comparing configuration changes
between a pull request (PR) and the Ceph upstream main branch. It
allows for precise comparison by focusing on files changed in the
PR, rather than simply comparing the PR's head with its latest
commit.

The approach mirrors GitHub's three-dot diff [1], where the PR is
compared against the common ancestor of the Ceph upstream repository
, i.e., the point where the PR was forked.

[1]: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-comparing-branches-in-pull-requests

Signed-off-by: Naveen Naidu <naveennaidu479@gmail.com>
src/script/config-diff/README.md
src/script/config-diff/config_diff.py