Skip to content

GitCommit

GitCommit(commit_id, summary, author)

Abstraction of Git Commit

Initialize GitCommit object

Parameters:

Name Type Description Default
commit_id str

id of the commit

required
summary str

commit message

required
author str

the author of the commit

required
Source code in TM1py/Objects/GitCommit.py
def __init__(self, commit_id: str, summary: str, author: str):
    """Initialize GitCommit object
    :param commit_id: id of the commit
    :param summary: commit message
    :param author: the author of the commit
    """
    self._commit_id = commit_id
    self._summary = summary
    self._author = author

author property

commit_id property

summary property