Skip to main content
wit provides classes for working with Git objects directly. This is useful for building tools, analyzing repositories, or understanding Git internals.

Object Types

Blob

A blob stores file content.

Properties

Methods

Tree

A tree represents a directory, containing references to blobs (files) and other trees (subdirectories).

TreeEntry

File Modes

Methods

Commit

A commit represents a snapshot of the repository.

Properties

Author

Methods

Tag

An annotated tag with message and tagger info.

Properties

Object Store

The ObjectStore class handles reading and writing objects.

Methods

Hashing

wit supports SHA-1 (Git compatible) and SHA-256 (more secure).

Examples

Walk a Tree

Find All Blobs in a Commit

Create a Commit Programmatically