GitElephant icon indicating copy to clipboard operation
GitElephant copied to clipboard

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

Open tolry opened this issue 9 years ago • 1 comments

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.

tolry avatar Jun 10 '16 11:06 tolry

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 :)

GenieTim avatar Apr 30 '18 17:04 GenieTim