Merge branch 'mh/fast-import-optimize-current-from'
commit3ecca8879a07889884dcdc90066c76c4e948856a
authorJunio C Hamano <gitster@pobox.com>
Mon, 3 Aug 2015 18:01:24 +0000 (3 11:01 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Aug 2015 18:01:24 +0000 (3 11:01 -0700)
tree9e6e98735ea13af60f756cfc8c18c842c7c1327d
parent85df7cd48739cf252c4e6621251845f8ee117d6a
parent0df3245721580a3d48c9766a311dd0e3367844b8
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
fast-import.c