Expand description
Git integration for design documents
Provides functions for extracting metadata from git history and performing git operations while preserving history.
Functions§
- get_
author - Extract the original author from git history Falls back to git config user.name, then “Unknown Author” if git fails
- get_
created_ date - Extract creation date from git history (first commit) Falls back to today’s date if git fails
- get_
repo_ root - Get the git repository root directory
- get_
updated_ date - Extract last modified date from git history Falls back to today’s date if git fails
- git_add
- Stage a file with git add
- git_mv
- Move a file using git mv to preserve history Creates destination directory if needed Retries on index.lock errors with exponential backoff
- is_
git_ repo - Check if a path is in a git repository
- is_
tracked - Check if a file is tracked by git