summaryrefslogtreecommitdiff
path: root/t/t4028-format-patch-mime-headers.sh
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2017-05-19 08:48:46 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-05-24 10:59:27 +0900
commit1d6c93817bf22d6bf279bac302911cc93f63046c (patch)
tree0cffd902cab88d77d60ca88bbf1dda433a55f238 /t/t4028-format-patch-mime-headers.sh
parenthandle_revision_arg: reset "dotdot" consistently (diff)
downloadtgif-1d6c93817bf22d6bf279bac302911cc93f63046c.tar.xz
handle_revision_arg: simplify commit reference lookups
The "dotdot" range parser avoids calling lookup_commit_reference() if we are directly fed two commits. But its casts are unnecessarily complex; that function will just return a commit we pass into it. Just calling the function all the time is much simpler, and doesn't do any significant extra work (the object is already parsed, and deref_tag() on a non-tag is a noop; we do incur one extra lookup_object() call, but that's fairly trivial). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4028-format-patch-mime-headers.sh')
0 files changed, 0 insertions, 0 deletions