git.git_str

This was reintroduced to deal with any bugs in pygit2 (or the libgit2 C library it binds to). The parse_diff() function here is only used when pygit2.Diff.parse_diff() function fails in cpp_linter.git.parse_diff()

cpp_linter.git.git_str.parse_diff(full_diff: str, file_filter: FileFilter, lines_changed_only: int) list[FileObj][source]

Parse a given diff into file objects.

Parameters:
full_diff: str

The complete diff for an event.

file_filter: FileFilter

A FileFilter object.

lines_changed_only: int

A value that dictates what file changes to focus on.

Returns:

A list of FileObj instances containing information about the files changed.