Module diff

Source
Expand description

sync git api for fetching a diff

Structs§

DiffLine
DiffLine DiffLine DiffLine
DiffLinePosition
DiffOptions
see https://libgit2.org/libgit2/#HEAD/type/git_diff_options
FileDiff
collection of hunks, sum of all diff lines
Hunk
single diff hunk

Enums§

DiffLineType
type of diff of a single line

Functions§

get_diff
returns diff of a specific file either in stage or workdir returns diff of a specific file either in stage or workdir returns diff of a specific file either in stage or workdir
get_diff_commit
returns diff of a specific file inside a commit returns diff of a specific file inside a commit returns diff of a specific file inside a commit see get_commit_diff
get_diff_commits
for compare get file changes of a diff between two commits