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

Finer control over commit behaviour #197

Open
talex5 opened this issue Jul 20, 2016 · 1 comment
Open

Finer control over commit behaviour #197

talex5 opened this issue Jul 20, 2016 · 1 comment

Comments

@talex5
Copy link
Contributor

talex5 commented Jul 20, 2016

Some possible improvements to the client API (for discussion):

  • Add 'fast-forward-only' commit mode, that fails if there have been any changes on the branch since the transaction started. The client can then merge the new head manually or abort the transaction. This is useful if you need to avoid the default merge behaviour.
  • Add skip-if-empty commit mode that checks whether the new tree is equal to the existing one and succeeds without making a commit if so.
  • Allow creating a transaction from any starting commit, not just the current head. This is useful if you want to make a commit in response to a watch event.
  • Report the generated commit ID as the result of committing. Not sure about this one, as you'd normally want to ignore this.
@samoht
Copy link
Member

samoht commented Jul 20, 2016

It would also be useful to know if a current transaction is dirty or not (maybe have a dirty file at the root of the transaction, which, if it exists, lists the changed files?)

avsm pushed a commit to avsm/datakit that referenced this issue Jan 19, 2017
mirage-console-solo5 adjust opam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants