Module diff

Module diff 

Source

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 git diff output.
get_raw
Retrieves the current git diff raw output with -U0 for fine-grained diffs as a Vec<String>.