<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/bisect.c, branch v2.18.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.18.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.18.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2018-04-10T07:28:24Z</updated>
<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>
<entry>
<title>bisect: avoid using the rev_info flag leak_pending</title>
<updated>2017-12-28T21:50:05Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2017-12-25T17:45:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=148f14ab5e066bb95a9f0bc00380ca98369555dd'/>
<id>urn:sha1:148f14ab5e066bb95a9f0bc00380ca98369555dd</id>
<content type='text'>
The leak_pending flag is so awkward to use that multiple comments had to
be added around each occurrence.  We only use it for remembering the
commits whose marks we have to clear after checking if all of the good
ones are ancestors of the bad one.  This is easy, though: We need to do
that for the bad and good commits, of course.

Let check_good_are_ancestors_of_bad() create and own the array of bad
and good commits, and use it to clear the commit marks as well.

Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'mh/tidy-ref-update-flags'</title>
<updated>2017-11-15T03:14:29Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-11-15T03:14:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a97222978ab3e0e86e87dccacf59269a9060de9e'/>
<id>urn:sha1:a97222978ab3e0e86e87dccacf59269a9060de9e</id>
<content type='text'>
Code clean-up in refs API implementation.

* mh/tidy-ref-update-flags:
  refs: update some more docs to use "oid" rather than "sha1"
  write_packed_entry(): take `object_id` arguments
  refs: rename constant `REF_ISPRUNING` to `REF_IS_PRUNING`
  refs: rename constant `REF_NODEREF` to `REF_NO_DEREF`
  refs: tidy up and adjust visibility of the `ref_update` flags
  ref_transaction_add_update(): remove a check
  ref_transaction_update(): die on disallowed flags
  prune_ref(): call `ref_transaction_add_update()` directly
  files_transaction_prepare(): don't leak flags to packed transaction
</content>
</entry>
</feed>
