trudag.utils
OUTPUT_QUOTE
module-attribute
Filename in the root directory assumed to contain a dot graph generated by trudag.
dump_scores
Outputs the provided Trustable scores to a provided dump path as one of the supported files.
get_commit_timestamp
The UNIX timestamp in seconds for commit at HEAD.
get_last_tag
The most recent git tag (either annotated or lightweight) for HEAD, if it exists.
Returned string has format
<latest tag>-<# commits since last tag>-<short SHA> if the current
commit is not tagged. If the commit is tagged, return <latest tag>
get_root_dir
Returns the top level directory of the git repository. If no git repository is found returns the current working directory.
get_workdir
Get the cli working directory.
If the current working directory is a git repo, return the top level directory of the repo. If not, return the current working directory.