From: Junio C Hamano Date: Wed, 19 Aug 2015 21:41:29 +0000 (-0700) Subject: Merge branch 'mh/fast-import-optimize-current-from' into maint X-Git-Tag: v2.5.1~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f9610bcae907a38636174a688c1aa89c63cc9c1a;p=thirdparty%2Fgit.git Merge branch 'mh/fast-import-optimize-current-from' into maint Often a fast-import stream builds a new commit on top of the previous commit it built, and it often unconditionally emits a "from" command to specify the first parent, which can be omitted in such a case. This caused fast-import to forget the tree of the previous commit and then re-read it from scratch, which was inefficient. Optimize for this common case. * mh/fast-import-optimize-current-from: fast-import: do less work when given "from" matches current branch head --- f9610bcae907a38636174a688c1aa89c63cc9c1a