<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/bisect.h, branch v2.20.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.20.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.20.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2018-08-15T18:52:09Z</updated>
<entry>
<title>Add missing includes and forward declarations</title>
<updated>2018-08-15T18:52:09Z</updated>
<author>
<name>Elijah Newren</name>
<email>newren@gmail.com</email>
</author>
<published>2018-08-15T17:54:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ef3ca95475ce467ae883cc8175ed40e6f7d27800'/>
<id>urn:sha1:ef3ca95475ce467ae883cc8175ed40e6f7d27800</id>
<content type='text'>
I looped over the toplevel header files, creating a temporary two-line C
program for each consisting of
  #include "git-compat-util.h"
  #include $HEADER
This patch is the result of manually fixing errors in compiling those
tiny programs.

Signed-off-by: Elijah Newren &lt;newren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ma/bisect-leakfix'</title>
<updated>2017-11-15T03:14:28Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-11-15T03:14:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f116163171b875f9b58c6f6755bec85460e9b8b8'/>
<id>urn:sha1:f116163171b875f9b58c6f6755bec85460e9b8b8</id>
<content type='text'>
Leak fixes.

* ma/bisect-leakfix:
  bisect: fix memory leak when returning best element
  bisect: fix off-by-one error in `best_bisection_sorted()`
  bisect: fix memory leak in `find_bisection()`
  bisect: change calling-convention of `find_bisection()`
</content>
</entry>
<entry>
<title>bisect: change calling-convention of `find_bisection()`</title>
<updated>2017-11-06T01:15:29Z</updated>
<author>
<name>Martin Ågren</name>
<email>martin.agren@gmail.com</email>
</author>
<published>2017-11-05T20:24:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=24d707f636f01d41f708a010f255dd46a8fce08c'/>
<id>urn:sha1:24d707f636f01d41f708a010f255dd46a8fce08c</id>
<content type='text'>
This function takes a commit list and returns a commit list. The
returned list is built by modifying the original list. Thus the caller
should not use the original list again (and after the next commit fixes
a memory leak, it must not).

Change the function signature so that it takes a **list and has void
return type. That should make it harder to misuse this function.

While we're here, document this function.

Signed-off-by: Martin Ågren &lt;martin.agren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bisect--helper: `bisect_clean_state` shell function in C</title>
<updated>2017-10-06T05:12:33Z</updated>
<author>
<name>Pranit Bauva</name>
<email>pranit.bauva@gmail.com</email>
</author>
<published>2017-09-29T06:49:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fb71a329964da0892cc11cc94b5b379b0803ed92'/>
<id>urn:sha1:fb71a329964da0892cc11cc94b5b379b0803ed92</id>
<content type='text'>
Reimplement `bisect_clean_state` shell function in C and add a
`bisect-clean-state` subcommand to `git bisect--helper` to call it from
git-bisect.sh .

Using `--bisect-clean-state` subcommand is a 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 but its implementation  will
be called by bisect_reset() and bisect_start().

Also introduce a function `mark_for_removal` to store the refs which
need to be removed while iterating through the refs.

Mentored-by: Lars Schneider &lt;larsxschneider@gmail.com&gt;
Mentored-by: Christian Couder &lt;chriscool@tuxfamily.org&gt;
Signed-off-by: Pranit Bauva &lt;pranit.bauva@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bisect: simplify the addition of new bisect terms</title>
<updated>2015-08-03T18:42:41Z</updated>
<author>
<name>Antoine Delaite</name>
<email>antoine.delaite@ensimag.grenoble-inp.fr</email>
</author>
<published>2015-06-29T15:40:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cb46d630baf780412f8ca0592531880b592f0922'/>
<id>urn:sha1:cb46d630baf780412f8ca0592531880b592f0922</id>
<content type='text'>
We create a file BISECT_TERMS in the repository .git to be read during a
bisection. There's no user-interface yet, but "git bisect" works if terms
other than old/new or bad/good are set in .git/BISECT_TERMS. The
fonctions to be changed if we add new terms are quite few.

