mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
bisect--helper: log: allow arbitrary number of arguments
In a later change, we would like to turn bisect into a builtin by renaming bisect--helper. However, there's an oddity that "git bisect log" accepts any number of arguments and it will just ignore them all. Let's prepare for the next step by ignoring any arguments passed to "git bisect--helper log" Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com> Signed-off-by: Taylor Blau <me@ttaylorr.com>
This commit is contained in:
parent
df63421be9
commit
0da4b538e4
|
@ -1347,10 +1347,8 @@ static int cmd_bisect__next(int argc, const char **argv UNUSED, const char *pref
|
|||
return res;
|
||||
}
|
||||
|
||||
static int cmd_bisect__log(int argc, const char **argv UNUSED, const char *prefix UNUSED)
|
||||
static int cmd_bisect__log(int argc UNUSED, const char **argv UNUSED, const char *prefix UNUSED)
|
||||
{
|
||||
if (argc)
|
||||
return error(_("'%s' requires 0 arguments"), "git bisect log");
|
||||
return bisect_log();
|
||||
}
|
||||
|
||||
|
|
|
@ -57,8 +57,6 @@ case "$#" in
|
|||
case "$cmd" in
|
||||
help)
|
||||
git bisect -h ;;
|
||||
log)
|
||||
git bisect--helper log || exit ;;
|
||||
*)
|
||||
git bisect--helper "$cmd" "$@" ;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue