author | Christian Couder <chriscool@tuxfamily.org> | |
Sat, 6 Jun 2009 04:41:33 +0000 (06:41 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 6 Jun 2009 18:26:56 +0000 (11:26 -0700) | ||
commit | 9af3589e0e42eb289dfdb8bb4031e5bec4923308 | |
tree | 84f82922eb53f65de7c6a1bf0f05ba806e7ceeb9 | tree | snapshot |
parent | e22278c0a0784d4285f0e3173794caad4e542658 | commit | diff |
bisect: add parameters to "filter_skipped"
because we will need to get more information from this function in
some later patches.
The new "int *count" parameter gives the number of commits left after
the skipped commit have been filtered out.
The new "int *skipped_first" parameter tells us if the first commit
in the list has been skipped. Note that using this parameter also
changes the behavior of the function if the first commit is indeed
skipped. Because we assume that in this case we will want all the
filtered commits, not just the first one, even if "show_all" is not
set.
So using a not NULL "skipped_first" parameter really means that we
plan to choose to test another commit than the first non skipped
one if the first commit in the list is skipped. That in turn means
that, in case the first commit is skipped, we have to return a
fully filtered list.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
because we will need to get more information from this function in
some later patches.
The new "int *count" parameter gives the number of commits left after
the skipped commit have been filtered out.
The new "int *skipped_first" parameter tells us if the first commit
in the list has been skipped. Note that using this parameter also
changes the behavior of the function if the first commit is indeed
skipped. Because we assume that in this case we will want all the
filtered commits, not just the first one, even if "show_all" is not
set.
So using a not NULL "skipped_first" parameter really means that we
plan to choose to test another commit than the first non skipped
one if the first commit in the list is skipped. That in turn means
that, in case the first commit is skipped, we have to return a
fully filtered list.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bisect.c | diff | blob | history | |
bisect.h | diff | blob | history | |
builtin-rev-list.c | diff | blob | history |