From: Jonathan Nieder <jrnieder@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Johan Herland <johan@herland.net>,
git@vger.kernel.org, Shawn Pearce <spearce@spearce.org>,
Kenny Root <kroot@google.com>,
Thomas Rast <trast@student.ethz.ch>
Subject: Re: [PATCH] Remove restriction on notes ref base
Date: Wed, 3 Nov 2010 11:35:24 -0500 [thread overview]
Message-ID: <20101103163524.GB12934@burratino> (raw)
In-Reply-To: <7vsjzixty5.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
> Jonathan Nieder <jrnieder@gmail.com> writes:
>> How about
>>
>> refs/notes/* refs/notes/$remote/*
>>
>> ?
>
> I was actually thinking more along the lines of "not keeping track of
> remote state at all". We don't do that for tags either.
What would be the behavior when a remote and local notes ref have the
same name?
Tags are supposed to be universal and never change, so that doesn't
come up. With branches and notes trees, one can impose a requirement
that the remote and local refs never have the same name (the "no
separate remotes" layout) but I think that runs into problems from
both ends:
When the remote and local notes are written by the same person, it
seems like busy work to ask that person to give different names for
the same branch at different installations.
In a distributed world where many developers might not even know
about each other's repositories, name conflicts on development
branches would seem to be inevitable.
home> ... hack hack hack ...
home> git notes add some-commit; # hmm, noticed something
home> ... hack hack hack ...
Time to go to work...
work> ... hack hack hack ...
work> git notes add another-commit
work> ... hack hack hack ...
work> git fetch home; # grabbing notes from home.
work> git notes merge home/commits
work> git push; # publish.
Still, as long as the default can be overridden (even if only on a
per-remote basis), I wouldn't mind. Maybe this way of using notes
would be unusual and the no-separate-remotes layout supports some
other use case better.
prev parent reply other threads:[~2010-11-03 16:35 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-02 0:16 [PATCH] Remove restriction on notes ref base Kenny Root
2010-11-02 6:52 ` Jonathan Nieder
2010-11-02 8:48 ` Johan Herland
2010-11-02 14:11 ` Shawn Pearce
2010-11-02 14:29 ` Jeff King
2010-11-02 15:24 ` Johan Herland
2010-11-02 17:41 ` Junio C Hamano
2010-11-02 22:58 ` Johan Herland
2010-11-02 23:28 ` Chris Forbes
2010-11-03 6:41 ` Jonathan Nieder
2010-11-03 16:17 ` Junio C Hamano
2010-11-03 16:30 ` Sverre Rabbelier
2010-11-04 0:49 ` Johan Herland
2010-11-04 1:00 ` Sverre Rabbelier
2010-11-04 14:35 ` Tag refspecs (was Re: [PATCH] Remove restriction on notes ref base) Marc Branchaud
2010-11-05 1:02 ` Johan Herland
2010-11-05 15:11 ` Marc Branchaud
2010-11-04 14:58 ` [PATCH] Remove restriction on notes ref base Jeff King
2010-11-05 1:29 ` Johan Herland
2010-11-05 14:55 ` Jeff King
2010-11-03 16:35 ` Jonathan Nieder [this message]
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=20101103163524.GB12934@burratino \
--to=jrnieder@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=johan@herland.net \
--cc=kroot@google.com \
--cc=spearce@spearce.org \
--cc=trast@student.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).