<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/bisect.c, branch v2.19.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.19.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.19.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2018-06-29T17:43:39Z</updated>
<entry>
<title>commit: add repository argument to lookup_commit_reference</title>
<updated>2018-06-29T17:43:39Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2018-06-29T01:21:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2122f6754c93be8f02bfb5704ed96c88fc9837a8'/>
<id>urn:sha1:2122f6754c93be8f02bfb5704ed96c88fc9837a8</id>
<content type='text'>
Add a repository argument to allow callers of lookup_commit_reference
to be more specific about which repository to handle. This is a small
mechanical change; it doesn't change the implementation to handle
repositories other than the_repository yet.

As with the previous commits, use a macro to catch callers passing a
repository other than the_repository at compile time.

Signed-off-by: Stefan Beller &lt;sbeller@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bisect.c: use commit-slab for commit weight instead of commit-&gt;util</title>
<updated>2018-05-21T05:07:20Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2018-05-19T05:28:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bb408ac95d34b26cb39f7796d66092fcc004c60c'/>
<id>urn:sha1:bb408ac95d34b26cb39f7796d66092fcc004c60c</id>
<content type='text'>
It's done so that commit-&gt;util can be removed. See more explanation in
the commit that removes commit-&gt;util.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ys/bisect-object-id-missing-conversion-fix'</title>
<updated>2018-04-10T07:28:24Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-04-10T07:28:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=aa1c2b6804808b127620772fa959a6b4c8556d2a'/>
<id>urn:sha1:aa1c2b6804808b127620772fa959a6b4c8556d2a</id>
<content type='text'>
Code clean-up.

* ys/bisect-object-id-missing-conversion-fix:
  bisect: use oid_to_hex() for converting object_id hashes to hex strings
</content>
</entry>
<entry>
<title>bisect: use oid_to_hex() for converting object_id hashes to hex strings</title>
<updated>2018-03-25T16:48:05Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2018-03-25T10:57:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=14ced5562c59f308bf421ae00e6567ad11169692'/>
<id>urn:sha1:14ced5562c59f308bf421ae00e6567ad11169692</id>
<content type='text'>
Patch generated with Coccinelle and contrib/coccinelle/object_id.cocci.

Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Reviewed-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>sha1_file: convert read_sha1_file to struct object_id</title>
<updated>2018-03-14T16:23:50Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2018-03-12T02:27:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b4f5aca40e6f77cbabcbf4ff003c3cf30a1830c8'/>
<id>urn:sha1:b4f5aca40e6f77cbabcbf4ff003c3cf30a1830c8</id>
<content type='text'>
Convert read_sha1_file to take a pointer to struct object_id and rename
it read_object_file.  Do the same for read_sha1_file_extended.

Convert one use in grep.c to use the new function without any other code
change, since the pointer being passed is a void pointer that is already
initialized with a pointer to struct object_id.  Update the declaration
and definitions of the modified functions, and apply the following
semantic patch to convert the remaining callers:

@@
expression E1, E2, E3;
@@
- read_sha1_file(E1.hash, E2, E3)
+ read_object_file(&amp;E1, E2, E3)

@@
expression E1, E2, E3;
@@
- read_sha1_file(E1-&gt;hash, E2, E3)
+ read_object_file(E1, E2, E3)

@@
expression E1, E2, E3, E4;
@@
- read_sha1_file_extended(E1.hash, E2, E3, E4)
+ read_object_file_extended(&amp;E1, E2, E3, E4)

@@
expression E1, E2, E3, E4;
@@
- read_sha1_file_extended(E1-&gt;hash, E2, E3, E4)
+ read_object_file_extended(E1, E2, E3, E4)

Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ys/bisect-object-id-missing-conversion-fix'</title>
<updated>2018-01-23T21:16:40Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-01-23T21:16:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=537e1064223181f5811649497c12b98b8319c0d2'/>
<id>urn:sha1:537e1064223181f5811649497c12b98b8319c0d2</id>
<content type='text'>
Fix for a commented-out code to adjust it to a rather old API change.

* ys/bisect-object-id-missing-conversion-fix:
  bisect: debug: convert struct object to object_id
</content>
</entry>
<entry>
<title>Merge branch 'rs/lose-leak-pending'</title>
<updated>2018-01-23T21:16:36Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-01-23T21:16:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0bbab7d2ab61b6aad217706e0879db561e1bdfae'/>
<id>urn:sha1:0bbab7d2ab61b6aad217706e0879db561e1bdfae</id>
<content type='text'>
API clean-up around revision traversal.

* rs/lose-leak-pending:
  commit: remove unused function clear_commit_marks_for_object_array()
  revision: remove the unused flag leak_pending
  checkout: avoid using the rev_info flag leak_pending
  bundle: avoid using the rev_info flag leak_pending
  bisect: avoid using the rev_info flag leak_pending
  object: add clear_commit_marks_all()
  ref-filter: use clear_commit_marks_many() in do_merge_filter()
  commit: use clear_commit_marks_many() in remove_redundant()
  commit: avoid allocation in clear_commit_marks_many()
</content>
</entry>
<entry>
<title>Merge branch 'ma/bisect-leakfix'</title>
<updated>2018-01-10T22:01:25Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-01-10T22:01:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4cc676c46cf07d0302d36e4aea9ecf847510383e'/>
<id>urn:sha1:4cc676c46cf07d0302d36e4aea9ecf847510383e</id>
<content type='text'>
A hotfix for a recent update that broke 'git bisect'.

* ma/bisect-leakfix:
  bisect: fix a regression causing a segfault
</content>
</entry>
<entry>
<title>bisect: debug: convert struct object to object_id</title>
<updated>2018-01-09T18:55:32Z</updated>
<author>
<name>Yasushi SHOJI</name>
<email>yasushi.shoji@gmail.com</email>
</author>
<published>2018-01-09T11:03:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f0a6068a9f3377a209c43282831e338d10aaf152'/>
<id>urn:sha1:f0a6068a9f3377a209c43282831e338d10aaf152</id>
<content type='text'>
The commit f2fd0760 ("Convert struct object to object_id",
2015-11-10) converted struct object to object_id but forgot to
adjust a few callers in a debug function show_list(), which is
ifdef'ed to noop, in bisect.c.

Signed-off-by: Yasushi SHOJI &lt;Yasushi.SHOJI@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>bisect: fix a regression causing a segfault</title>
<updated>2018-01-03T23:33:46Z</updated>
<author>
<name>Ævar Arnfjörð Bjarmason</name>
<email>avarab@gmail.com</email>
</author>
<published>2018-01-03T18:48:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2e9fdc795cb27725e6dda7f4ba78ec0d9553b36a'/>
<id>urn:sha1:2e9fdc795cb27725e6dda7f4ba78ec0d9553b36a</id>
<content type='text'>
In 7c117184d7 ("bisect: fix off-by-one error in
`best_bisection_sorted()`", 2017-11-05) the more careful logic dealing
with freeing p-&gt;next in 50e62a8e70 ("rev-list: implement
--bisect-all", 2007-10-22) was removed.

Restore the more careful check to avoid segfaulting. Ideally this
would come with a test case, but we don't have steps to reproduce
this, only a backtrace from gdb pointing to this being the issue.

Reported-by: Yasushi SHOJI &lt;yasushi.shoji@gmail.com&gt;
Signed-off-by: Ævar Arnfjörð Bjarmason &lt;avarab@gmail.com&gt;
Acked-by: Martin Ågren &lt;martin.agren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
