eclipse-jgit / jgit

JGit, the Java implementation of git
https://www.eclipse.org/jgit/
Other
121 stars 34 forks source link

JGIT detected ADD for a file of type COPY #82

Open abdulkerimatik opened 1 month ago

abdulkerimatik commented 1 month ago

Version

6.10.0.202406032230-r

Operating System

Linux/Unix

Bug description

If a file that appears as a copy in git is diffed as shown below, the value of the type appears as "ADD". List diffs = git.diff() .setPathFilter(treeFilter) .setNewTree(newTreeParser) .setOldTree(oldTreeParser) .call();

Actual behavior

The file type appears ADD

Expected behavior

The file type should be COPY

Relevant log output

No response

Other information

No response