Jido.VFS.Adapter.Git (Jido.VFS v1.0.0)

View Source

Jido.VFS adapter for Git repositories with versioning support.

This adapter provides filesystem operations backed by a Git repository, with automatic or manual commit modes for version control.

Direct usage

filesystem = Jido.VFS.Adapter.Git.configure(
  path: "/path/to/repo",
  mode: :manual,
  author: [name: "Bot", email: "bot@example.com"]
)

Jido.VFS.write(filesystem, "file.txt", "content")
Jido.VFS.commit(filesystem, "Add new file")

Options

  • :path - Path to Git repository (will be created if doesn't exist)
  • :branch - Git branch to use (defaults to current branch or "main")
  • :mode - :auto commits on every operation, :manual requires explicit commits
  • :author - Author info [name: "Name", email: "email@domain.com"]
  • :commit_message - Function to generate commit messages (operation_info) -> String.t()