Commit f632ded
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>1 parent 1d6c938 commit f632ded
1 file changed
Lines changed: 15 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1433 | 1433 | | |
1434 | 1434 | | |
1435 | 1435 | | |
| 1436 | + | |
1436 | 1437 | | |
1437 | 1438 | | |
1438 | 1439 | | |
| |||
1529 | 1530 | | |
1530 | 1531 | | |
1531 | 1532 | | |
1532 | | - | |
1533 | | - | |
1534 | | - | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
1535 | 1536 | | |
1536 | 1537 | | |
1537 | | - | |
| 1538 | + | |
1538 | 1539 | | |
1539 | | - | |
1540 | | - | |
1541 | | - | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
1542 | 1543 | | |
1543 | | - | |
| 1544 | + | |
1544 | 1545 | | |
1545 | | - | |
1546 | | - | |
| 1546 | + | |
| 1547 | + | |
1547 | 1548 | | |
1548 | 1549 | | |
1549 | | - | |
| 1550 | + | |
1550 | 1551 | | |
1551 | | - | |
| 1552 | + | |
1552 | 1553 | | |
1553 | 1554 | | |
1554 | 1555 | | |
1555 | 1556 | | |
1556 | | - | |
| 1557 | + | |
1557 | 1558 | | |
1558 | | - | |
| 1559 | + | |
1559 | 1560 | | |
1560 | 1561 | | |
1561 | 1562 | | |
| |||
0 commit comments