From: "Tanushree Tumane via GitGitGadget" <gitgitgadget@gmail.com>
To: git@vger.kernel.org
Cc: Junio C Hamano <gitster@pobox.com>
Subject: [PATCH v17 0/7] git bisect: convert from shell to C
Date: Wed, 02 Jan 2019 07:38:29 -0800 (PST) [thread overview]
Message-ID: <pull.101.v17.git.gitgitgadget@gmail.com> (raw)
In-Reply-To: <0102015f5e5ee171-f30f4868-886f-47a1-a4e4-b4936afc545d-000000@eu-west-1.amazonses.com>
Changes since Pranit's v16:
===========================
bisect--helper: bisect_reset shell function in C
================================================
* The return !printf(...); construct was considered unsafe and disentangled
into printf(...); return 0;
* It is more elegant to release branch and argv first, and then return
error(...) than to error(...); release branch; clear argv; return -1;
* Prefix !! to bisect_reset(...) function call in cmd_bisect__helper(...)
because its return value will be given to exit()
bisect--helper: bisect_write shell function in C
================================================
* The option [--no-log] is passed before <state>.
* Remove const from struct bisect_terms variables because const pointers
refers to memory owned by another code path.
* Use FREE_AND_NULL(...) in free_terms(...).
* It makes more sense to free terms before set in set_terms(...) to avoid
memory leak.
* Remove fail: retval = -1; for cleaner code flow, replace goto fail; with
retval = -1; goto finish; or retval = error(...); goto finish;
* It is more consistent to introduce --no-log as option like --no-checkout.
* Initialize struct bisect_terms terms in cmd_bisect__helper(...).
* The return res; in cmd_bisect__helper(...) may return -1, so prefixed !!
to handle such cases.
bisect--helper: check_and_set_terms shell function in C
=======================================================
* free_terms() before set_terms() is obsolete as set_terms() frees terms
before set.
bisect--helper: bisect_next_check shell function in C
=====================================================
* [<term>] is first argument of bisect-next-check.
* vocab_good and vocab_bad for easier readability.
* Declare *_warning char pointers.
* Remove fail: label, its only job was to set retval = -1;.
bisect--helper: get_terms & bisect_terms shell function in C
============================================================
* Remove fail: label, its only job was to set res = -1;.
* Parse the argv in cmd_bisect__helper() and pass option to bisect_terms().
bisect--helper: bisect_start shell function partially in C
==========================================================
* Remove fail: label, its only job was to set retval = -1;.
* Spell correction unrecognised to unrecognized.
* if (revs.nr) must_write_terms = 1; is more readable than must_write_terms
|= !!revs.nr;.
* error() messages starts with small letters.
* sha1_to_hex() is old practice.
* sq_quote_argv() now requires only two args.
* Instead of nesting ifs, use &&.
Pranit Bauva (7):
bisect--helper: `bisect_reset` shell function in C
bisect--helper: `bisect_write` shell function in C
wrapper: move is_empty_file() and rename it as
is_empty_or_missing_file()
bisect--helper: `check_and_set_terms` shell function in C
bisect--helper: `bisect_next_check` shell function in C
bisect--helper: `get_terms` & `bisect_terms` shell function in C
bisect--helper: `bisect_start` shell function partially in C
builtin/am.c | 20 +-
builtin/bisect--helper.c | 563 +++++++++++++++++++++++++++++++++++-
cache.h | 3 +
git-bisect.sh | 314 ++------------------
t/t6030-bisect-porcelain.sh | 2 +-
wrapper.c | 13 +
6 files changed, 595 insertions(+), 320 deletions(-)
base-commit: 7f4e64169352e03476b0ea64e7e2973669e491a2
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-101%2Ftanushree27%2Fgit-bisect_part2_fixup-v17
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-101/tanushree27/git-bisect_part2_fixup-v17
Pull-Request: https://github.com/gitgitgadget/git/pull/101
Range-diff vs v16:
1: f1e89ba517 ! 1: 338ebdc97a bisect--helper: `bisect_reset` shell function in C
@@ -16,8 +16,9 @@
Mentored-by: Lars Schneider <larsxschneider@gmail.com>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
+ Mentored by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Pranit Bauva <pranit.bauva@gmail.com>
- Signed-off-by: Junio C Hamano <gitster@pobox.com>
+ Signed-off-by: Tanushree Tumane <tanushreetumane@gmail.com>
diff --git a/builtin/bisect--helper.c b/builtin/bisect--helper.c
--- a/builtin/bisect--helper.c
@@ -53,8 +54,10 @@
+ struct strbuf branch = STRBUF_INIT;
+
+ if (!commit) {
-+ if (strbuf_read_file(&branch, git_path_bisect_start(), 0) < 1)
-+ return !printf(_("We are not bisecting.\n"));
++ if (strbuf_read_file(&branch, git_path_bisect_start(), 0) < 1) {
++ printf(_("We are not bisecting.\n"));
++ return 0;
++ }
+ strbuf_rtrim(&branch);
+ } else {
+ struct object_id oid;
@@ -69,11 +72,11 @@
+
+ argv_array_pushl(&argv, "checkout", branch.buf, "--", NULL);
+ if (run_command_v_opt(argv.argv, RUN_GIT_CMD)) {
-+ error(_("Could not check out original HEAD '%s'. Try "
-+ "'git bisect reset <commit>'."), branch.buf);
+ strbuf_release(&branch);
+ argv_array_clear(&argv);
-+ return -1;
++ return error(_("could not check out original"
++ " HEAD '%s'. Try 'git bisect"
++ "reset <commit>'."), branch.buf);
+ }
+ argv_array_clear(&argv);
+ }
@@ -110,7 +113,7 @@
+ case BISECT_RESET:
+ if (argc > 1)
+ return error(_("--bisect-reset requires either no argument or a commit"));
-+ return bisect_reset(argc ? argv[0] : NULL);
++ return !!bisect_reset(argc ? argv[0] : NULL);
default:
return error("BUG: unknown subcommand '%d'", cmdmode);
}
2: da4ac60ad4 ! 2: 7d6291d9dd bisect--helper: `bisect_write` shell function in C
@@ -27,8 +27,9 @@
Helped-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Mentored-by: Lars Schneider <larsxschneider@gmail.com>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
+ Mentored-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Pranit Bauva <pranit.bauva@gmail.com>
- Signed-off-by: Junio C Hamano <gitster@pobox.com>
+ Signed-off-by: Tanushree Tumane <tanushreetumane@gmail.com>
diff --git a/builtin/bisect--helper.c b/builtin/bisect--helper.c
--- a/builtin/bisect--helper.c
@@ -44,27 +45,27 @@
N_("git bisect--helper --write-terms <bad_term> <good_term>"),
N_("git bisect--helper --bisect-clean-state"),
N_("git bisect--helper --bisect-reset [<commit>]"),
-+ N_("git bisect--helper --bisect-write <state> <revision> <good_term> <bad_term> [<nolog>]"),
++ N_("git bisect--helper --bisect-write [--no-log] <state> <revision> <good_term> <bad_term>"),
NULL
};
+struct bisect_terms {
-+ const char *term_good;
-+ const char *term_bad;
++ char *term_good;
++ char *term_bad;
+};
+
+static void free_terms(struct bisect_terms *terms)
+{
-+ if (!terms->term_good)
-+ free((void *) terms->term_good);
-+ if (!terms->term_bad)
-+ free((void *) terms->term_bad);
++ FREE_AND_NULL(terms->term_good);
++ FREE_AND_NULL(terms->term_bad);
+}
+
+static void set_terms(struct bisect_terms *terms, const char *bad,
+ const char *good)
+{
++ free((void *)terms->term_good);
+ terms->term_good = xstrdup(good);
++ free((void *)terms->term_bad);
+ terms->term_bad = xstrdup(bad);
+}
+
@@ -105,35 +106,33 @@
+ } else if (one_of(state, terms->term_good, "skip", NULL)) {
+ strbuf_addf(&tag, "refs/bisect/%s-%s", state, rev);
+ } else {
-+ error(_("Bad bisect_write argument: %s"), state);
-+ goto fail;
++ retval = error(_("Bad bisect_write argument: %s"), state);
++ goto finish;
+ }
+
+ if (get_oid(rev, &oid)) {
-+ error(_("couldn't get the oid of the rev '%s'"), rev);
-+ goto fail;
++ retval = error(_("couldn't get the oid of the rev '%s'"), rev);
++ goto finish;
+ }
+
+ if (update_ref(NULL, tag.buf, &oid, NULL, 0,
-+ UPDATE_REFS_MSG_ON_ERR))
-+ goto fail;
++ UPDATE_REFS_MSG_ON_ERR)) {
++ retval = -1;
++ goto finish;
++ }
+
+ fp = fopen(git_path_bisect_log(), "a");
+ if (!fp) {
-+ error_errno(_("couldn't open the file '%s'"), git_path_bisect_log());
-+ goto fail;
++ retval = error_errno(_("couldn't open the file '%s'"), git_path_bisect_log());
++ goto finish;
+ }
+
-+ commit = lookup_commit_reference(&oid);
++ commit = lookup_commit_reference(the_repository, &oid);
+ log_commit(fp, "%s", state, commit);
+
+ if (!nolog)
+ fprintf(fp, "git bisect %s %s\n", state, rev);
+
-+ goto finish;
-+
-+fail:
-+ retval = -1;
+finish:
+ if (fp)
+ fclose(fp);
@@ -153,7 +152,7 @@
+ BISECT_WRITE
} cmdmode = 0;
- int no_checkout = 0;
-+ int no_checkout = 0, res = 0;
++ int no_checkout = 0, res = 0, nolog = 0;
struct option options[] = {
OPT_CMDMODE(0, "next-all", &cmdmode,
N_("perform 'git bisect next'"), NEXT_ALL),
@@ -162,31 +161,24 @@
OPT_CMDMODE(0, "bisect-reset", &cmdmode,
N_("reset the bisection state"), BISECT_RESET),
+ OPT_CMDMODE(0, "bisect-write", &cmdmode,
-+ N_("update the refs according to the bisection state and may write it to BISECT_LOG"), BISECT_WRITE),
++ N_("write out the bisection state in BISECT_LOG"), BISECT_WRITE),
OPT_BOOL(0, "no-checkout", &no_checkout,
N_("update BISECT_HEAD instead of checking out the current commit")),
++ OPT_BOOL(0, "no-log", &nolog,
++ N_("no log for BISECT_WRITE ")),
OPT_END()
};
-+ struct bisect_terms terms;
++ struct bisect_terms terms = { .term_good = NULL, .term_bad = NULL };
argc = parse_options(argc, argv, prefix, options,
git_bisect_helper_usage, 0);
-@@
- usage_with_options(git_bisect_helper_usage, options);
-
- switch (cmdmode) {
-+ int nolog;
- case NEXT_ALL:
- return bisect_next_all(prefix, no_checkout);
- case WRITE_TERMS:
@@
if (argc > 1)
return error(_("--bisect-reset requires either no argument or a commit"));
- return bisect_reset(argc ? argv[0] : NULL);
+ return !!bisect_reset(argc ? argv[0] : NULL);
+ case BISECT_WRITE:
+ if (argc != 4 && argc != 5)
+ return error(_("--bisect-write requires either 4 or 5 arguments"));
-+ nolog = (argc == 5) && !strcmp(argv[4], "nolog");
+ set_terms(&terms, argv[3], argv[2]);
+ res = bisect_write(argv[0], argv[1], &terms, nolog);
+ break;
@@ -195,7 +187,7 @@
}
- return 0;
+ free_terms(&terms);
-+ return res;
++ return !!res;
}
diff --git a/git-bisect.sh b/git-bisect.sh
3: 8874ae1a3a ! 3: 5f24e7cef2 wrapper: move is_empty_file() and rename it as is_empty_or_missing_file()
@@ -9,14 +9,13 @@
Mentored-by: Lars Schneider <larsxschneider@gmail.com>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Pranit Bauva <pranit.bauva@gmail.com>
- Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff --git a/builtin/am.c b/builtin/am.c
--- a/builtin/am.c
+++ b/builtin/am.c
@@
- #include "string-list.h"
#include "packfile.h"
+ #include "repository.h"
-/**
- * Returns 1 if the file is empty or does not exist, 0 otherwise.
@@ -61,7 +60,7 @@
+++ b/cache.h
@@
*/
- void safe_create_dir(const char *dir, int share);
+ extern int print_sha1_ellipsis(void);
+/* Return 1 if the file is empty or does not exists, 0 otherwise. */
+extern int is_empty_or_missing_file(const char *filename);
4: 7e9fdedc45 ! 4: 4e97a08a10 bisect--helper: `check_and_set_terms` shell function in C
@@ -20,8 +20,9 @@
Mentored-by: Lars Schneider <larsxschneider@gmail.com>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
+ Mentored-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Pranit Bauva <pranit.bauva@gmail.com>
- Signed-off-by: Junio C Hamano <gitster@pobox.com>
+ Signed-off-by: Tanushree Tumane <tanushreetumane@gmail.com>
diff --git a/builtin/bisect--helper.c b/builtin/bisect--helper.c
--- a/builtin/bisect--helper.c
@@ -29,7 +30,7 @@
@@
N_("git bisect--helper --bisect-clean-state"),
N_("git bisect--helper --bisect-reset [<commit>]"),
- N_("git bisect--helper --bisect-write <state> <revision> <good_term> <bad_term> [<nolog>]"),
+ N_("git bisect--helper --bisect-write [--no-log] <state> <revision> <good_term> <bad_term>"),
+ N_("git bisect--helper --bisect-check-and-set-terms <command> <good_term> <bad_term>"),
NULL
};
@@ -53,12 +54,10 @@
+
+ if (!has_term_file) {
+ if (one_of(cmd, "bad", "good", NULL)) {
-+ free_terms(terms);
+ set_terms(terms, "bad", "good");
+ return write_terms(terms->term_bad, terms->term_good);
+ }
-+ else if (one_of(cmd, "new", "old", NULL)) {
-+ free_terms(terms);
++ if (one_of(cmd, "new", "old", NULL)) {
+ set_terms(terms, "new", "old");
+ return write_terms(terms->term_bad, terms->term_good);
+ }
@@ -78,17 +77,17 @@
+ BISECT_WRITE,
+ CHECK_AND_SET_TERMS
} cmdmode = 0;
- int no_checkout = 0, res = 0;
+ int no_checkout = 0, res = 0, nolog = 0;
struct option options[] = {
@@
N_("reset the bisection state"), BISECT_RESET),
OPT_CMDMODE(0, "bisect-write", &cmdmode,
- N_("update the refs according to the bisection state and may write it to BISECT_LOG"), BISECT_WRITE),
+ N_("write out the bisection state in BISECT_LOG"), BISECT_WRITE),
+ OPT_CMDMODE(0, "check-and-set-terms", &cmdmode,
+ N_("check and set terms in a bisection state"), CHECK_AND_SET_TERMS),
OPT_BOOL(0, "no-checkout", &no_checkout,
N_("update BISECT_HEAD instead of checking out the current commit")),
- OPT_END()
+ OPT_BOOL(0, "no-log", &nolog,
@@
set_terms(&terms, argv[3], argv[2]);
res = bisect_write(argv[0], argv[1], &terms, nolog);
5: ca12543868 ! 5: e9f400b1d6 bisect--helper: `bisect_next_check` shell function in C
@@ -17,8 +17,9 @@
Helped-by: Stephan Beyer <s-beyer@gmx.net>
Mentored-by: Lars Schneider <larsxschneider@gmail.com>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
+ Mentored-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Pranit Bauva <pranit.bauva@gmail.com>
- Signed-off-by: Junio C Hamano <gitster@pobox.com>
+ Signed-off-by: Tanushree Tumane <tanushreetumane@gmail.com>
diff --git a/builtin/bisect--helper.c b/builtin/bisect--helper.c
--- a/builtin/bisect--helper.c
@@ -33,9 +34,9 @@
static GIT_PATH_FUNC(git_path_bisect_expected_rev, "BISECT_EXPECTED_REV")
@@
N_("git bisect--helper --bisect-reset [<commit>]"),
- N_("git bisect--helper --bisect-write <state> <revision> <good_term> <bad_term> [<nolog>]"),
+ N_("git bisect--helper --bisect-write [--no-log] <state> <revision> <good_term> <bad_term>"),
N_("git bisect--helper --bisect-check-and-set-terms <command> <good_term> <bad_term>"),
-+ N_("git bisect--helper --bisect-next-check [<term>] <good_term> <bad_term>"),
++ N_("git bisect--helper --bisect-next-check <good_term> <bad_term> [<term>]"),
NULL
};
@@ -43,10 +44,8 @@
terms->term_bad = xstrdup(bad);
}
-+static const char *voc[] = {
-+ "bad|new",
-+ "good|old"
-+};
++static const char *vocab_bad = "bad|new";
++static const char *vocab_good = "good|old";
+
/*
* Check whether the string `term` belongs to the set of strings
@@ -63,6 +62,15 @@
+ return 1;
+}
+
++static const char *need_bad_and_good_revision_warning =
++ N_("You need to give me at least one %s and %s revision.\n"
++ "You can use \"git bisect %s\" and \"git bisect %s\" for that.");
++
++static const char *need_bisect_start_warning =
++ N_("You need to start by \"git bisect start\".\n"
++ "You then need to give me at least one %s and %s revision.\n"
++ "You can use \"git bisect %s\" and \"git bisect %s\" for that.");
++
+static int bisect_next_check(const struct bisect_terms *terms,
+ const char *current_term)
+{
@@ -79,18 +87,19 @@
+ if (!missing_good && !missing_bad)
+ goto finish;
+
-+ if (!current_term)
-+ goto fail;
++ if (!current_term) {
++ retval = -1;
++ goto finish;
++ }
+
-+ if (missing_good && !missing_bad && current_term &&
++ if (missing_good && !missing_bad &&
+ !strcmp(current_term, terms->term_good)) {
+ char *yesno;
+ /*
+ * have bad (or new) but not good (or old). We could bisect
+ * although this is less optimum.
+ */
-+ fprintf(stderr, _("Warning: bisecting only with a %s commit\n"),
-+ terms->term_bad);
++ warning(_("bisecting only with a %s commit"), terms->term_bad);
+ if (!isatty(0))
+ goto finish;
+ /*
@@ -100,28 +109,17 @@
+ */
+ yesno = git_prompt(_("Are you sure [Y/n]? "), PROMPT_ECHO);
+ if (starts_with(yesno, "N") || starts_with(yesno, "n"))
-+ goto fail;
-+
++ retval = -1;
+ goto finish;
+ }
+ if (!is_empty_or_missing_file(git_path_bisect_start())) {
-+ error(_("You need to give me at least one %s and "
-+ "%s revision. You can use \"git bisect %s\" "
-+ "and \"git bisect %s\" for that.\n"),
-+ voc[0], voc[1], voc[0], voc[1]);
-+ goto fail;
++ retval = error(_(need_bad_and_good_revision_warning),
++ vocab_bad, vocab_good, vocab_bad, vocab_good);
+ } else {
-+ error(_("You need to start by \"git bisect start\". You "
-+ "then need to give me at least one %s and %s "
-+ "revision. You can use \"git bisect %s\" and "
-+ "\"git bisect %s\" for that.\n"),
-+ voc[1], voc[0], voc[1], voc[0]);
-+ goto fail;
++ retval = error(_(need_bisect_start_warning),
++ vocab_good, vocab_bad, vocab_good, vocab_bad);
+ }
-+ goto finish;
+
-+fail:
-+ retval = -1;
+finish:
+ free((void *) good_glob);
+ free((void *) bad_ref);
@@ -139,17 +137,17 @@
+ CHECK_AND_SET_TERMS,
+ BISECT_NEXT_CHECK
} cmdmode = 0;
- int no_checkout = 0, res = 0;
+ int no_checkout = 0, res = 0, nolog = 0;
struct option options[] = {
@@
- N_("update the refs according to the bisection state and may write it to BISECT_LOG"), BISECT_WRITE),
+ N_("write out the bisection state in BISECT_LOG"), BISECT_WRITE),
OPT_CMDMODE(0, "check-and-set-terms", &cmdmode,
N_("check and set terms in a bisection state"), CHECK_AND_SET_TERMS),
+ OPT_CMDMODE(0, "bisect-next-check", &cmdmode,
+ N_("check whether bad or good terms exist"), BISECT_NEXT_CHECK),
OPT_BOOL(0, "no-checkout", &no_checkout,
N_("update BISECT_HEAD instead of checking out the current commit")),
- OPT_END()
+ OPT_BOOL(0, "no-log", &nolog,
@@
set_terms(&terms, argv[2], argv[1]);
res = check_and_set_terms(&terms, argv[0]);
@@ -245,8 +243,8 @@
- bisect_next_check fail
+ git bisect--helper --bisect-next-check $TERM_GOOD $TERM_BAD fail || exit
- while true
- do
+ test -n "$*" || die "$(gettext "bisect run failed: no command provided.")"
+
@@
fi
}
6: db7b281c8c ! 6: f2b1706e5b bisect--helper: `get_terms` & `bisect_terms` shell function in C
@@ -14,18 +14,24 @@
Also use error() to report "no terms defined" and accordingly change the
test in t6030.
+ We need to use PARSE_OPT_KEEP_UNKNOWN here to allow for parameters that
+ look like options (e.g --term-good) but should not be parsed by
+ cmd_bisect__helper(). This change is safe because all other cmdmodes have
+ strict argc checks already.
+
Mentored-by: Lars Schneider <larsxschneider@gmail.com>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
+ Mentored-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Pranit Bauva <pranit.bauva@gmail.com>
- Signed-off-by: Junio C Hamano <gitster@pobox.com>
+ Signed-off-by: Tanushree Tumane <tanushreetumane@gmail.com>
diff --git a/builtin/bisect--helper.c b/builtin/bisect--helper.c
--- a/builtin/bisect--helper.c
+++ b/builtin/bisect--helper.c
@@
- N_("git bisect--helper --bisect-write <state> <revision> <good_term> <bad_term> [<nolog>]"),
+ N_("git bisect--helper --bisect-write [--no-log] <state> <revision> <good_term> <bad_term>"),
N_("git bisect--helper --bisect-check-and-set-terms <command> <good_term> <bad_term>"),
- N_("git bisect--helper --bisect-next-check [<term>] <good_term> <bad_term>"),
+ N_("git bisect--helper --bisect-next-check <good_term> <bad_term> [<term>]"),
+ N_("git bisect--helper --bisect-terms [--term-good | --term-old | --term-bad | --term-new]"),
NULL
};
@@ -41,18 +47,17 @@
+ int res = 0;
+
+ fp = fopen(git_path_bisect_terms(), "r");
-+ if (!fp)
-+ goto fail;
++ if (!fp) {
++ res = -1;
++ goto finish;
++ }
+
+ free_terms(terms);
+ strbuf_getline_lf(&str, fp);
+ terms->term_bad = strbuf_detach(&str, NULL);
+ strbuf_getline_lf(&str, fp);
+ terms->term_good = strbuf_detach(&str, NULL);
-+ goto finish;
+
-+fail:
-+ res = -1;
+finish:
+ if (fp)
+ fclose(fp);
@@ -60,32 +65,26 @@
+ return res;
+}
+
-+static int bisect_terms(struct bisect_terms *terms, const char **argv, int argc)
++static int bisect_terms(struct bisect_terms *terms, const char *option)
+{
-+ int i;
-+
+ if (get_terms(terms))
+ return error(_("no terms defined"));
+
-+ if (argc > 1)
-+ return error(_("--bisect-term requires exactly one argument"));
-+
-+ if (argc == 0)
-+ return !printf(_("Your current terms are %s for the old state\n"
-+ "and %s for the new state.\n"),
-+ terms->term_good, terms->term_bad);
-+
-+ for (i = 0; i < argc; i++) {
-+ if (!strcmp(argv[i], "--term-good"))
-+ printf(_("%s\n"), terms->term_good);
-+ else if (!strcmp(argv[i], "--term-bad"))
-+ printf(_("%s\n"), terms->term_bad);
-+ else
-+ error(_("BUG: invalid argument %s for 'git bisect terms'.\n"
-+ "Supported options are: "
-+ "--term-good|--term-old and "
-+ "--term-bad|--term-new."), argv[i]);
++ if (option == NULL) {
++ printf(_("Your current terms are %s for the old state\n"
++ "and %s for the new state.\n"),
++ terms->term_good, terms->term_bad);
++ return 0;
+ }
++ if (one_of(option, "--term-good", "--term-old", NULL))
++ printf("%s\n", terms->term_good);
++ else if (one_of(option, "--term-bad", "--term-new", NULL))
++ printf("%s\n", terms->term_bad);
++ else
++ return error(_("invalid argument %s for 'git bisect terms'.\n"
++ "Supported options are: "
++ "--term-good|--term-old and "
++ "--term-bad|--term-new."), option);
+
+ return 0;
+}
@@ -101,7 +100,7 @@
+ BISECT_NEXT_CHECK,
+ BISECT_TERMS
} cmdmode = 0;
- int no_checkout = 0, res = 0;
+ int no_checkout = 0, res = 0, nolog = 0;
struct option options[] = {
@@
N_("check and set terms in a bisection state"), CHECK_AND_SET_TERMS),
@@ -111,9 +110,9 @@
+ N_("print out the bisect terms"), BISECT_TERMS),
OPT_BOOL(0, "no-checkout", &no_checkout,
N_("update BISECT_HEAD instead of checking out the current commit")),
- OPT_END()
+ OPT_BOOL(0, "no-log", &nolog,
@@
- struct bisect_terms terms;
+ struct bisect_terms terms = { .term_good = NULL, .term_bad = NULL };
argc = parse_options(argc, argv, prefix, options,
- git_bisect_helper_usage, 0);
@@ -128,7 +127,7 @@
+ case BISECT_TERMS:
+ if (argc > 1)
+ return error(_("--bisect-terms requires 0 or 1 argument"));
-+ res = bisect_terms(&terms, argv, argc);
++ res = bisect_terms(&terms, argc == 1 ? argv[0] : NULL);
+ break;
default:
return error("BUG: unknown subcommand '%d'", cmdmode);
@@ -142,7 +141,7 @@
git bisect--helper --bisect-write "$command" "$rev" "$TERM_GOOD" "$TERM_BAD" || exit;;
terms)
- bisect_terms $rev ;;
-+ git bisect--helper --bisect-terms $rev || exit;;
++ git bisect--helper --bisect-terms $rev || exit;;
*)
die "$(gettext "?? what are you talking about?")" ;;
esac
7: e14e913797 ! 7: 87a033b858 bisect--helper: `bisect_start` shell function partially in C
@@ -6,7 +6,7 @@
`bisect-start` subcommand to `git bisect--helper` to call it from
git-bisect.sh .
- The last part is not converted because it calls another shell function
+ The last part is not converted because it calls another shell function.
`bisect_start` shell function will be completed after the `bisect_next`
shell function is ported in C.
@@ -18,12 +18,17 @@
Also introduce a method `bisect_append_log_quoted` to keep things short
and crisp.
+ Note that we are a bit lax about command-line parsing because the helper
+ is not supposed to be called by the user directly (but only from the git
+ bisect script).
+
Helped-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Helped-by: Stephan Beyer <s-beyer@gmx.net>
Mentored-by: Lars Schneider <larsxschneider@gmail.com>
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
+ Mentored-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Pranit Bauva <pranit.bauva@gmail.com>
- Signed-off-by: Junio C Hamano <gitster@pobox.com>
+ Signed-off-by: Tanushree Tumane <tanushreetumane@gmail.com>
diff --git a/builtin/bisect--helper.c b/builtin/bisect--helper.c
--- a/builtin/bisect--helper.c
@@ -47,10 +52,10 @@
N_("git bisect--helper --next-all [--no-checkout]"),
@@
N_("git bisect--helper --bisect-check-and-set-terms <command> <good_term> <bad_term>"),
- N_("git bisect--helper --bisect-next-check [<term>] <good_term> <bad_term>"),
+ N_("git bisect--helper --bisect-next-check <good_term> <bad_term> [<term>]"),
N_("git bisect--helper --bisect-terms [--term-good | --term-old | --term-bad | --term-new]"),
+ N_("git bisect--helper --bisect-start [--term-{old,good}=<term> --term-{new,bad}=<term>]"
-+ "[--no-checkout] [<bad> [<good>...]] [--] [<paths>...]"),
++ "[--no-checkout] [<bad> [<good>...]] [--] [<paths>...]"),
NULL
};
@@ -67,17 +72,15 @@
+ if (!fp)
+ return -1;
+
-+ if (fprintf(fp, "git bisect start") < 1)
-+ goto fail;
++ if (fprintf(fp, "git bisect start") < 1) {
++ retval = -1;
++ goto finish;
++ }
+
-+ sq_quote_argv(&orig_args, argv, 0);
++ sq_quote_argv(&orig_args, argv);
+ if (fprintf(fp, "%s\n", orig_args.buf) < 1)
-+ goto fail;
++ retval = -1;
+
-+ goto finish;
-+
-+fail:
-+ retval = -1;
+finish:
+ fclose(fp);
+ strbuf_release(&orig_args);
@@ -138,7 +141,7 @@
+ terms->term_bad = xstrdup(arg);
+ } else if (starts_with(arg, "--") &&
+ !one_of(arg, "--term-good", "--term-bad", NULL)) {
-+ return error(_("unrecognised option: '%s'"), arg);
++ return error(_("unrecognized option: '%s'"), arg);
+ } else {
+ char *commit_id = xstrfmt("%s^{commit}", arg);
+ if (get_oid(commit_id, &oid) && has_double_dash)
@@ -157,7 +160,8 @@
+ * set references named with the default terms, and won't be able
+ * to change afterwards.
+ */
-+ must_write_terms |= !!revs.nr;
++ if (revs.nr)
++ must_write_terms = 1;
+ for (i = 0; i < revs.nr; i++) {
+ if (bad_seen) {
+ string_list_append(&states, terms->term_good);
@@ -173,7 +177,7 @@
+ head = resolve_ref_unsafe("HEAD", 0, &head_oid, &flags);
+ if (!head)
+ if (get_oid("HEAD", &head_oid))
-+ return error(_("Bad HEAD - I need a HEAD"));
++ return error(_("bad HEAD - I need a HEAD"));
+
+ /*
+ * Check if we are bisecting
@@ -188,10 +192,11 @@
+ argv_array_pushl(&argv, "checkout", start_head.buf,
+ "--", NULL);
+ if (run_command_v_opt(argv.argv, RUN_GIT_CMD)) {
-+ error(_("checking out '%s' failed. Try 'git "
-+ "bisect start <valid-branch>'."),
-+ start_head.buf);
-+ goto fail;
++ retval = error(_("checking out '%s' failed."
++ " Try 'git bisect start "
++ "<valid-branch>'."),
++ start_head.buf);
++ goto finish;
+ }
+ }
+ } else {
@@ -199,7 +204,7 @@
+ if (!get_oid(head, &head_oid) &&
+ !starts_with(head, "refs/heads/")) {
+ strbuf_reset(&start_head);
-+ strbuf_addstr(&start_head, sha1_to_hex(head_oid.hash));
++ strbuf_addstr(&start_head, oid_to_hex(&head_oid));
+ } else if (!get_oid(head, &head_oid) &&
+ skip_prefix(head, "refs/heads/", &head)) {
+ /*
@@ -211,7 +216,7 @@
+ return error(_("won't bisect on cg-seek'ed tree"));
+ strbuf_addstr(&start_head, head);
+ } else {
-+ return error(_("Bad HEAD - strange symbolic ref"));
++ return error(_("bad HEAD - strange symbolic ref"));
+ }
+ }
+
@@ -236,31 +241,33 @@
+ if (no_checkout) {
+ get_oid(start_head.buf, &oid);
+ if (update_ref(NULL, "BISECT_HEAD", &oid, NULL, 0,
-+ UPDATE_REFS_MSG_ON_ERR))
-+ goto fail;
++ UPDATE_REFS_MSG_ON_ERR)) {
++ retval = -1;
++ goto finish;
++ }
+ }
+
+ if (pathspec_pos < argc - 1)
-+ sq_quote_argv(&bisect_names, argv + pathspec_pos, 0);
++ sq_quote_argv(&bisect_names, argv + pathspec_pos);
+ write_file(git_path_bisect_names(), "%s\n", bisect_names.buf);
+
+ for (i = 0; i < states.nr; i++)
+ if (bisect_write(states.items[i].string,
-+ revs.items[i].string, terms, 1))
-+ goto fail;
++ revs.items[i].string, terms, 1)) {
++ retval = -1;
++ goto finish;
++ }
+
-+ if (must_write_terms)
-+ if (write_terms(terms->term_bad, terms->term_good))
-+ goto fail;
++ if (must_write_terms && write_terms(terms->term_bad,
++ terms->term_good)) {
++ retval = -1;
++ goto finish;
++ }
+
+ retval = bisect_append_log_quoted(argv);
+ if (retval)
-+ goto fail;
-+
-+ goto finish;
++ retval = -1;
+
-+fail:
-+ retval = -1;
+finish:
+ string_list_clear(&revs, 0);
+ string_list_clear(&states, 0);
@@ -280,7 +287,7 @@
+ BISECT_TERMS,
+ BISECT_START
} cmdmode = 0;
- int no_checkout = 0, res = 0;
+ int no_checkout = 0, res = 0, nolog = 0;
struct option options[] = {
@@
N_("check whether bad or good terms exist"), BISECT_NEXT_CHECK),
@@ -290,9 +297,9 @@
+ N_("start the bisect session"), BISECT_START),
OPT_BOOL(0, "no-checkout", &no_checkout,
N_("update BISECT_HEAD instead of checking out the current commit")),
- OPT_END()
+ OPT_BOOL(0, "no-log", &nolog,
@@
- struct bisect_terms terms;
+ struct bisect_terms terms = { .term_good = NULL, .term_bad = NULL };
argc = parse_options(argc, argv, prefix, options,
- git_bisect_helper_usage, PARSE_OPT_KEEP_UNKNOWN);
@@ -303,7 +310,7 @@
usage_with_options(git_bisect_helper_usage, options);
@@
return error(_("--bisect-terms requires 0 or 1 argument"));
- res = bisect_terms(&terms, argv, argc);
+ res = bisect_terms(&terms, argc == 1 ? argv[0] : NULL);
break;
+ case BISECT_START:
+ set_terms(&terms, "bad", "good");
8: 161bbaced1 < -: ---------- t6030: make various test to pass GETTEXT_POISON tests
--
gitgitgadget
next prev parent reply other threads:[~2019-01-02 15:38 UTC|newest]
Thread overview: 320+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-12 22:35 [PATCH 0/9] Resend of gitster/pb/bisect Pranit Bauva
2016-07-12 22:35 ` [PATCH 1/9] bisect--helper: use OPT_CMDMODE instead of OPT_BOOL Pranit Bauva
2016-07-12 22:35 ` [PATCH 2/9] bisect: rewrite `check_term_format` shell function in C Pranit Bauva
2016-07-12 22:35 ` [PATCH 3/9] bisect--helper: `write_terms` " Pranit Bauva
2016-07-12 22:35 ` [PATCH 4/9] bisect--helper: `bisect_clean_state` " Pranit Bauva
2016-07-12 22:35 ` [PATCH 5/9] t6030: explicitly test for bisection cleanup Pranit Bauva
2016-07-12 22:35 ` [PATCH 6/9] wrapper: move is_empty_file() and rename it as is_empty_or_missing_file() Pranit Bauva
2016-07-12 22:35 ` [PATCH 7/9] bisect--helper: `bisect_reset` shell function in C Pranit Bauva
2016-07-12 22:35 ` [PATCH 8/9] bisect--helper: `is_expected_rev` & `check_expected_revs` " Pranit Bauva
2016-07-12 22:35 ` [PATCH 9/9] bisect--helper: `bisect_write` " Pranit Bauva
2016-07-13 7:47 ` [PATCH 0/9] Resend of gitster/pb/bisect Christian Couder
2016-07-20 16:00 ` Pranit Bauva
2016-07-20 21:47 ` [PATCH v10 01/12] bisect--helper: use OPT_CMDMODE instead of OPT_BOOL Pranit Bauva
2016-07-20 21:47 ` [PATCH v10 08/12] bisect--helper: `is_expected_rev` & `check_expected_revs` shell function in C Pranit Bauva
2016-07-20 21:47 ` [PATCH v10 02/12] bisect: rewrite `check_term_format` " Pranit Bauva
2016-07-20 21:47 ` [PATCH v10 09/12] bisect--helper: `bisect_write` " Pranit Bauva
2016-07-20 21:47 ` [PATCH v10 05/12] t6030: explicitly test for bisection cleanup Pranit Bauva
2016-07-20 21:47 ` [PATCH v10 11/12] bisect--helper: `bisect_next_check` shell function in C Pranit Bauva
2016-07-20 21:47 ` [PATCH v10 04/12] bisect--helper: `bisect_clean_state` " Pranit Bauva
2016-07-20 21:47 ` [PATCH v10 07/12] bisect--helper: `bisect_reset` " Pranit Bauva
2016-07-20 21:47 ` [PATCH v10 10/12] bisect--helper: `check_and_set_terms` " Pranit Bauva
2016-07-20 21:47 ` [PATCH v10 03/12] bisect--helper: `write_terms` " Pranit Bauva
2016-07-20 21:47 ` [PATCH v10 12/12] bisect--helper: `get_terms` & `bisect_terms` " Pranit Bauva
2016-07-22 2:29 ` Torsten Bögershausen
2016-07-22 14:07 ` Pranit Bauva
2016-07-25 16:53 ` Junio C Hamano
2016-07-25 21:28 ` Christian Couder
2016-07-26 1:42 ` Torsten Bögershausen
2016-07-26 17:32 ` Junio C Hamano
2016-07-27 4:20 ` Pranit Bauva
2016-07-27 16:13 ` Junio C Hamano
2016-07-20 21:47 ` [PATCH v10 06/12] wrapper: move is_empty_file() and rename it as is_empty_or_missing_file() Pranit Bauva
2016-07-31 9:21 ` [RFC/PATCH v11 01/13] bisect--helper: use OPT_CMDMODE instead of OPT_BOOL Pranit Bauva
2016-07-31 9:21 ` [RFC/PATCH v11 06/13] wrapper: move is_empty_file() and rename it as is_empty_or_missing_file() Pranit Bauva
2016-07-31 9:21 ` [RFC/PATCH v11 03/13] bisect--helper: `write_terms` shell function in C Pranit Bauva
2016-08-02 17:38 ` Junio C Hamano
2016-08-03 20:21 ` Pranit Bauva
2016-08-04 15:39 ` Junio C Hamano
2016-07-31 9:21 ` [RFC/PATCH v11 09/13] bisect--helper: `bisect_write` " Pranit Bauva
2016-08-02 20:25 ` Junio C Hamano
2016-08-02 22:17 ` Junio C Hamano
2016-08-03 20:52 ` Pranit Bauva
2016-08-03 20:51 ` Pranit Bauva
2016-07-31 9:21 ` [RFC/PATCH v11 12/13] bisect--helper: `get_terms` & `bisect_terms` " Pranit Bauva
2016-08-02 19:22 ` Junio C Hamano
2016-08-03 20:33 ` Pranit Bauva
2016-07-31 9:21 ` [RFC/PATCH v11 07/13] bisect--helper: `bisect_reset` " Pranit Bauva
2016-08-02 18:44 ` Junio C Hamano
2016-07-31 9:21 ` [RFC/PATCH v11 05/13] t6030: explicitly test for bisection cleanup Pranit Bauva
2016-07-31 9:21 ` [RFC/PATCH v11 04/13] bisect--helper: `bisect_clean_state` shell function in C Pranit Bauva
2016-08-02 17:46 ` Junio C Hamano
2016-08-03 20:27 ` Pranit Bauva
2016-08-04 15:45 ` Junio C Hamano
2016-08-04 16:07 ` Pranit Bauva
2016-08-04 16:50 ` Junio C Hamano
2016-08-04 16:57 ` Pranit Bauva
2016-07-31 9:21 ` [RFC/PATCH v11 11/13] bisect--helper: `bisect_next_check` " Pranit Bauva
2016-08-02 19:17 ` Junio C Hamano
2016-08-03 20:33 ` Pranit Bauva
2016-07-31 9:21 ` [RFC/PATCH v11 02/13] bisect: rewrite `check_term_format` " Pranit Bauva
2016-08-02 17:31 ` Junio C Hamano
2016-08-03 20:20 ` Pranit Bauva
2016-07-31 9:21 ` [RFC/PATCH v11 10/13] bisect--helper: `check_and_set_terms` " Pranit Bauva
2016-08-02 18:53 ` Junio C Hamano
2016-08-03 20:29 ` Pranit Bauva
2016-07-31 9:21 ` [RFC/PATCH v11 13/13] bisect--helper: `bisect_start` shell function partially " Pranit Bauva
2016-08-02 20:19 ` Junio C Hamano
2016-08-03 20:49 ` Pranit Bauva
2016-07-31 9:21 ` [RFC/PATCH v11 08/13] bisect--helper: `is_expected_rev` & `check_expected_revs` shell function " Pranit Bauva
2016-08-02 18:46 ` Junio C Hamano
2016-08-02 17:25 ` [RFC/PATCH v11 01/13] bisect--helper: use OPT_CMDMODE instead of OPT_BOOL Junio C Hamano
2016-08-10 21:57 ` [PATCH v12 " Pranit Bauva
2016-08-10 21:57 ` [PATCH v12 12/13] bisect--helper: `get_terms` & `bisect_terms` shell function in C Pranit Bauva
2016-08-10 21:57 ` [PATCH v12 10/13] bisect--helper: `check_and_set_terms` " Pranit Bauva
2016-08-10 21:57 ` [PATCH v12 13/13] bisect--helper: `bisect_start` shell function partially " Pranit Bauva
2016-08-12 19:25 ` Junio C Hamano
2016-08-13 6:33 ` Pranit Bauva
2016-08-13 7:34 ` Christian Couder
2016-08-13 13:50 ` Pranit Bauva
2016-08-10 21:57 ` [PATCH v12 03/13] bisect--helper: `write_terms` shell function " Pranit Bauva
2016-08-10 21:57 ` [PATCH v12 08/13] bisect--helper: `is_expected_rev` & `check_expected_revs` " Pranit Bauva
2016-08-10 21:57 ` [PATCH v12 04/13] bisect--helper: `bisect_clean_state` " Pranit Bauva
2016-08-12 19:24 ` Junio C Hamano
2016-08-10 21:57 ` [PATCH v12 11/13] bisect--helper: `bisect_next_check` & bisect_voc " Pranit Bauva
2016-08-12 18:11 ` Junio C Hamano
2016-08-12 18:49 ` Junio C Hamano
2016-08-13 6:32 ` Pranit Bauva
2016-08-10 21:57 ` [PATCH v12 09/13] bisect--helper: `bisect_write` " Pranit Bauva
2016-08-10 21:57 ` [PATCH v12 02/13] bisect: rewrite `check_term_format` " Pranit Bauva
2016-08-10 21:57 ` [PATCH v12 06/13] wrapper: move is_empty_file() and rename it as is_empty_or_missing_file() Pranit Bauva
2016-08-10 21:57 ` [PATCH v12 07/13] bisect--helper: `bisect_reset` shell function in C Pranit Bauva
2016-08-10 21:57 ` [PATCH v12 05/13] t6030: explicitly test for bisection cleanup Pranit Bauva
2016-08-10 22:19 ` [PATCH v12 01/13] bisect--helper: use OPT_CMDMODE instead of OPT_BOOL Pranit Bauva
2016-08-19 20:32 ` [PATCH v13 " Pranit Bauva
2016-08-19 20:32 ` [PATCH v13 12/13] bisect--helper: `get_terms` & `bisect_terms` shell function in C Pranit Bauva
2016-08-19 20:32 ` [PATCH v13 11/13] bisect--helper: `bisect_next_check` & bisect_voc " Pranit Bauva
2016-08-19 20:32 ` [PATCH v13 06/13] wrapper: move is_empty_file() and rename it as is_empty_or_missing_file() Pranit Bauva
2016-08-19 20:32 ` [PATCH v13 07/13] bisect--helper: `bisect_reset` shell function in C Pranit Bauva
2016-08-19 20:32 ` [PATCH v13 03/13] bisect--helper: `write_terms` " Pranit Bauva
2016-08-19 20:32 ` [PATCH v13 09/13] bisect--helper: `bisect_write` " Pranit Bauva
2016-08-19 20:32 ` [PATCH v13 13/13] bisect--helper: `bisect_start` shell function partially " Pranit Bauva
2016-08-19 20:32 ` [PATCH v13 02/13] bisect: rewrite `check_term_format` shell function " Pranit Bauva
2016-08-19 20:32 ` [PATCH v13 04/13] bisect--helper: `bisect_clean_state` " Pranit Bauva
2016-08-21 11:18 ` Pranit Bauva
2016-08-19 20:32 ` [PATCH v13 08/13] bisect--helper: `is_expected_rev` & `check_expected_revs` " Pranit Bauva
2016-08-19 20:32 ` [PATCH v13 10/13] bisect--helper: `check_and_set_terms` " Pranit Bauva
2016-08-19 20:32 ` [PATCH v13 05/13] t6030: explicitly test for bisection cleanup Pranit Bauva
2016-08-21 11:14 ` [PATCH v13 01/13] bisect--helper: use OPT_CMDMODE instead of OPT_BOOL Pranit Bauva
2016-08-23 11:53 ` [PATCH v14 01/27] " Pranit Bauva
2016-08-23 11:53 ` [PATCH v14 06/27] wrapper: move is_empty_file() and rename it as is_empty_or_missing_file() Pranit Bauva
2016-08-23 11:53 ` [PATCH v14 10/27] bisect--helper: `check_and_set_terms` shell function in C Pranit Bauva
2016-08-23 11:53 ` [PATCH v14 26/27] bisect--helper: retire `--bisect-auto-next` subcommand Pranit Bauva
2016-08-23 11:53 ` [PATCH v14 27/27] bisect--helper: remove the dequote in bisect_start() Pranit Bauva
2016-08-23 11:53 ` [PATCH v14 20/27] bisect--helper: retire `--write-terms` subcommand Pranit Bauva
2016-08-23 11:53 ` [PATCH v14 11/27] bisect--helper: `bisect_next_check` & bisect_voc shell function in C Pranit Bauva
2016-08-24 22:40 ` Junio C Hamano
2016-08-27 9:35 ` Pranit Bauva
2016-08-23 11:53 ` [PATCH v14 22/27] bisect--helper: `bisect_replay` " Pranit Bauva
2016-08-26 23:24 ` Junio C Hamano
2016-08-23 11:53 ` [PATCH v14 08/27] bisect--helper: `is_expected_rev` & `check_expected_revs` " Pranit Bauva
2016-08-24 22:13 ` Junio C Hamano
2016-08-27 9:14 ` Pranit Bauva
2016-08-29 17:17 ` Junio C Hamano
2016-08-23 11:53 ` [PATCH v14 19/27] bisect--helper: retire `--check-expected-revs` subcommand Pranit Bauva
2016-08-23 11:53 ` [PATCH v14 03/27] bisect--helper: `write_terms` shell function in C Pranit Bauva
2016-08-23 11:53 ` [PATCH v14 05/27] t6030: explicitly test for bisection cleanup Pranit Bauva
2016-08-23 11:53 ` [PATCH v14 02/27] bisect: rewrite `check_term_format` shell function in C Pranit Bauva
2016-08-23 11:53 ` [PATCH v14 13/27] bisect--helper: `bisect_start` shell function partially " Pranit Bauva
2016-08-25 19:02 ` Junio C Hamano
2016-08-25 19:43 ` Junio C Hamano
2016-08-27 19:47 ` Pranit Bauva
2016-08-27 20:53 ` Junio C Hamano
2016-08-23 11:53 ` [PATCH v14 17/27] bisect--helper: `bisect_autostart` shell function " Pranit Bauva
2016-08-26 21:09 ` Junio C Hamano
2016-08-23 11:53 ` [PATCH v14 23/27] bisect--helper: retire `--bisect-write` subcommand Pranit Bauva
2016-08-23 11:53 ` [PATCH v14 21/27] bisect--helper: `bisect_log` shell function in C Pranit Bauva
2016-08-26 23:07 ` Junio C Hamano
2016-08-27 20:16 ` Pranit Bauva
2016-08-23 11:53 ` [PATCH v14 07/27] bisect--helper: `bisect_reset` " Pranit Bauva
2016-08-24 21:12 ` Junio C Hamano
2016-08-26 13:46 ` Pranit Bauva
2016-08-26 16:29 ` Junio C Hamano
2016-08-27 10:52 ` Pranit Bauva
2016-08-29 17:06 ` Junio C Hamano
2016-08-23 11:53 ` [PATCH v14 15/27] bisect--helper: retire `--bisect-clean-state` subcommand Pranit Bauva
2016-08-26 20:56 ` Junio C Hamano
2016-08-23 11:53 ` [PATCH v14 14/27] bisect--helper: `bisect_next` and `bisect_auto_next` shell function in C Pranit Bauva
2016-08-25 20:30 ` Junio C Hamano
2016-08-30 18:25 ` Pranit Bauva
2016-08-30 18:44 ` Pranit Bauva
2016-08-30 19:33 ` Junio C Hamano
2016-08-30 20:17 ` Pranit Bauva
2016-08-23 11:53 ` [PATCH v14 25/27] bisect--helper: retire `--bisect-autostart` subcommand Pranit Bauva
2016-08-23 11:53 ` [PATCH v14 09/27] bisect--helper: `bisect_write` shell function in C Pranit Bauva
2016-08-24 22:30 ` Junio C Hamano
2016-08-27 9:33 ` Pranit Bauva
2016-08-27 21:22 ` Junio C Hamano
2016-08-30 6:42 ` Pranit Bauva
2016-08-23 11:53 ` [PATCH v14 12/27] bisect--helper: `get_terms` & `bisect_terms` " Pranit Bauva
2016-08-25 18:05 ` Junio C Hamano
2016-08-27 9:48 ` Pranit Bauva
2016-08-29 17:15 ` Junio C Hamano
2016-08-23 11:53 ` [PATCH v14 24/27] bisect--helper: retire `--check-and-set-terms` subcommand Pranit Bauva
2016-08-23 11:53 ` [PATCH v14 16/27] bisect--helper: retire `--next-all` subcommand Pranit Bauva
2016-08-23 11:53 ` [PATCH v14 18/27] bisect--helper: `bisect_state` & `bisect_head` shell function in C Pranit Bauva
2016-08-23 11:53 ` [PATCH v14 04/27] bisect--helper: `bisect_clean_state` " Pranit Bauva
2016-08-24 20:58 ` Junio C Hamano
2016-08-23 20:28 ` [PATCH v14 01/27] bisect--helper: use OPT_CMDMODE instead of OPT_BOOL Junio C Hamano
2016-08-23 21:07 ` Pranit Bauva
2016-08-23 21:24 ` Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 " Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 02/27] bisect: rewrite `check_term_format` shell function in C Pranit Bauva
2016-11-14 22:20 ` Stephan Beyer
2016-11-15 5:16 ` Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 05/27] t6030: explicitly test for bisection cleanup Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 03/27] bisect--helper: `write_terms` shell function in C Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 25/27] bisect--helper: retire `--bisect-autostart` subcommand Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 11/27] bisect--helper: `bisect_next_check` & bisect_voc shell function in C Pranit Bauva
2016-11-17 20:59 ` Stephan Beyer
2016-12-06 18:39 ` Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 23/27] bisect--helper: `bisect_replay` " Pranit Bauva
2016-11-22 0:49 ` Stephan Beyer
2016-12-06 23:02 ` Pranit Bauva
2016-12-06 23:20 ` Stephan Beyer
2016-12-06 23:40 ` Stephan Beyer
2016-12-07 13:15 ` Christian Couder
2016-10-14 14:14 ` [PATCH v15 15/27] bisect--helper: `bisect_next` and `bisect_auto_next` " Pranit Bauva
2016-11-20 20:01 ` Stephan Beyer
2016-12-31 10:23 ` Pranit Bauva
2016-11-21 21:35 ` Stephan Beyer
2016-12-31 10:43 ` Pranit Bauva
2017-01-01 16:27 ` Stephan Beyer
2017-01-01 17:41 ` Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 16/27] bisect--helper: retire `--bisect-clean-state` subcommand Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 12/27] bisect--helper: `get_terms` & `bisect_terms` shell function in C Pranit Bauva
2016-11-17 21:32 ` Stephan Beyer
2016-12-06 21:14 ` Pranit Bauva
2016-12-06 23:05 ` Stephan Beyer
2016-12-07 12:06 ` Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 14/27] t6030: no cleanup with bad merge base Pranit Bauva
2016-10-14 21:43 ` Junio C Hamano
2016-10-15 8:46 ` Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 08/27] bisect--helper: `is_expected_rev` & `check_expected_revs` shell function in C Pranit Bauva
2016-11-16 23:47 ` Stephan Beyer
2016-12-06 19:33 ` Pranit Bauva
2016-12-16 19:00 ` Pranit Bauva
2016-12-17 19:42 ` Stephan Beyer
2016-12-16 19:35 ` Pranit Bauva
2016-12-17 19:55 ` Stephan Beyer
2016-10-14 14:14 ` [PATCH v15 20/27] bisect--helper: retire `--check-expected-revs` subcommand Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 06/27] wrapper: move is_empty_file() and rename it as is_empty_or_missing_file() Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 21/27] bisect--helper: retire `--write-terms` subcommand Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 26/27] bisect--helper: retire `--bisect-auto-next` subcommand Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 17/27] bisect--helper: retire `--next-all` subcommand Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 13/27] bisect--helper: `bisect_start` shell function partially in C Pranit Bauva
2016-11-15 23:19 ` Stephan Beyer
2016-11-16 17:09 ` Pranit Bauva
2016-11-20 20:01 ` Stephan Beyer
2016-11-20 20:19 ` Stephan Beyer
2016-10-14 14:14 ` [PATCH v15 22/27] bisect--helper: `bisect_log` shell function " Pranit Bauva
2016-11-17 21:47 ` Stephan Beyer
2016-12-06 22:42 ` Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 09/27] bisect--helper: `bisect_write` " Pranit Bauva
2016-11-17 9:40 ` Stephan Beyer
2016-12-06 21:32 ` Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 07/27] bisect--helper: `bisect_reset` " Pranit Bauva
2016-11-16 23:23 ` Stephan Beyer
2016-11-17 3:56 ` Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 24/27] bisect--helper: retire `--bisect-write` subcommand Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 19/27] bisect--helper: `bisect_state` & `bisect_head` shell function in C Pranit Bauva
2016-11-22 0:12 ` Stephan Beyer
2016-12-06 22:40 ` Pranit Bauva
2016-12-06 23:54 ` Stephan Beyer
2016-12-08 6:43 ` Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 10/27] bisect--helper: `check_and_set_terms` " Pranit Bauva
2016-11-17 20:25 ` Stephan Beyer
2016-12-06 22:43 ` Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 27/27] bisect--helper: remove the dequote in bisect_start() Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 04/27] bisect--helper: `bisect_clean_state` shell function in C Pranit Bauva
2016-11-15 21:09 ` Stephan Beyer
2016-11-15 21:40 ` Junio C Hamano
2016-11-15 21:53 ` Stephan Beyer
2016-11-16 16:49 ` Pranit Bauva
2016-10-14 14:14 ` [PATCH v15 18/27] bisect--helper: `bisect_autostart` " Pranit Bauva
2016-11-20 20:15 ` Stephan Beyer
2016-12-06 19:47 ` Pranit Bauva
2016-10-14 15:12 ` [PATCH v15 01/27] bisect--helper: use OPT_CMDMODE instead of OPT_BOOL Pranit Bauva
2017-09-29 6:49 ` [PATCH v16 1/6] " Pranit Bauva
2017-09-29 6:49 ` [PATCH v16 2/6] bisect--helper: rewrite `check_term_format` shell function in C Pranit Bauva
2017-09-29 6:49 ` [PATCH v16 4/6] bisect--helper: `bisect_clean_state` " Pranit Bauva
2017-09-29 6:49 ` [PATCH v16 3/6] bisect--helper: `write_terms` " Pranit Bauva
2017-09-29 6:49 ` [PATCH v16 5/6] t6030: explicitly test for bisection cleanup Pranit Bauva
2017-09-29 6:49 ` [PATCH v16 6/6] bisect--helper: `is_expected_rev` & `check_expected_revs` shell function in C Pranit Bauva
2017-11-19 20:34 ` Christian Couder
2017-11-20 3:05 ` Junio C Hamano
2017-11-20 7:03 ` Christian Couder
2017-09-29 18:54 ` [PATCH v16 1/6] bisect--helper: use OPT_CMDMODE instead of OPT_BOOL Stephan Beyer
2017-09-29 21:10 ` Pranit Bauva
2017-09-30 12:59 ` Ramsay Jones
2017-10-02 13:44 ` Pranit Bauva
2017-10-03 0:48 ` Ramsay Jones
2017-10-03 3:51 ` Junio C Hamano
2017-10-03 4:35 ` Pranit Bauva
2017-10-04 2:22 ` Ramsay Jones
2017-10-04 4:07 ` Junio C Hamano
2017-10-27 15:06 ` [PATCH v16 Part II 1/8] bisect--helper: `bisect_reset` shell function in C Pranit Bauva
2017-10-27 15:06 ` [PATCH v16 Part II 7/8] bisect--helper: `bisect_start` shell function partially " Pranit Bauva
2017-10-30 16:51 ` Stephan Beyer
2017-10-30 17:28 ` Pranit Bauva
2018-02-16 1:22 ` SZEDER Gábor
2017-10-27 15:06 ` [PATCH v16 Part II 4/8] bisect--helper: `check_and_set_terms` shell function " Pranit Bauva
2017-11-08 0:37 ` Ramsay Jones
2017-10-27 15:06 ` [PATCH v16 Part II 2/8] bisect--helper: `bisect_write` " Pranit Bauva
2017-10-27 17:28 ` Martin Ågren
2017-10-30 17:35 ` Pranit Bauva
2018-11-23 10:13 ` Johannes Schindelin
2018-11-23 12:22 ` Martin Ågren
2018-11-26 18:18 ` Johannes Schindelin
2017-10-27 18:19 ` Junio C Hamano
2017-10-30 17:38 ` Pranit Bauva
2017-10-30 13:38 ` Stephan Beyer
2017-10-30 16:24 ` Stephan Beyer
2017-11-08 0:26 ` Ramsay Jones
2017-10-27 15:06 ` [PATCH v16 Part II 3/8] wrapper: move is_empty_file() and rename it as is_empty_or_missing_file() Pranit Bauva
2017-10-27 15:06 ` [PATCH v16 Part II 8/8] t6030: make various test to pass GETTEXT_POISON tests Pranit Bauva
2017-10-27 15:06 ` [PATCH v16 Part II 6/8] bisect--helper: `get_terms` & `bisect_terms` shell function in C Pranit Bauva
2017-10-27 20:04 ` Martin Ågren
2017-10-30 17:45 ` Pranit Bauva
2017-10-30 16:34 ` Stephan Beyer
2017-10-30 17:31 ` Pranit Bauva
2017-11-08 0:59 ` Ramsay Jones
2017-10-27 15:06 ` [PATCH v16 Part II 5/8] bisect--helper: `bisect_next_check` " Pranit Bauva
2017-10-27 17:35 ` Martin Ågren
2017-10-30 17:40 ` Pranit Bauva
2017-11-08 0:48 ` Ramsay Jones
2017-11-12 19:19 ` Stephan Beyer
2017-11-12 19:27 ` Stephan Beyer
2017-11-12 20:03 ` Stephan Beyer
2017-11-13 3:56 ` Junio C Hamano
2017-10-27 15:32 ` [PATCH v16 Part II 1/8] bisect--helper: `bisect_reset` " Pranit Bauva
2017-10-27 17:40 ` Junio C Hamano
2017-10-30 17:26 ` Pranit Bauva
2017-10-30 13:22 ` Stephan Beyer
2017-10-30 17:27 ` Pranit Bauva
2017-11-08 0:07 ` Ramsay Jones
2019-01-02 15:38 ` Tanushree Tumane via GitGitGadget [this message]
2019-01-02 15:38 ` [PATCH v17 1/7] " Pranit Bauva via GitGitGadget
2019-01-02 15:38 ` [PATCH v17 3/7] wrapper: move is_empty_file() and rename it as is_empty_or_missing_file() Pranit Bauva via GitGitGadget
2019-01-02 15:38 ` [PATCH v17 2/7] bisect--helper: `bisect_write` shell function in C Pranit Bauva via GitGitGadget
2019-01-02 15:38 ` [PATCH v17 4/7] bisect--helper: `check_and_set_terms` " Pranit Bauva via GitGitGadget
2019-01-02 15:38 ` [PATCH v17 5/7] bisect--helper: `bisect_next_check` " Pranit Bauva via GitGitGadget
2019-01-02 15:38 ` [PATCH v17 6/7] bisect--helper: `get_terms` & `bisect_terms` " Pranit Bauva via GitGitGadget
2019-01-02 15:38 ` [PATCH v17 7/7] bisect--helper: `bisect_start` shell function partially " Pranit Bauva via GitGitGadget
2019-01-03 1:19 ` [PATCH v17 0/7] git bisect: convert from shell to C Ramsay Jones
2019-01-07 9:15 ` TANUSHREE TUMANE
2016-10-27 16:59 ` [PATCH v15 01/27] bisect--helper: use OPT_CMDMODE instead of OPT_BOOL Junio C Hamano
2016-10-27 20:14 ` Christian Couder
2016-10-28 6:02 ` Matthieu Moy
2016-11-15 21:40 ` Stephan Beyer
2016-11-16 0:18 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=pull.101.v17.git.gitgitgadget@gmail.com \
--to=gitgitgadget@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).