Integrated: 2163: Add API to Repository for working "git notes"

Erik Duveblad ehelin at openjdk.org
Thu Feb 1 10:05:11 UTC 2024


On Mon, 29 Jan 2024 14:28:06 GMT, Erik Duveblad <ehelin at openjdk.org> wrote:

> Hi all,
> 
> please review this patch that adds the methods `addNote`. `notes` and `pushNotes` to `Repository.java` to allow Skara code to work with [git notes](https://git-scm.com/docs/git-notes). This will be used in another patch to implement a "git note"-notifier (see https://bugs.openjdk.org/browse/SKARA-2164). 
> 
> I opted for a fairly minimal API here even though the `git notes` command exposes many more features. I also decided to add the `pushNotes` method although callers could use the `push(String refspec, URI uri)` variant because I don't like the notes refspec to "leak" out into other parts of the code.
> 
> Also added a couple of unit tests.
> 
> Thanks,
> Erik

This pull request has now been integrated.

Changeset: 21e12f6d
Author:    Erik Duveblad <ehelin at openjdk.org>
URL:       https://git.openjdk.org/skara/commit/21e12f6db868a9f1d840cdc0623b456e05ab4f67
Stats:     121 lines in 4 files changed: 121 ins; 0 del; 0 mod

2163: Add API to Repository for working "git notes"

Reviewed-by: erikj, zsong

-------------

PR: https://git.openjdk.org/skara/pull/1607


More information about the skara-dev mailing list