Skip to main content

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 raw git diff output.
get_raw
Retrieves the current git diff raw output with -U0 as a single String.