-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add list_repo_commits
to list git history of a repo
#1331
Conversation
The documentation is not available anymore as the PR was closed or merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really cool!
Co-authored-by: Julien Chaumond <julien@huggingface.co>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1331 +/- ##
=======================================
Coverage ? 83.83%
=======================================
Files ? 47
Lines ? 4727
Branches ? 0
=======================================
Hits ? 3963
Misses ? 764
Partials ? 0
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
🎉 thanks @Kakulukian |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Wauplin, very clean!
🥳 |
FIX #1288 (following server-side implementation -internal link- thanks @Kakulukian).
This PR adds a new helper
list_repo_commits
(similar tolist_repo_refs
and list_repo_files`). It lists the all history of a repository on the Hub for a given revision. Commits are sorted by date (last commit first).@camenduru this will finally solve your problem on "how to create an empty branch?". I did not make a special parameter in
create_branch
that would uselist_repo_commits
under the hood as I thought it was a quite specific use case.