autocommit.setup
Functions
  | 
Adds the commit hook to the repository  | 
  | 
Adds the api key to the worktree  | 
  | 
Add .autocommit_storage_dir/ to the .git/info/exclude file  | 
  | 
Checks if the repo is bare  | 
  | 
Gets the repo and worktree paths  | 
  | 
Removes the commit hook from the repository  | 
  | 
Cleans up the autocommit setup  | 
  | 
Runs the setup for the repository  | 
- autocommit.setup.add_storage_dir_to_exclude(gitdir: Path)[source]
 Add .autocommit_storage_dir/ to the .git/info/exclude file
unless it is already there. This serves to avoid tracking the storage directory, which contains the api key.
- autocommit.setup.add_commit_hook(repo: Path, *, hook_name='prepare-commit-msg', hook_content)[source]
 Adds the commit hook to the repository
- autocommit.setup.remove_commit_hook(repo: Path, *, hook_name='prepare-commit-msg', hook_content)[source]
 Removes the commit hook from the repository
- autocommit.setup.get_repo_worktree(repo: Path, worktree: Path | None = None)[source]
 Gets the repo and worktree paths