diff options
| author | Đoàn Trần Công Danh <congdanhqx@gmail.com> | 2022-11-10 23:36:45 +0700 |
|---|---|---|
| committer | Taylor Blau <me@ttaylorr.com> | 2022-11-11 17:06:01 -0500 |
| commit | 0da4b538e40f38f2ee7adc625cac18ae0d8df4d1 (patch) | |
| tree | d52e240eb799483d0093ab10e323b5292a4aa2d4 /builtin | |
| parent | bisect--helper: handle states directly (diff) | |
| download | git-0da4b538e40f38f2ee7adc625cac18ae0d8df4d1.tar.gz git-0da4b538e40f38f2ee7adc625cac18ae0d8df4d1.zip | |
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>
Diffstat (limited to 'builtin')
| -rw-r--r-- | builtin/bisect--helper.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/builtin/bisect--helper.c b/builtin/bisect--helper.c index 29d5a26c64..6066f553fd 100644 --- a/builtin/bisect--helper.c +++ b/builtin/bisect--helper.c @@ -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(); } |
