Commit 5a169711 by Russell Belfer Committed by Vicent Marti

fix bug with order args and no revision

parent 2b3bd8ec
...@@ -86,9 +86,12 @@ static int add_revision(struct log_state *s, const char *revstr) ...@@ -86,9 +86,12 @@ static int add_revision(struct log_state *s, const char *revstr)
"Could not open repository", s->repodir); "Could not open repository", s->repodir);
} }
if (!revstr) if (!revstr) {
push_rev(s, NULL, hide); push_rev(s, NULL, hide);
else if (*revstr == '^') { return 0;
}
if (*revstr == '^') {
revs.flags = GIT_REVPARSE_SINGLE; revs.flags = GIT_REVPARSE_SINGLE;
hide = !hide; hide = !hide;
if (!git_revparse_single(&revs.from, s->repo, revstr + 1)) if (!git_revparse_single(&revs.from, s->repo, revstr + 1))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment