GitElephant
GitElephant copied to clipboard
pass a file/path to Repository::commit() for transaction safe commits
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.
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 :)