> ISPO SDK documentation. [HTML](https://ispo.ai/docs/interfaces/core.GitExternalApi.html) · [Documentation index](https://ispo.ai/docs/llms.txt)

# Interface GitExternalApi

```typescript
interface GitExternalApi {
    diffFile(slotId: string, path: string): Promise<ExternalGitDiffResult>;
    log(
        slotId: string,
        limit: number,
        cursorSha?: string,
    ): Promise<ExternalGitLogResult>;
    show(slotId: string, sha: string): Promise<ExternalGitChangedFile[]>;
    status(slotId: string): Promise<ExternalGitChangedFile[]>;
}
```

Types: [diffFile](#difffile-1), [ExternalGitDiffResult](core.ExternalGitDiffResult.md), [log](#log-1), [ExternalGitLogResult](core.ExternalGitLogResult.md), [show](#show-1), [ExternalGitChangedFile](core.ExternalGitChangedFile.md), [status](#status-1)

##### Index

### <a id="methods"></a>Methods

[diffFile](#difffile) [log](#log) [show](#show) [status](#status)

## <a id="methods-1"></a>Methods

### <a id="difffile"></a>diffFile

*   <a id="difffile-1"></a>
    
    ```typescript
    diffFile(slotId: string, path: string): Promise<ExternalGitDiffResult>
    ```
    
    Types: [ExternalGitDiffResult](core.ExternalGitDiffResult.md)
    
    #### Parameters
    
    *   slotId: string
    *   path: string
    
    #### Returns Promise<[ExternalGitDiffResult](core.ExternalGitDiffResult.md)\>
    

### <a id="log"></a>log

*   <a id="log-1"></a>
    
    ```typescript
    log(
        slotId: string,
        limit: number,
        cursorSha?: string,
    ): Promise<ExternalGitLogResult>
    ```
    
    Types: [ExternalGitLogResult](core.ExternalGitLogResult.md)
    
    #### Parameters
    
    *   slotId: string
    *   limit: number
    *   `Optional`cursorSha: string
    
    #### Returns Promise<[ExternalGitLogResult](core.ExternalGitLogResult.md)\>
    

### <a id="show"></a>show

*   <a id="show-1"></a>
    
    ```typescript
    show(slotId: string, sha: string): Promise<ExternalGitChangedFile[]>
    ```
    
    Types: [ExternalGitChangedFile](core.ExternalGitChangedFile.md)
    
    #### Parameters
    
    *   slotId: string
    *   sha: string
    
    #### Returns Promise<[ExternalGitChangedFile](core.ExternalGitChangedFile.md)\[\]\>
    

### <a id="status"></a>status

*   <a id="status-1"></a>
    
    ```typescript
    status(slotId: string): Promise<ExternalGitChangedFile[]>
    ```
    
    Types: [ExternalGitChangedFile](core.ExternalGitChangedFile.md)
    
    #### Parameters
    
    *   slotId: string
    
    #### Returns Promise<[ExternalGitChangedFile](core.ExternalGitChangedFile.md)\[\]\>
