Skip to main content

Module diff

Module diff 

Source

Structs§

FileDiffStats
Line additions and removals for one changed file.

Constants§

PATH_LINE_PREFIX 🔒

Functions§

extract_new_lnum_value 🔒
Extracts the line number from a git diff hunk header line.
get_hunks
Extracts file paths and starting line numbers of hunks from raw git diff output.
get_line_stats
Retrieves line additions and removals for tracked files changed from HEAD.
get_raw
Retrieves the current git diff raw output with -U0 as a single String.