<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-bisect.sh, branch v2.30.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.30.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.30.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2020-11-09T22:06:25Z</updated>
<entry>
<title>Merge branch 'mr/bisect-in-c-3'</title>
<updated>2020-11-09T22:06:25Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-11-09T22:06:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cfdc70b29935d3e7aa30d679e0076441f70a8ffe'/>
<id>urn:sha1:cfdc70b29935d3e7aa30d679e0076441f70a8ffe</id>
<content type='text'>
Rewriting "git bisect" in C continues.

* mr/bisect-in-c-3:
  bisect--helper: retire `--bisect-autostart` subcommand
  bisect--helper: retire `--write-terms` subcommand
  bisect--helper: retire `--check-expected-revs` subcommand
  bisect--helper: reimplement `bisect_state` &amp; `bisect_head` shell functions in C
  bisect--helper: retire `--next-all` subcommand
  bisect--helper: retire `--bisect-clean-state` subcommand
  bisect--helper: finish porting `bisect_start()` to C
</content>
</entry>
<entry>
<title>bisect--helper: reimplement `bisect_state` &amp; `bisect_head` shell functions in C</title>
<updated>2020-10-16T19:24:20Z</updated>
<author>
<name>Pranit Bauva</name>
<email>pranit.bauva@gmail.com</email>
</author>
<published>2020-10-15T13:38:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=27257bc4661ed7ffb715922693c7a2bee136824c'/>
<id>urn:sha1:27257bc4661ed7ffb715922693c7a2bee136824c</id>
<content type='text'>
Reimplement the `bisect_state()` shell functions in C and also add a
subcommand `--bisect-state` to `git-bisect--helper` to call them from
git-bisect.sh .

Using `--bisect-state` subcommand is a temporary measure to port shell
function to C so as to use the existing test suite. As more functions
are ported, this subcommand will be retired and will be called by some
other methods.

`bisect_head()` is only called from `bisect_state()`, thus it is not
required to introduce another subcommand.

Note that the `eval` in the changed line of `git-bisect.sh` cannot be
dropped: it is necessary because the `rev` and the `tail`
variables may contain multiple, quoted arguments that need to be
passed to `bisect--helper` (without the quotes, naturally).

Mentored-by: Lars Schneider &lt;larsxschneider@gmail.com&gt;
Mentored-by: Christian Couder &lt;chriscool@tuxfamily.org&gt;
Mentored-by: Johannes Schindelin &lt;Johannes.Schindelin@gmx.de&gt;
Signed-off-by: Pranit Bauva &lt;pranit.bauva@gmail.com&gt;
Signed-off-by: Tanushree Tumane &lt;tanushreetumane@gmail.com&gt;
Signed-off-by: Miriam Rubio &lt;mirucam@gmail.com&gt;
Reviewed-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bisect--helper: finish porting `bisect_start()` to C</title>
<updated>2020-10-16T19:24:20Z</updated>
<author>
<name>Pranit Bauva</name>
<email>pranit.bauva@gmail.com</email>
</author>
<published>2020-10-15T13:38:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=88ad372fc02c119a4e44ae71c93b6fab9d998512'/>
<id>urn:sha1:88ad372fc02c119a4e44ae71c93b6fab9d998512</id>
<content type='text'>
Add the subcommand to `git bisect--helper` and call it from
git-bisect.sh.

With the conversion of `bisect_auto_next()` from shell to C in a
previous commit, `bisect_start()` can now be fully ported to C.

So let's complete the `--bisect-start` subcommand of
`git bisect--helper` so that it fully implements `bisect_start()`,
and let's use this subcommand in `git-bisect.sh` instead of
`bisect_start()`.

Note that the `eval` in the changed line of `git-bisect.sh` cannot be
dropped: it is necessary because the `rev` and the `tail`
variables may contain multiple, quoted arguments that need to be
passed to `bisect--helper` (without the quotes, naturally).

Mentored-by: Christian Couder &lt;chriscool@tuxfamily.org&gt;
Mentored-by: Johannes Schindelin &lt;Johannes.Schindelin@gmx.de&gt;
Signed-off-by: Pranit Bauva &lt;pranit.bauva@gmail.com&gt;
Signed-off-by: Tanushree Tumane &lt;tanushreetumane@gmail.com&gt;
Signed-off-by: Miriam Rubio &lt;mirucam@gmail.com&gt;
Reviewed-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'mr/bisect-in-c-2'</title>
<updated>2020-10-04T19:49:08Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-10-04T19:49:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f4cc68cbd078d5c0dd707384c802510261c67a28'/>
<id>urn:sha1:f4cc68cbd078d5c0dd707384c802510261c67a28</id>
<content type='text'>
Rewrite of the "git bisect" script in C continues.

* mr/bisect-in-c-2:
  bisect--helper: reimplement `bisect_next` and `bisect_auto_next` shell functions in C
  bisect: call 'clear_commit_marks_all()' in 'bisect_next_all()'
  bisect--helper: reimplement `bisect_autostart` shell function in C
  bisect--helper: introduce new `write_in_file()` function
  bisect--helper: use '-res' in 'cmd_bisect__helper' return
  bisect--helper: BUG() in cmd_*() on invalid subcommand
