<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/notes.h, branch v2.8.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.8.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.8.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2016-02-03T22:15:59Z</updated>
<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>
<entry>
<title>format_note(): simplify API</title>
<updated>2012-10-18T05:42:40Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-10-18T04:41:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=76141e2e6280101362c3c5ddb22699b6f0458100'/>
<id>urn:sha1:76141e2e6280101362c3c5ddb22699b6f0458100</id>
<content type='text'>
We either stuff the notes message without modification for %N
userformat, or format it for human consumption.  Using two bits
is an overkill that does not benefit anybody.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>notes.c: mark a private file-scope symbol as static</title>
<updated>2012-09-16T05:58:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-09-15T21:08:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=96531a5ede7ede4397eb190411bc20256bca3e93'/>
<id>urn:sha1:96531a5ede7ede4397eb190411bc20256bca3e93</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>notes: refactor display notes default handling</title>
<updated>2011-03-29T21:31:59Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2011-03-29T20:57:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3a03cf6b1d1cf5d05edec1781446a26782eaff09'/>
<id>urn:sha1:3a03cf6b1d1cf5d05edec1781446a26782eaff09</id>
<content type='text'>
This is in preparation for more notes-related revision
command-line options.

The "suppress_default_notes" option is renamed to
"use_default_notes", and is now a tri-state with values less
than one indicating "not set".  If the value is "not set",
then we show default refs if and only if no other refs were
given.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>notes: refactor display notes extra refs field</title>
<updated>2011-03-29T21:30:54Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2011-03-29T20:56:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=304cc11c6566cf22e811aa791988c61b6d291973'/>
<id>urn:sha1:304cc11c6566cf22e811aa791988c61b6d291973</id>
<content type='text'>
There's no need to use an extra pointer, which just ends up
leaking memory. The fact that the list is empty tells us the
same thing.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>notes: make expand_notes_ref globally accessible</title>
<updated>2011-03-29T21:29:17Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2011-03-29T20:55:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=03bb5789cd97de989897e1c9de71a2831ada0544'/>
<id>urn:sha1:03bb5789cd97de989897e1c9de71a2831ada0544</id>
<content type='text'>
This function is useful for other commands besides "git
notes" which want to let users refer to notes by their
shorthand name.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jh/notes-merge'</title>
<updated>2010-12-08T19:24:12Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-12-08T19:24:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=657072f3ac5519f146a947253c9959909b38c293'/>
<id>urn:sha1:657072f3ac5519f146a947253c9959909b38c293</id>
<content type='text'>
* jh/notes-merge: (23 commits)
  Provide 'git merge --abort' as a synonym to 'git reset --merge'
  cmd_merge(): Parse options before checking MERGE_HEAD
  Provide 'git notes get-ref' to easily retrieve current notes ref
  git notes merge: Add testcases for merging notes trees at different fanouts
  git notes merge: Add another auto-resolving strategy: "cat_sort_uniq"
  git notes merge: --commit should fail if underlying notes ref has moved
  git notes merge: List conflicting notes in notes merge commit message
  git notes merge: Manual conflict resolution, part 2/2
  git notes merge: Manual conflict resolution, part 1/2
  Documentation: Preliminary docs on 'git notes merge'
  git notes merge: Add automatic conflict resolvers (ours, theirs, union)
  git notes merge: Handle real, non-conflicting notes merges
  builtin/notes.c: Refactor creation of notes commits.
  git notes merge: Initial implementation handling trivial merges only
  builtin/notes.c: Split notes ref DWIMmery into a separate function
  notes.c: Use two newlines (instead of one) when concatenating notes
  (trivial) t3303: Indent with tabs instead of spaces for consistency
  notes.h/c: Propagate combine_notes_fn return value to add_note() and beyond
  notes.h/c: Allow combine_notes functions to remove notes
  notes.c: Reorder functions in preparation for next commit
  ...

Conflicts:
	builtin.h
</content>
</entry>
</feed>
