git: add a way for commands to opt-out of the big Git lock
commitc6dbf2360438cc8d5296971a9f1381a2c4e5f6fe
authorDavid Aguilar <davvid@gmail.com>
Mon, 17 Aug 2015 03:58:56 +0000 (16 20:58 -0700)
committerDavid Aguilar <davvid@gmail.com>
Mon, 17 Aug 2015 03:58:56 +0000 (16 20:58 -0700)
tree430320ae12bed7bf7e4eab35da95a40c62c980f0
parentfbefe0c9448a103f8c06b9e284f2fe5e35ce6d18
git: add a way for commands to opt-out of the big Git lock

Read-only commands, e.g. "git log", never try to grab index.lock, so
it's more performant to avoid locking so that we can query git in
parallel.

Signed-off-by: David Aguilar <davvid@gmail.com>
cola/git.py