Do not expand `--all` when parsing %(revargs)
commit786a028b12eb6eefb157097a80aba85da184567f
authorJonas Fonseca <jonas.fonseca@gmail.com>
Tue, 5 Jan 2016 01:06:00 +0000 (4 20:06 -0500)
committerJonas Fonseca <jonas.fonseca@gmail.com>
Tue, 5 Jan 2016 01:06:00 +0000 (4 20:06 -0500)
treebb1a77e2a0c1d11cac1f96d577a85548650bf73b
parent2ea054b839e1c7e90f4d669ea324aed0debba3e9
Do not expand `--all` when parsing %(revargs)

Passing `--all` to `git-rev-parse --revs-only` will expand it to all
revs in the repository, which causes Tig to exit with the error:

    tig: No revisions match the given argument.

if a revision is deleted or added and the view is reloaded. In addition,
it also causes problems in repositories with many revs.

Fixes #442 and fixes #462.
NEWS.adoc
src/display.c
src/tig.c
test/main/all-arg-test [new file with mode: 0755]
test/tools/libtest.sh