-
Notifications
You must be signed in to change notification settings - Fork 581
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
Implement super_squash_history
in HfApi
#1639
Conversation
cc @severo might be useful for datasets-server as well to clean the |
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.
Thanks for implementing it @Wauplin
|
||
<Tip warning={true}> | ||
|
||
Once the history of a branch has been squashed, it is not possible to merge it back into another branch since |
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.
I'd nearly put a "DESTRUCTIVE ACTION" in all caps 😁
Thanks for the quick review @LysandreJik! |
Thanks. I created an issue here: huggingface/dataset-viewer#1774 |
Resolve #1636.
This PR adds support for the
/super-squash
endpoint inHfApi
. This endpoint squashes all the commits on a specified branch. The goal is to avoid bad user experience when repos have thousands of commits. The squash operation is non-revertible and should be used with care. See docs.Will be useful for recurrent commits cc @thomwolf. I added a
squash_history
argument to theCommitScheduler
andHFSummaryWriter
to squash the history after each commit.(cc @Pierrci FYI)