# GitSnapshot

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/git_evidence/GitSnapshot)

Repository identity and opaque non-content evidence of checkout work.

## Signature

```python
GitSnapshot(
    self,
    root: str,
    repository: RepositoryMetadata | None,
    branch: str,
    commit: str,
    fingerprint: str,
)
```

## Constructors

```python
__init__(
    self,
    root: str,
    repository: RepositoryMetadata | None,
    branch: str,
    commit: str,
    fingerprint: str,
) -> None
```

| Name | Type |
|------|------|
| `root` | `str` |
| `repository` | `RepositoryMetadata \| None` |
| `branch` | `str` |
| `commit` | `str` |
| `fingerprint` | `str` |


## Properties

- `root`
- `repository`
- `branch`
- `commit`
- `fingerprint`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/efa9f5364b83e9367ea57d9c21b15b4d81fdcb7a/libs/code/deepagents_code/git_evidence.py#L39)