Documentation
¶
Overview ¶
SPDX-License-Identifier: MIT Package patch provides helpers for handling bounded commit patch/diff text.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConsumePatchBudget ¶
ConsumePatchBudget truncates patch text to a remaining byte budget. It returns the (possibly truncated) patch, a flag indicating whether truncation occurred, and the budget remaining after consumption.
This is used by both the GitHub and GitLab clients to enforce max_diff_bytes uniformly.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.