diff options
author | Christian Couder <chriscool@tuxfamily.org> | 2010-02-28 23:19:09 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-01 01:04:35 -0800 |
commit | 8f69f72fca989b3ba080aab1dc24bfd1709ce83a (patch) | |
tree | c8527e2c9fb724628b237ad9827bdba3e02a5fa3 /levenshtein.c | |
parent | dwim_ref: fix dangling symref warning (diff) | |
download | tgif-8f69f72fca989b3ba080aab1dc24bfd1709ce83a.tar.xz |
bisect: error out when passing bad path parameters
As reported by Mark Lodato, "git bisect", when it was started with
path parameters that match no commit was kind of working without
taking account of path parameters and was reporting something like:
Bisecting: -1 revisions left to test after this (roughly 0 steps)
It is more correct and safer to just error out in this case, before
displaying the revisions left, so this patch does just that.
Note that this bug is very old, it exists at least since v1.5.5.
And it is possible to detect that case earlier in the bisect
algorithm, but it is not clear that it would be an improvement to
error out earlier, on the contrary it may change the behavior of
"git rev-list --bisect-all" for example, which is currently correct.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'levenshtein.c')
0 files changed, 0 insertions, 0 deletions