jade.utils.repository_info.RepositoryInfo

class jade.utils.repository_info.RepositoryInfo(package)[source]

Bases: object

Collects information about the source code repository for a package.

Methods

current_branch()

Return the current branch.

last_commit()

Return the last commit.

status()

Return the current status.

summary()

Return a summary of the repository status.

write_diff_patch(filename)

Write any repo diffs to filename.

current_branch()[source]

Return the current branch.

Return type:

str

last_commit()[source]

Return the last commit.

Return type:

str

status()[source]

Return the current status.

Return type:

str

write_diff_patch(filename)[source]

Write any repo diffs to filename.

Parameters:

filename (str)

summary()[source]

Return a summary of the repository status.

Return type:

dict