git p4: refactor diffOpts calculation
authorGary Gibbons <ggibbons@perforce.com>
Wed, 4 Jul 2012 13:40:19 +0000 (09:40 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Jul 2012 06:23:28 +0000 (23:23 -0700)
P4Submit.applyCommit()

To avoid recalculating the same diffOpts for each commit, move it
out of applyCommit() and into the top-level run(). Also fix a bug
in that code which interpreted the value of detectRenames as a
string rather than as a boolean.

[pw: fix documentation, rearrange code a bit]

Signed-off-by: Gary Gibbons <ggibbons@perforce.com>
Signed-off-by: Pete Wyckoff <pw@padd.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found