crates/turborepo-scm/README.md
Source control integration for Turborepo. Provides git operations for finding changed files, retrieving previous lockfile versions, and hashing files efficiently.
turborepo-scm
├── git/ - Git operations via CLI and libgit2
│ ├── Changed file detection
│ ├── File hashing (ls-tree, hash-object)
│ └── Previous file versions
├── package_deps/ - Package-level change detection
└── worktree/ - Git worktree info
Two backends:
git2 bindings via feature flag (faster for some operations)SCM integration enables --affected filtering and efficient file hashing. Requires git 2.18+ for full functionality.