Skip to main content

Definition

Assembly: CloudNimble.ClaudeEssentials.dll Namespace: CloudNimble.ClaudeEssentials.Hooks.Tools.Responses Inheritance: System.Object

Syntax

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 a git diff output. Example JSON:

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from object

Syntax

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 object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?