From: Adam Spiers <git@adamspiers.org>
To: Johan Herland <johan@herland.net>
Cc: Junio C Hamano <gitster@pobox.com>,
git mailing list <git@vger.kernel.org>,
Thomas Rast <trast@inf.ethz.ch>,
Stephen Boyd <bebarino@gmail.com>
Subject: Re: improvements to checks for core.notesRef / GIT_NOTES_REF / --ref
Date: Tue, 30 Apr 2013 01:40:06 +0100 [thread overview]
Message-ID: <20130430004006.GF8768@pacific.linksys.moosehall> (raw)
In-Reply-To: <CALKQrgdH_Oh122tGKeD+chk5f6PwUvsisXjRp68QD_KMQt-9Bg@mail.gmail.com>
On Tue, Apr 30, 2013 at 02:32:33AM +0200, Johan Herland wrote:
> On Mon, Apr 29, 2013 at 11:40 PM, Adam Spiers <git@adamspiers.org> wrote:
[snipped]
> > IMHO the more similar the merge's user experience is to a standard
> > merge, the better, since that would minimise the number of merging
> > workflows the user needs to learn.
> >
> > On this theme, I think ideally rebase should be supported too, and
>
> IMHO the general discussion about rebase vs. merge is mostly about the
> shape of the resulting history. When it comes to notes, I have yet to
> see a use case where anybody really cares about the shape of the notes
> history, and hence I don't yet see how rebase would be useful for
> notes. In fact, it rather seems some people are more interested in
> storing their notes trees without any history at all (ISTR a
> discussion regarding the notes-cache feature, where we did NOT want to
> keep earlier versions of the cache alive).
That's a fair point; lack of rebase is certainly not a showstopper.
In contrast, in our use case, a total lack of history could be quite
annoying.
> > I also have to manually update the fake tracking "branch":
> >
> > git update-ref refs/notes/$remote/$GIT_NOTES_REF refs/notes/$GIT_NOTES_REF
> >
> > # or if I want to make really sure this only happens if the push worked
> > git fetch $remote refs/notes/$GIT_NOTES_REF:refs/notes/$remote/$GIT_NOTES_REF
> >
> > That's pretty ugly. Couldn't we instead just reuse the existing
> > mechanisms?
> >
> > remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
> > remote.origin.fetch=+refs/notes/*:refs/note-remotes/origin/*
>
> The remote refs namespace idea aims to solve this by providing refspecs like
>
> remote.origin.fetch=+refs/heads/*:refs/remotes/origin/heads/*
> remote.origin.fetch=+refs/tags/*:refs/remotes/origin/tags/*
> remote.origin.fetch=+refs/notes/*:refs/remotes/origin/notes/*
> remote.origin.fetch=+refs/replace/*:refs/remotes/origin/replace/*
> etc.
>
> I'm currently working on some patches to make git work well in repos
> with those kinds of refspecs. I see that as the first step on the way
> to properly supporting remote ref namespaces.
>
> > branch.notes/commits.remote=origin
> > branch.notes/commits.merge=refs/notes/commits
>
> This looks like an natural extension of the branch upstream mechanism
> for notes. Personally, I'd rather have it look more like this:
>
> [notes "commits"]
> remote = origin
> merge = refs/notes/commits
>
> or, in your notation:
>
> notes.commits.remote=origin
> notes.commits.merge=refs/notes/commits
Ahah yes, that's nicer. Thanks for the reply!
next prev parent reply other threads:[~2013-04-30 0:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-27 13:21 git-icing: sugary wrapper around git-cherry Adam Spiers
2013-04-29 13:32 ` git-rnotes: git-notes wrapper for sharing notes between repositories Adam Spiers
2013-04-29 16:39 ` improvements to checks for core.notesRef / GIT_NOTES_REF / --ref Adam Spiers
2013-04-29 17:13 ` Junio C Hamano
2013-04-29 21:40 ` Adam Spiers
2013-04-30 0:32 ` Johan Herland
2013-04-30 0:40 ` Adam Spiers [this message]
2013-09-21 17:25 ` tools for making upstreaming / backporting easier in git Adam Spiers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130430004006.GF8768@pacific.linksys.moosehall \
--to=git@adamspiers.org \
--cc=bebarino@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=johan@herland.net \
--cc=trast@inf.ethz.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).