HomeSoftware Heritage

Update diff header index line

Description

Update diff header index line

The documentation
https://git-scm.com/docs/diff-format#_generating_patches_with_p indicates that "The
index line includes the SHA-1 checksum before and after the change. The <mode>
is included if the file mode does not change; otherwise, separate lines
indicate the old and the new mode."

Update gen_diff_header to match the documentation and CGit behavior.

Details

Provenance
Boris Feld <lothiraldan@gmail.com>Authored on Apr 1 2019, 6:18 PM
ardumontPushed on Sep 27 2021, 5:34 PM
Parents
rPPDW0884ad490782: Do not use /dev/null in the "git diff" header line
Branches
Unknown
Tags
Unknown

Event Timeline