Project

General

Profile

Defect #44354 ยป git-2.55-diff-path-filtering.patch

Go MAEDA, 2026-08-19 11:53

View differences:

lib/redmine/scm/adapters/git_adapter.rb
diff << line
end
end
# "git show" of Git 2.55.0 prints the commit header even when the
# given path is not modified by the commit. Discard such output so
# that an empty diff is returned as with the other versions.
return [] if !path.empty? && diff.none? {|line| line.start_with?('diff --')}
diff
rescue ScmCommandAborted
nil
    (1-1/1)