Documentation
¶
Index ¶
Constants ¶
View Source
const CommitMatcher = "Bash(git commit*)"
CommitMatcher is the hook matcher string that chunk manages.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MergeResult ¶
type MergeResult struct {
Original []byte // existing settings.json content (re-marshaled for normalized formatting)
Merged []byte // merged result
Changed bool // false if already up to date
}
MergeResult holds the computed merge without performing any I/O.
func Merge ¶
func Merge(existing, generated []byte) (*MergeResult, error)
Merge computes the merged settings from existing and generated JSON bytes. It preserves all unknown keys in the existing settings and applies chunk's generated keys on top. Returns data only — display and file writing are the caller's responsibility.
Click to show internal directories.
Click to hide internal directories.