diff options
author | Jeff King <peff@peff.net> | 2017-05-19 08:48:46 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-05-24 10:59:27 +0900 |
commit | 1d6c93817bf22d6bf279bac302911cc93f63046c (patch) | |
tree | 0cffd902cab88d77d60ca88bbf1dda433a55f238 /t/t6045-merge-rename-delete.sh | |
parent | handle_revision_arg: reset "dotdot" consistently (diff) | |
download | tgif-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/t6045-merge-rename-delete.sh')
0 files changed, 0 insertions, 0 deletions