Expand description
merge_diff API (re-exported at this path).
Functions§
- all_
blob_ paths_ in_ tree_ order - All blob paths in
tree_oid, depth-first in Git tree entry order (fordiff/log--rotate-to/--skip-to). - blob_
oid_ at_ path - OID of the blob at
pathintree.pathuses the reversiblerepo_relpath::storage_stringrepresentation. - blob_
text_ for_ diff - Prepare blob bytes for diff: optional textconv when
use_textconvanddiff=<driver>. - blob_
text_ for_ diff_ with_ oid - Like
blob_text_for_diff, but usesrefs/notes/textconv/<driver>whendiff.<driver>.cachetextconvis true andblob_oidis known. - combined_
diff_ paths - Paths that differ between the merge result tree and every parent tree.
- combined_
merge_ parent_ blob_ paths - Per-parent blob paths for a combined merge path when rename detection is enabled.
- convert_
blob_ to_ worktree_ for_ path - Blob bytes after smudge/EOL conversion for
path, using the same rules as checkout. - diff_
attr_ external_ driver - Resolved external diff driver from a path’s
diff=<name>attribute. - diff_
attr_ forces_ binary - True when a path carries the
-diff(ordiff=unset/binary) attribute, which forces Git to emitBinary files ... differregardless of content. - diff_
attr_ forces_ text - True when a path carries a bare
diff(set) attribute, which forces Git to produce a textual diff even when the blob contains NUL bytes (t4020 #65). - diff_
cachetextconv_ enabled diff_cachetextconv_enabledfunction.- diff_
forced_ binary_ by_ driver - Force
Binary files ... differwhen the path’s diff driver setsbinary, except for symlinks. - diff_
textconv_ active - Returns true when
pathhas adiff=<driver>attribute anddiff.<driver>.textconvis set. - diff_
textconv_ cmd_ line diff_textconv_cmd_linefunction.- enrich_
combined_ path_ renames - Enrich a combined diff path with per-parent rename info (
-M/-C). - format_
combined_ binary - Full combined diff for a binary path (two parents).
- format_
combined_ binary_ header - Combined diff header:
diff --combinedordiff --cc. - format_
combined_ binary_ header_ n indexline for N-parent combined/binary diffs (p1,p2,...pn..result).- format_
combined_ textconv_ patch - Combined text diff with optional textconv (N parents, single merge path).
- format_
worktree_ conflict_ combined git diff/git diff --ccduring a conflict: worktree file with markers.- is_
binary_ for_ diff - True if diff should treat this path as binary (NUL in blob or
-diff/diff=unset). - read_
blob_ at_ path - Read the blob at
pathintree, orNoneif missing.pathuses the reversiblerepo_relpath::storage_stringrepresentation. - run_
textconv - Run
diff.<driver>.textconvfeedinginputon stdin; returns UTF-8 lossy text on success. - run_
textconv_ raw - Run
diff.<driver>.textconvoninput; returns raw stdout on success.