Built-in Data Sources

System integration with datetime, git, and environment sources

Git Data Source

The Git source reads repository information directly from .git without requiring git to be installed.

Configuration

Add this to your ssi-config.toml:

[[step]]
emoji = "🔧"
path = "../../../.git/"
processing = "include"
type = "git"
options = ["inline", "allow-external-paths"]

Use allow-external-paths if your .git directory is outside the site root.

Commit Information

Full hash 🔧commit: 4915a3ae16411ac8bcb577b18e67952c0396510b

Short hash 🔧commit-short: 4915a3ae16

Branch 🔧branch: main

Remote Information

The Git source provides remote URLs using the pattern 🔧remote-NAME where NAME is the remote name.

Example: 🔧remote-origin would give you the origin remote URL.

← Back to Overview