Codebase class, including:
Committing Changes to Git
You can commit changes to Git using theCodebase.git_commit(...):
git_commit will only commit changes that have been synced to the filesystem
by calling Codebase.commit(). See
Commit and Reset for more
details.Checking Current Git State
Codegen provides properties to check the current Git state:Checking Out Branches and Commits
TheCodebase.checkout(...) method allows you to switch between branches and commits.
This will automatically re-parse the codebase to reflect the new state.