Skip to main content

Module api_code

Module api_code 

Source
Expand description

The code of a request read through the host’s API instead of a clone: the diff per file, the commits, the diff of one commit and a file at a revision. The shapes live here, the per-host calls in [super::github] and [super::gitlab], behind HostingClient methods whose default is Unsupported.

A host’s per-file patch has hunks but no diff --git header, so it is parsed with gitpoulpi_core::diff_text::parse_hunks, the parser the system-git backend uses too.

Structs§

ApiCommit
One commit of a request, oldest first in a list.
ApiFileDiff
One changed file with its hunks.

Constants§

NOT_SHOWN_BY_THE_HOST
The reason shown for a file whose patch the host left out.