Tentative built-in "git show"
[gitweb.git] / log-tree.c
index cb0d0b15e711eb74afe6a48c4b6cedcf40de763f..17e976a63753c11bb4e33565437cbfa118b01d62 100644 (file)
@@ -182,6 +182,8 @@ int parse_whatchanged_opt(int ac, const char **av, struct whatchanged_opt *wcopt
        int left = 1;
 
        ac = setup_revisions(ac, av, rev, "HEAD");
+       if (!strcmp(av[0], "show"))
+               rev->no_walk = 1;
        while (1 < ac) {
                const char *arg = av[1];
                if (!strncmp(arg, "--pretty", 8)) {