-
-
Save jacobbednarz/70acb4a32e532afc3b26 to your computer and use it in GitHub Desktop.
Git repo gem ideas
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The purpose of this gem is to extract and manipulate git data from within the repo so that it can be used in conjunction with a ruby or rails project. | |
Commits | |
- get_last_commit | |
Returns an object of the last commit details. | |
- get_commit_by_hash(hash_id) | |
Returns an object of the selected commit details. | |
- get_all_commits | |
Get all the commits from the repository. | |
Users | |
- get_all_authors | |
Return the details of all authors what have contributed to the repo. | |
- get_author_details(author_name) | |
Get specific author details. | |
- get_author_count | |
Retrieve the count of users that have contributed to the repository. | |
Branches | |
- get_branch_details(branch_name) | |
Get details of a specific branch. | |
Repo details | |
- set_repository_path | |
Set the repository path via an override of the constructor method. | |
- get_current_branch_name | |
Get the branch name if the current branch. | |
- get_all_branch_names | |
Get the names of all branches available within the repository. | |
- get_repository_size | |
Gather the combined repository size. | |
- get_filetype_count(file_extension) | |
Show the count of files of a particular type from the repo. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment