Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommitDiff ¶
func IsBinary ¶
IsBinary performs a heuristic check to determine if data is binary. Rules:
- Any NUL byte => binary
- Consider only a sample (up to 8 KiB). If >30% of bytes are control characters outside the common whitespace/newline range, treat as binary.
func ParseFileMode ¶
ParseFileMode converts a git-style file mode (e.g. "100644") into a human-readable string like "rw-r--r--".
Types ¶
type Commit ¶
Click to show internal directories.
Click to hide internal directories.