Git Module Docs¶
Script to generate the version, changelog and releasenotes from the git repository.
-
autosemver.git.fit_to_cols(what, indent='', cols=79)[source]¶ Wrap the given text to the columns, prepending the indent to each line.
Parameters: Returns: Wrapped text
Return type:
-
autosemver.git.get_version(commit, tags, maj_version=0, feat_version=0, fix_version=0, children=None)[source]¶
-
autosemver.git.pretty_commit(commit, version=None, commit_type='bug', bugtracker_url='', rpm_format=False)[source]¶
-
autosemver.git.split_line(what, indent='', cols=79)[source]¶ Split a line on the closest space, or break the last word with ‘-‘.
Parameters: Returns: rest of the text and split line in that order.
Return type: Raises: ValueError– when the indent is greater than the indent, or the cols- param is too small