Fix git-rev-list "date order" with --topo-order
[gitweb.git] / rev-parse.c
index adfc68c9be7b5ff2a8b576837048f4e9c034207b..5a989825113b122d130448726c8eb97ffeb21ad1 100644 (file)
@@ -34,6 +34,7 @@ static int is_rev_argument(const char *arg)
        static const char *rev_args[] = {
                "--all",
                "--bisect",
+               "--dense",
                "--header",
                "--max-age=",
                "--max-count=",
@@ -44,6 +45,7 @@ static int is_rev_argument(const char *arg)
                "--parents",
                "--pretty",
                "--show-breaks",
+               "--sparse",
                "--topo-order",
                "--unpacked",
                NULL
@@ -292,6 +294,7 @@ int main(int argc, char **argv)
                }
                if (verify)
                        die("Needed a single revision");
+               as_is = 1;
                show_file(arg);
        }
        show_default();