</content>
</entry>
<entry>
<title>bisect--helper: reimplement `bisect_next` and `bisect_auto_next` shell functions in C</title>
<updated>2020-09-24T19:06:30Z</updated>
<author>
<name>Pranit Bauva</name>
<email>pranit.bauva@gmail.com</email>
</author>
<published>2020-09-24T12:33:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=517ecb3161daa4503f7638489fd44177b3659913'/>
<id>urn:sha1:517ecb3161daa4503f7638489fd44177b3659913</id>
<content type='text'>
Reimplement the `bisect_next()` and the `bisect_auto_next()` shell functions
in C and add the subcommands to `git bisect--helper` to call them from
git-bisect.sh .

bisect_auto_next() function returns an enum bisect_error type as whole
`git bisect` can exit with an error code when bisect_next() does.

Return an error when `bisect_next()` fails, that fix a bug on shell script
version.

Using `--bisect-next` and `--bisect-auto-next` subcommands is a
temporary measure to port shell function to C so as to use the existing
test suite. As more functions are ported, `--bisect-auto-next`
subcommand will be retired and will be called by some other methods.

Mentored-by: Lars Schneider &lt;larsxschneider@gmail.com&gt;
Mentored-by: Christian Couder &lt;chriscool@tuxfamily.org&gt;
Mentored-by: Johannes Schindelin &lt;Johannes.Schindelin@gmx.de&gt;
Signed-off-by: Pranit Bauva &lt;pranit.bauva@gmail.com&gt;
Signed-off-by: Tanushree Tumane &lt;tanushreetumane@gmail.com&gt;
Signed-off-by: Miriam Rubio &lt;mirucam@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bisect--helper: reimplement `bisect_autostart` shell function in C</title>
<updated>2020-09-24T19:06:30Z</updated>
<author>
<name>Pranit Bauva</name>
<email>pranit.bauva@gmail.com</email>
</author>
<published>2020-09-24T12:33:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=09535f056b08445e28c4881064b8435fb434d760'/>
<id>urn:sha1:09535f056b08445e28c4881064b8435fb434d760</id>
<content type='text'>
Reimplement the `bisect_autostart()` shell function in C and add the
C implementation from `bisect_next()` which was previously left
uncovered.

Add `--bisect-autostart` subcommand to be called from git-bisect.sh.
Using `--bisect-autostart` subcommand is a temporary measure to port
the shell function to C so as to use the existing test suite. As more
functions are ported, this subcommand will be retired and
bisect_autostart() will be called directly by `bisect_state()`.

Change behavior of shell script that returned success when user aborted
the bisection.

Mentored-by: Lars Schneider &lt;larsxschneider@gmail.com&gt;
Mentored-by: Christian Couder &lt;chriscool@tuxfamily.org&gt;
Mentored-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Pranit Bauva &lt;pranit.bauva@gmail.com&gt;
Signed-off-by: Tanushree Tumane &lt;tanushreetumane@gmail.com&gt;
Signed-off-by: Miriam Rubio &lt;mirucam@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'hl/bisect-doc-clarify-bad-good-ordering'</title>
<updated>2020-09-03T19:37:06Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-09-03T19:37:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=da6b99c39abee3f6882ac35814485330bd344dfd'/>
<id>urn:sha1:da6b99c39abee3f6882ac35814485330bd344dfd</id>
<content type='text'>
Doc update.

* hl/bisect-doc-clarify-bad-good-ordering:
  bisect: swap command-line options in documentation
</content>
</entry>
<entry>
<title>Merge branch 'al/bisect-first-parent'</title>
<updated>2020-08-31T22:49:49Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2020-08-31T22:49:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b9ccc5e2b445c048b2165eef0cde103eb00c1673'/>
<id>urn:sha1:b9ccc5e2b445c048b2165eef0cde103eb00c1673</id>
<content type='text'>
Finishing touches.

* al/bisect-first-parent:
  bisect: add first-parent option to documentation
</content>
</entry>
<entry>
<title>bisect: swap command-line options in documentation</title>
<updated>2020-08-28T21:06:06Z</updated>
<author>
<name>Hugo Locurcio</name>
<email>hugo.locurcio@hugo.pro</email>
</author>
<published>2020-08-28T15:31:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ef4d9f8a32f472feacb135c4e0508d53d0f93fb0'/>
<id>urn:sha1:ef4d9f8a32f472feacb135c4e0508d53d0f93fb0</id>
<content type='text'>
The positional arguments are specified in this order: "bad" then "good".
To avoid confusion, the options above the positional arguments
are now specified in the same order. They can still be specified in any
order since they're options, not positional arguments.

Signed-off-by: Hugo Locurcio &lt;hugo.locurcio@hugo.pro&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bisect: add first-parent option to documentation</title>
<updated>2020-08-22T21:03:35Z</updated>
<author>
<name>Aaron Lipman</name>
<email>alipman88@gmail.com</email>
</author>
<published>2020-08-22T20:32:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6028f5f661d5e701f410a8183d69f22871456ef7'/>
<id>urn:sha1:6028f5f661d5e701f410a8183d69f22871456ef7</id>
<content type='text'>
Ensure that the [--first-parent] option is listed in the output of
"git bisect -h".

Signed-off-by: Aaron Lipman &lt;alipman88@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
