From: Junio C Hamano Date: Mon, 3 Aug 2015 18:01:24 +0000 (-0700) Subject: Merge branch 'mh/fast-import-optimize-current-from' X-Git-Tag: v2.6.0-rc0~96 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3ecca8879a07889884dcdc90066c76c4e948856a;p=thirdparty%2Fgit.git Merge branch 'mh/fast-import-optimize-current-from' 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 --- 3ecca8879a07889884dcdc90066c76c4e948856a