> ## Documentation Index
> Fetch the complete documentation index at: https://ai.easyaf.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# GitDiffInfo

> Represents git diff information for a file change, including additions, deletions, and the unified diff patch.

## Definition

**Assembly:** CloudNimble.ClaudeEssentials.dll

**Namespace:** CloudNimble.ClaudeEssentials.Hooks.Tools.Responses

**Inheritance:** System.Object

## Syntax

```csharp theme={null}
CloudNimble.ClaudeEssentials.Hooks.Tools.Responses.GitDiffInfo
```

## 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:

```csharp theme={null}
{
  "filename": "src/Program.cs",
  "status": "modified",
  "additions": 5,
  "deletions": 2,
  "changes": 7,
  "patch": "@@ -10,7 +10,10 @@ ...",
  "repository": "CloudNimble/ClaudeEssentials"
}
```

## Constructors

### &#x20;.ctor

#### Syntax

```csharp theme={null}
public GitDiffInfo()
```

### &#x20;.ctor Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public Object()
```

## Properties

### &#x20;Additions

Gets or sets the number of lines added in this change.

#### Syntax

```csharp theme={null}
public int Additions { get; set; }
```

#### Property Value

Type: `int`

### &#x20;Changes

Gets or sets the total number of lines changed (additions + deletions).

#### Syntax

```csharp theme={null}
public int Changes { get; set; }
```

#### Property Value

Type: `int`

### &#x20;Deletions

Gets or sets the number of lines deleted in this change.

#### Syntax

```csharp theme={null}
public int Deletions { get; set; }
```

#### Property Value

Type: `int`

### &#x20;Filename

Gets or sets the filename of the changed file.

#### Syntax

```csharp theme={null}
public string Filename { get; set; }
```

#### Property Value

Type: `string`

### &#x20;Patch

Gets or sets the unified diff patch string showing the actual changes.

#### Syntax

```csharp theme={null}
public string Patch { get; set; }
```

#### Property Value

Type: `string`

### &#x20;Repository

Gets or sets the GitHub owner/repo identifier when available.

#### Syntax

```csharp theme={null}
public string Repository { get; set; }
```

#### Property Value

Type: `string?`

#### Remarks

This is populated when the repository is associated with a GitHub remote.
Format: `"owner/repo"`, for example `"CloudNimble/ClaudeEssentials"`.

### &#x20;Status

Gets or sets the git status of the file change.

#### Syntax

```csharp theme={null}
public CloudNimble.ClaudeEssentials.Hooks.GitDiffStatus Status { get; set; }
```

#### Property Value

Type: `CloudNimble.ClaudeEssentials.Hooks.GitDiffStatus`

#### Remarks

See [GitDiffStatus](https://ai.easyaf.dev/claudeessentials/api-reference/CloudNimble/ClaudeEssentials/Hooks/GitDiffStatus.md) for possible values.

## Methods

### &#x20;Equals Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public virtual bool Equals(object obj)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `obj` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;Equals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public static bool Equals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;GetHashCode Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public virtual int GetHashCode()
```

#### Returns

Type: `int`

### &#x20;GetType Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public System.Type GetType()
```

#### Returns

Type: `System.Type`

### &#x20;MemberwiseClone Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
protected internal object MemberwiseClone()
```

#### Returns

Type: `object`

### &#x20;ReferenceEquals Inherited

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public static bool ReferenceEquals(object objA, object objB)
```

#### Parameters

| Name | Type | Description |
| - | - | - |
| `objA` | `object?` | - |
| `objB` | `object?` | - |

#### Returns

Type: `bool`

### &#x20;ToString Inherited Virtual

> [!NOTE]
>
> Inherited from `object`

#### Syntax

```csharp theme={null}
public virtual string ToString()
```

#### Returns

Type: `string?`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.