Skip to content

Add test for rename tracking per hunk #2039

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cruessler
Copy link
Contributor

  • Add test for source file name tracking per hunk
  • Remove obsolete comment

This PR adds a test case for the issue fixed in 7435ed5. The issue was related to the fact that, before the fix, source_file_name was only tracked globally, as opposed to locally, i. e. on a per-hunk basis.

The test case constructs a repository that has the same rename twice, in two different branches. Tracking source_file_name globally is insufficient to capture this history which is why this test fails without the fix.

cruessler added 2 commits June 7, 2025 13:16
This is a test case for the issue fixed in
7435ed5. The issue was related to the
fact that, before the fix, `source_file_name` was only tracked globally,
as opposed to locally, i. e. on a per-hunk basis.

The test case constructs a repository that has the same rename twice, in
two different branches. Tracking `source_file_name` globally is
insufficient to capture this history which is why this test fails
without the fix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant