<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/notes.h, 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-01-30T18:42:36Z</updated>
<entry>
<title>notes: convert write_notes_tree to object_id</title>
<updated>2018-01-30T18:42:36Z</updated>
<author>
<name>Patryk Obara</name>
<email>patryk.obara@gmail.com</email>
</author>
<published>2018-01-28T00:13:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bbca96d579b31900c9c0ad39299a3c9a3bd276f9'/>
<id>urn:sha1:bbca96d579b31900c9c0ad39299a3c9a3bd276f9</id>
<content type='text'>
Convert the definition and declaration of write_notes_tree to
struct object_id and adjust usage of this function.

Additionally, improve style of small part of this function, as old
formatting made it hard to understand at glance what this part of
code is doing.

Signed-off-by: Patryk Obara &lt;patryk.obara@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>notes: convert combine_notes_* to object_id</title>
<updated>2018-01-30T18:42:36Z</updated>
<author>
<name>Patryk Obara</name>
<email>patryk.obara@gmail.com</email>
</author>
<published>2018-01-28T00:13:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b7d591d17b0497597c2152ae86bd8aa4220d6961'/>
<id>urn:sha1:b7d591d17b0497597c2152ae86bd8aa4220d6961</id>
<content type='text'>
Convert the definition and declarations of combine_notes_* functions
to struct object_id and adjust usage of these functions.

Signed-off-by: Patryk Obara &lt;patryk.obara@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>notes: convert some accessor functions to struct object_id</title>
<updated>2017-06-02T00:36:06Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2017-05-30T17:30:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5ee8a954e0191be2a144afdda6e37ef776730246'/>
<id>urn:sha1:5ee8a954e0191be2a144afdda6e37ef776730246</id>
<content type='text'>
Convert add_note, get_note, and copy_note to take struct object_id.

Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>notes: convert format_display_notes to struct object_id</title>
<updated>2017-06-02T00:36:06Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2017-05-30T17:30:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fb61e4d3abe2349eb0fabe0be8981626b4074fa7'/>
<id>urn:sha1:fb61e4d3abe2349eb0fabe0be8981626b4074fa7</id>
<content type='text'>
Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>notes: make get_note return pointer to struct object_id</title>
<updated>2017-06-02T00:36:06Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2017-05-30T17:30:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9ef7223058a44990dc4650ecb1209c97ceb636b3'/>
<id>urn:sha1:9ef7223058a44990dc4650ecb1209c97ceb636b3</id>
<content type='text'>
Make get_note return a pointer to a const struct object_id.  Add a
defensive check to ensure we don't accidentally dereference a NULL
pointer.

Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>notes: convert for_each_note to struct object_id</title>
<updated>2017-06-02T00:36:06Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2017-05-30T17:30:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=490bc83a01acfefa11e98f8852b1f4a9dd962331'/>
<id>urn:sha1:490bc83a01acfefa11e98f8852b1f4a9dd962331</id>
<content type='text'>
Convert for_each_note and each of the callbacks to use struct object_id.

Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Brandon Williams &lt;bmwill@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/notes-merge-from-anywhere'</title>
<updated>2016-02-03T22:15:59Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-02-03T22:15:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1cb3ed308dcfaa6084b8aed075c772aeb9e57243'/>
<id>urn:sha1:1cb3ed308dcfaa6084b8aed075c772aeb9e57243</id>
<content type='text'>
"git notes merge" used to limit the source of the merged notes tree
to somewhere under refs/notes/ hierarchy, which was too limiting
when inventing a workflow to exchange notes with remote
repositories using remote-tracking notes trees (located in e.g.
refs/remote-notes/ or somesuch).

* jk/notes-merge-from-anywhere:
  notes: allow merging from arbitrary references
</content>
</entry>
<entry>
<title>notes: allow merging from arbitrary references</title>
<updated>2016-01-17T21:59:01Z</updated>
<author>
<name>Jacob Keller</name>
<email>jacob.keller@gmail.com</email>
</author>
<published>2015-12-29T22:40:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b3715b75226668e26f1f2abe7e2f93cdbbf6e2f5'/>
<id>urn:sha1:b3715b75226668e26f1f2abe7e2f93cdbbf6e2f5</id>
<content type='text'>
Create a new expansion function, expand_loose_notes_ref which will first
check whether the ref can be found using get_sha1. If it can't be found
then it will fallback to using expand_notes_ref. The content of the
strbuf will not be changed if the notes ref can be located using
get_sha1. Otherwise, it may be updated as done by expand_notes_ref.

Since we now support merging from non-notes refs, remove the test case
associated with that behavior. Add a test case for merging from a
non-notes ref.

Signed-off-by: Jacob Keller &lt;jacob.keller@gmail.com&gt;
Reviewed-by: Johan Herland &lt;johan@herland.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>notes: allow treeish expressions as notes ref</title>
<updated>2016-01-12T23:10:01Z</updated>
<author>
<name>Mike Hommey</name>
<email>mh@glandium.org</email>
</author>
<published>2015-10-08T02:54:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ee76f92fe883305c1260952f5b325b0503311fc9'/>
<id>urn:sha1:ee76f92fe883305c1260952f5b325b0503311fc9</id>
<content type='text'>
init_notes() is the main point of entry to the notes API. It ensures
that the input can be used as ref, because it needs a ref to update to
store notes tree after modifying it.

There however are many use cases where notes tree is only read, e.g.
"git log --notes=...".  Any notes-shaped treeish could be used for such
purpose, but it is not allowed due to existing restriction.

Allow treeish expressions to be used in the case the notes tree is going
to be used without write "permissions".  Add a flag to distinguish
whether the notes tree is intended to be used read-only, or will be
updated.

With this change, operations that use notes read-only can be fed any
notes-shaped tree-ish can be used, e.g. git log --notes=notes@{1}.

Signed-off-by: Mike Hommey &lt;mh@glandium.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>many small typofixes</title>
<updated>2013-07-29T19:32:25Z</updated>
<author>
<name>Ondřej Bílka</name>
<email>neleai@seznam.cz</email>
</author>
<published>2013-07-29T08:18:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=98e023dea40a0eca8a61c037dfc59aaf27f003a4'/>
<id>urn:sha1:98e023dea40a0eca8a61c037dfc59aaf27f003a4</id>
<content type='text'>
Signed-off-by: Ondřej Bílka &lt;neleai@seznam.cz&gt;
Reviewed-by: Marc Branchaud &lt;marcnarc@xiplink.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
