scaffold.flyte.git ================== .. py:module:: scaffold.flyte.git Functions --------- .. autoapisummary:: scaffold.flyte.git.get_branch_identifier Module Contents --------------- .. py:function:: get_branch_identifier(random_suffix: bool = False) -> str Get version from git repository. By default, the version is `branch-sha`. If there are untracked files, the suffix `-dirty` is appended. If `random_suffix=True` a random suffix is appended. Kwargs: random_suffix (bool): whether a random suffix should be appended.