提交 5ccfb758 编写于 作者: J Junio C Hamano

Update rev-parse flags list.

I haven't audited the rev-parse users, but I am having a feeling
that many of them would choke when they expect a couple of SHA1
object names and malicious user feeds them "--max-count=6" or
somesuch to shoot himself in the foot.  Anyway, this adds a
couple of missing parameters that affect the list of revs to be
returned from rev-list, not the flags that affect how they are
presented by rev-list.  I think that is the intention, but I am
not quite sure.
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 76cd8eb6
...@@ -33,6 +33,9 @@ static int is_rev_argument(const char *arg) ...@@ -33,6 +33,9 @@ static int is_rev_argument(const char *arg)
"--max-age=", "--max-age=",
"--min-age=", "--min-age=",
"--merge-order", "--merge-order",
"--topo-order",
"--bisect",
"--no-merges",
NULL NULL
}; };
const char **p = rev_args; const char **p = rev_args;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册