Skip to content

Commit

Permalink
Diff changes from the common ancestor of the git branch instead of th…
Browse files Browse the repository at this point in the history
…e tip
  • Loading branch information
AlexB52 committed Feb 21, 2025
1 parent 2863a1d commit dad6419
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/retest/version_control/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def files(extensions: [])
end

def diff_files(branch)
`git diff #{branch} --name-only --diff-filter=ACMRT -z`.split("\x0")
`git diff #{branch}...HEAD --name-only --diff-filter=ACMRT -z`.split("\x0")
end

def untracked_files
Expand Down

0 comments on commit dad6419

Please sign in to comment.