Expand description
git2 backend for the Vcs trait: the only module that may touch git2
(test fixtures aside).
Structs§
Constants§
- DEFAULT_
CONTEXT_ LINES - git’s own default amount of context around hunks.
Functions§
- rehunk_
file - Re-diff a file’s own old/new text at
contextlines of surrounding context (u32::MAXfor the whole file), yielding the hunks the diff pane would show at that context.Nonefor binary files or when a side’s text is absent, so the caller keeps its current hunks.