summaryrefslogtreecommitdiff
path: root/git-gui/GIT-VERSION-GEN
diff options
context:
space:
mode:
authorLibravatar Mike Hommey <mh@glandium.org>2015-07-09 15:50:09 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-07-13 09:36:05 -0700
commit0df3245721580a3d48c9766a311dd0e3367844b8 (patch)
tree185fe8c41e487da319169f0e9a9e2237718291a3 /git-gui/GIT-VERSION-GEN
parentGit 2.5.0-rc0 (diff)
downloadtgif-0df3245721580a3d48c9766a311dd0e3367844b8.tar.xz
fast-import: do less work when given "from" matches current branch head
When building a fast-import stream, it's easy to forget the fact that for non-merge commits happening on top of the current branch head, there is no need for a "from" command. That is corroborated by the fact that at least git-p4, hg-fast-export and felipec's git-remote-hg all unconditionally use a "from" command. Unfortunately, giving a "from" command always resets the branch tree, forcing it to be re-read, and in many cases, the pack is also closed and reopened through gfi_unpack_entry. Both are unnecessary overhead, and the latter is particularly slow at least on OSX. Avoid resetting the tree when it's unmodified, and avoid calling gfi_unpack_entry when the given mark points to the same commit as the current branch head. Signed-off-by: Mike Hommey <mh@glandium.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/GIT-VERSION-GEN')
0 files changed, 0 insertions, 0 deletions