commit | c2535f6aa822db36daefdc9ccb0fe7e70c9eb52d | [log] [tgz] |
---|---|---|
author | Shawn Pearce <sop@google.com> | Wed Oct 15 17:51:12 2014 -0700 |
committer | Shawn Pearce <sop@google.com> | Wed Oct 15 17:51:12 2014 -0700 |
tree | 2d6bd64a7cddf8980589965336aceac177b27d6e | |
parent | 511cb0d5c0f8651c81dde71087840d2b1c66c593 [diff] |
Cache reused values in autoCloseChanges The tip commit and branch key are passed into the submodule update helper. Hold them in varibles for reuse, to reduce redundant code. It is not necessary to reset the RevWalk. The submodule updater is only using the revision pool to parse commits. It doesn't perform a traversal, so the reset is merely wasting CPU cycles here. Change-Id: Id6545033291539b862291eb88d6e8e85a24cb34c