danoan.llm_assistant.prompt.core.utils module
prompt-manager utility tools.
- danoan.llm_assistant.prompt.core.utils.get_all_commits_in_between(repository_folder: Path, most_recent_hash: str, most_ancient_hash: str) List[str] [source]
Return a list of commit hashes in between two commit hashes (terminals included).
- Parameters:
repository_folder (Path)
most_recent_hash (str)
most_ancient_hash (str)
- Return type:
List[str]
- danoan.llm_assistant.prompt.core.utils.get_branches_names(repository_path: Path) List[str] [source]
- Parameters:
repository_path (Path)
- Return type:
List[str]
- danoan.llm_assistant.prompt.core.utils.get_commit(repository_folder: Path, commit_hash: str) Commit [source]
- Parameters:
repository_folder (Path)
commit_hash (str)
- Return type:
Commit
- danoan.llm_assistant.prompt.core.utils.get_commit_tags(repository_folder: Path, commit_hash: str) List[str] [source]
Get all tags of a commit.
- Parameters:
repository_folder (Path)
commit_hash (str)
- Return type:
List[str]
- danoan.llm_assistant.prompt.core.utils.get_most_recent_tags_before_commit(repository_folder: Path, commit_hash: str) List[TagReference] [source]
Get a list of the most recent tags prior to a commit.
- Parameters:
repository_folder (Path)
commit_hash (str)
- Return type:
List[TagReference]
- danoan.llm_assistant.prompt.core.utils.get_non_versioned_commits(repository_folder: Path) List[str] [source]
Get the first sequence of non-versioned commit hashes.
Start from the HEAD commit up to the first tagged commit (included).
- Parameters:
repository_folder (Path)
- Return type:
List[str]
- danoan.llm_assistant.prompt.core.utils.get_staging_area(repository_folder: Path) List[Any] [source]
- Parameters:
repository_folder (Path)
- Return type:
List[Any]