Documentation
¶
Index ¶
Constants ¶
View Source
const GryphCommandPlaceholder = "__GRYPH_COMMAND__"
Variables ¶
This section is empty.
Functions ¶
func CountDiffLines ¶ added in v0.2.7
CountDiffLines computes the number of added and removed lines between old and new strings.
func CountNewFileLines ¶ added in v0.2.7
CountNewFileLines counts lines in content for new file creation.
func GenerateDiff ¶
GenerateDiff produces a unified diff string from old and new content for a given file path.
func GryphCommand ¶ added in v0.3.2
func GryphCommand() string
GryphCommand returns the gryph executable command. Currently returns "gryph", assuming it's in PATH.
func HashContent ¶
HashContent returns the lowercase hex SHA-256 hash of the given content. Returns an empty string for empty input.
func IsGryphCommand ¶ added in v0.3.1
IsGryphCommand checks if a command string is a gryph hook command.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.