Skip to content
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

Combining / trimming commits. #156

Open
joepio opened this issue Mar 3, 2023 · 0 comments
Open

Combining / trimming commits. #156

joepio opened this issue Mar 3, 2023 · 0 comments

Comments

@joepio
Copy link
Member

joepio commented Mar 3, 2023

Commits can be created very often (e.g. in documents), and that's great for things like live synchronization. However, it also has some downsides:

  • It can take up a lot of space
  • It can make navigating history awkward.

Perhaps we should have a way to combining / merging / trimming commits. This essentially means changing the history, in a way.

I'm not quite sure where this should happen. I think it should probably be a feature of atomic-server, but it also has spec implications.

So perhaps we have a /shorten-commits endpoint, which gets a Subject and some options (max count of commits, or max time gap).

It then iterates over all commits, builds new commits and signs these server side, once every N commits (depending on date delta).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant