Does JGIT allow for running commands in parallel? [message #1848839] |
Mon, 20 December 2021 11:28  |
Eclipse User |
|
|
|
When trying to run two jgit commands in parallel, I'm getting lock exceptions. Essentially I'm trying to add everything currently in my working directory into my index. (deleted + modified + added files)
This is how I do this at the moment
launch {
// setUpdate allows us to remove deleted files, but disallows adding new files. So we have to do this twice...
this@stageAll
.add()
.addFilepattern(".")
.setUpdate(true)
.call()
.also { logger.info("Staging all files") }
.unit()
}
launch {
this@stageAll
.add()
.addFilepattern(".")
.call()
.also { logger.info("Staging all files") }
.unit()
}
Is there a way to have jgit run these together in a single operation?
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04984 seconds