Staging
v0.5.1
https://github.com/git/git
Revision e276f018f2c1f0fc962fbe44a36708d1cdebada8 authored by Junio C Hamano on 29 July 2009, 06:52:58 UTC, committed by Junio C Hamano on 29 July 2009, 06:59:30 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 5c6d8bb
Raw File
Tip revision: e276f018f2c1f0fc962fbe44a36708d1cdebada8 authored by Junio C Hamano on 29 July 2009, 06:52:58 UTC
GIT 1.6.3.4
Tip revision: e276f01
builtin-bisect--helper.c
#include "builtin.h"
#include "cache.h"
#include "parse-options.h"
#include "bisect.h"

static const char * const git_bisect_helper_usage[] = {
	"git bisect--helper --next-vars",
	NULL
};

int cmd_bisect__helper(int argc, const char **argv, const char *prefix)
{
	int next_vars = 0;
	struct option options[] = {
		OPT_BOOLEAN(0, "next-vars", &next_vars,
			    "output next bisect step variables"),
		OPT_END()
	};

	argc = parse_options(argc, argv, options, git_bisect_helper_usage, 0);

	if (!next_vars)
		usage_with_options(git_bisect_helper_usage, options);

	/* next-vars */
	return bisect_next_vars(prefix);
}
back to top