In git-bisect.sh:
	check_and_set_terms
	bisect_voc

Co-authored-by: Louis Stuber &lt;stuberl@ensimag.grenoble-inp.fr&gt;
Tweaked-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Antoine Delaite &lt;antoine.delaite@ensimag.grenoble-inp.fr&gt;
Signed-off-by: Louis Stuber &lt;stuberl@ensimag.grenoble-inp.fr&gt;
Signed-off-by: Valentin Duperray &lt;Valentin.Duperray@ensimag.imag.fr&gt;
Signed-off-by: Franck Jonas &lt;Franck.Jonas@ensimag.imag.fr&gt;
Signed-off-by: Lucien Kong &lt;Lucien.Kong@ensimag.imag.fr&gt;
Signed-off-by: Thomas Nguy &lt;Thomas.Nguy@ensimag.imag.fr&gt;
Signed-off-by: Huynh Khoi Nguyen Nguyen &lt;Huynh-Khoi-Nguyen.Nguyen@ensimag.imag.fr&gt;
Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Move print_commit_list to libgit.a</title>
<updated>2012-10-29T07:08:30Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2012-10-26T15:53:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=efc7df454e9ec8b730fb2293c8549cec43de6bfa'/>
<id>urn:sha1:efc7df454e9ec8b730fb2293c8549cec43de6bfa</id>
<content type='text'>
This is used by bisect.c, part of libgit.a while it stays in
builtin/rev-list.c. Move it to commit.c so that we won't get undefined
reference if a program that uses libgit.a happens to pull it in.

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Jeff King &lt;peff@peff.net&gt;
</content>
</entry>
<entry>
<title>rev-list: fix --verify-objects --quiet becoming --objects</title>
<updated>2012-02-28T18:47:30Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2012-02-28T14:00:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=989937221a95cd6c3a829da043162e18e0371b1e'/>
<id>urn:sha1:989937221a95cd6c3a829da043162e18e0371b1e</id>
<content type='text'>
When --quiet is specified, finish_object() is called instead of
show_object(). The latter is in charge of --verify-objects and
will be skipped  if --quiet is specified.

Move the code up to finish_object(). Also pass the quiet flag along
and make it always call show_* functions to avoid similar problems in
future.

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>rev-list: remove BISECT_SHOW_TRIED flag</title>
<updated>2012-02-28T18:47:28Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2012-02-28T13:59:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8ba8fe049feb9207dd3543c339da955336e5df8f'/>
<id>urn:sha1:8ba8fe049feb9207dd3543c339da955336e5df8f</id>
<content type='text'>
Since c99f069 (bisect--helper: remove "--next-vars" option as it is
now useless - 2009-04-21), this flag has always been off. Remove the
flag and all related code.

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bisect: introduce support for --no-checkout option.</title>
<updated>2011-08-04T22:34:32Z</updated>
<author>
<name>Jon Seymour</name>
<email>jon.seymour@gmail.com</email>
</author>
<published>2011-08-04T12:01:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fee92fc1dd4480d9d5c72bd67243d3f6a9b03132'/>
<id>urn:sha1:fee92fc1dd4480d9d5c72bd67243d3f6a9b03132</id>
<content type='text'>
If --no-checkout is specified, then the bisection process uses:

	git update-ref --no-deref HEAD &lt;trial&gt;

at each trial instead of:

	git checkout &lt;trial&gt;

Improved-by: Christian Couder &lt;chriscool@tuxfamily.org&gt;
Signed-off-by: Jon Seymour &lt;jon.seymour@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>builtin-rev-list.c: mark file-local function static</title>
<updated>2010-01-12T07:16:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-01-12T06:21:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f1c92c6369511396ab3a409b5c9957066b72f6a3'/>
<id>urn:sha1:f1c92c6369511396ab3a409b5c9957066b72f6a3</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
