Definition
Assembly: CloudNimble.ClaudeEssentials.dll Namespace: CloudNimble.ClaudeEssentials.Hooks.Tools.Responses Inheritance: System.ObjectSyntax
Summary
Represents git diff information for a file change, including additions, deletions, and the unified diff patch.Remarks
This type is included in tool responses for the Edit and Write tools when git tracking is available for the modified file. It provides a summary of the changes as they would appear in agit diff output.
Example JSON:
Constructors
.ctor
Syntax
.ctor Inherited
Inherited from
objectSyntax
Properties
Additions
Gets or sets the number of lines added in this change.Syntax
Property Value
Type:int
Changes
Gets or sets the total number of lines changed (additions + deletions).Syntax
Property Value
Type:int
Deletions
Gets or sets the number of lines deleted in this change.Syntax
Property Value
Type:int
Filename
Gets or sets the filename of the changed file.Syntax
Property Value
Type:string
Patch
Gets or sets the unified diff patch string showing the actual changes.Syntax
Property Value
Type:string
Repository
Gets or sets the GitHub owner/repo identifier when available.Syntax
Property Value
Type:string?
Remarks
This is populated when the repository is associated with a GitHub remote. Format:"owner/repo", for example "CloudNimble/ClaudeEssentials".
Status
Gets or sets the git status of the file change.Syntax
Property Value
Type:CloudNimble.ClaudeEssentials.Hooks.GitDiffStatus
Remarks
See GitDiffStatus for possible values.Methods
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
Returns
Type:bool
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?