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

pass a file/path to Repository::commit() for transaction safe commits #103

Open
tolry opened this issue Jun 10, 2016 · 1 comment
Open

Comments

@tolry
Copy link

tolry commented Jun 10, 2016

If GitElephant is used in environments where concurrency might by an issue, it would be great to be able to commit a file/folder directly.

Example:

  • when a form is submitted, one specific file in a repository is updated and the changes are committed
  • currently
    • step 1: save data to file
    • step 2: stage and commit all pending changes
  • if another user submits a form belonging to another entity / file between step 1 and 2, the commit in step 2 would include those changes too

Did I explain that in a way, that is understandable?

I could create a PR for this, if wanted.

@GenieTim
Copy link
Collaborator

It may be a little late, but yes, it would be nice if you could open a corresponding PR, provided that you still need that functionality :)

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