]> git.ipfire.org Git - thirdparty/git.git/commit - revision.c
handle_revision_arg: stop using "dotdot" as a generic pointer
authorJeff King <peff@peff.net>
Fri, 19 May 2017 12:50:07 +0000 (08:50 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 May 2017 01:59:27 +0000 (10:59 +0900)
commitf632dedd8d29da20d546612d908a5c1b2ebf37aa
treea7da32b2dc5d3f657599dbe3660f4fabe658322d
parent1d6c93817bf22d6bf279bac302911cc93f63046c
handle_revision_arg: stop using "dotdot" as a generic pointer

The handle_revision_arg() function has a "dotdot" variable
that it uses to find a ".." or "..." in the argument. If we
don't find one, we look for other marks, like "^!". But we
just keep re-using the "dotdot" variable, which is
confusing.

Let's introduce a separate "mark" variable that can be used
for these other marks. They still reuse the same variable,
but at least the name is no longer actively misleading.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.c