Skip to content

Commit

Permalink
Update rev-parse flags list.
Browse files Browse the repository at this point in the history
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: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Aug 10, 2005
1 parent 76cd8eb commit 5ccfb75
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rev-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ static int is_rev_argument(const char *arg)
"--max-age=",
"--min-age=",
"--merge-order",
"--topo-order",
"--bisect",
"--no-merges",
NULL
};
const char **p = rev_args;
Expand Down

0 comments on commit 5ccfb75

Please sign in to comment.