From: Junio C Hamano <junkio@cox.net>
To: Petr Baudis <pasky@suse.cz>
Cc: Josef Weidendorfer <Josef.Weidendorfer@gmx.de>, git@vger.kernel.org
Subject: Re: [PATCH] Cogito: Support for implicit remote branches in cloned repositories
Date: Fri, 04 Nov 2005 13:50:22 -0800 [thread overview]
Message-ID: <7voe50rskh.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <20051104210820.GM1431@pasky.or.cz> (Petr Baudis's message of "Fri, 4 Nov 2005 22:08:20 +0100")
Petr Baudis <pasky@suse.cz> writes:
> I still believe we need the notion of private tags which shouldn't be
> cloned.
I agree with you violently. I just do not know what is the
right convention to tell which is private and which is not.
Fetching used to be a different matter, because we did not do
'git-fetch --tags' for a reason: you do not have any business
with my tags unless I tell you about them. But now we tell
others about what tags we have, so...
> All right. git-update-server-info ignores hidden refs, but referencing a
> hidden ref works all right (unsurprisingly). So let's just codify that
> private tags which shan't be fetched (unless requested explicitly) start
> with a dot (/^\./) and we are all set...?
Except that I suspect refs.c::check_ref_format() will barf on it
instead of ignoring it, and obviously you would want it to do
two different things depending on what kind of operation you are
doing. You for example would want to change git-branch or
git-tag not to refuse creating such "private" tag. You would
still want git-upload-pack to show it to the other end, for
better common commit computation purposes, especially if the tag
is of lightweight kind, but would want git-clone to ignore
them. It should be doable but we first need a plan.
next prev parent reply other threads:[~2005-11-04 21:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-04 16:01 [PATCH] Cogito: Support for implicit remote branches in cloned repositories Josef Weidendorfer
2005-11-04 17:43 ` Junio C Hamano
2005-11-04 18:38 ` Josef Weidendorfer
2005-11-04 21:08 ` Petr Baudis
2005-11-04 21:50 ` Junio C Hamano [this message]
2005-11-04 22:07 ` Linus Torvalds
2005-11-06 9:11 ` Junio C Hamano
2005-11-07 23:21 ` Petr Baudis
2005-11-07 23:45 ` Junio C Hamano
2005-11-08 16:46 ` Josef Weidendorfer
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=7voe50rskh.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=Josef.Weidendorfer@gmx.de \
--cc=git@vger.kernel.org \
--cc=pasky@suse.cz \
/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).