Documentation
¶
Index ¶
Constants ¶
View Source
const ( KindAdded = "ADDED" KindModified = "MODIFIED" KindRemoved = "REMOVED" KindRenamed = "RENAMED" )
View Source
const MaxEntries = 50
MaxEntries caps the per-file rows Summarize renders. Entries beyond it (after folding and sorting) collapse into a trailing "… and K more files" line, so a change touching thousands of files stays a screenful. The footer totals still count every entry.
Variables ¶
This section is empty.
Functions ¶
func Summarize ¶ added in v0.20.4
Summarize writes a colored diff summary to out. Removed files under removed directories are folded into a single entry, and at most MaxEntries rows are listed. Does nothing if entries is empty.
func SummarizeString ¶
SummarizeString returns a plain-text diff summary (no ANSI colors).
Types ¶
Click to show internal directories.
Click to hide internal directories.