Improve performance and remove race conditions during commitmaster
commit7a22cf013fa57e44ecc4050c8560f92843ed631a
authorJonas Fonseca <fonseca@diku.dk>
Tue, 2 Sep 2008 23:51:42 +0000 (3 01:51 +0200)
committerJonas Fonseca <fonseca@diku.dk>
Tue, 2 Sep 2008 23:51:42 +0000 (3 01:51 +0200)
tree0cb757518120990cef0faba808b79d78ac149102
parent93bfbd150c1ee21e3f9e415aa077b2b513699f8e
Improve performance and remove race conditions during commit

Remove calls to reset() and dispose() after walking revisions or trees.
If they are no longer needed the calls will mainly cause more memory
to be allocated.

Create the RefUpdate object before making the commit so that there
will not be a later race condition when the branch reference is updated.

Thanks to Shawn O. Spearce for the advices.
src/org/gitscm/nbjgit/util/GitCommand.java