From: Junio C Hamano <gitster@pobox.com>
To: Marc Branchaud <marcnarc@xiplink.com>
Cc: Jacob Keller <jacob.keller@gmail.com>,
Git List <git@vger.kernel.org>, Johan Herland <johan@herland.net>,
Jeff King <peff@peff.net>
Subject: Re: proper remote ref namespaces
Date: Wed, 12 Aug 2015 12:35:47 -0700 [thread overview]
Message-ID: <xmqq1tf8l2p8.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <55CB63C5.8090708@xiplink.com> (Marc Branchaud's message of "Wed, 12 Aug 2015 11:18:29 -0400")
Marc Branchaud <marcnarc@xiplink.com> writes:
> Not a lot. Existing DWIMery already handles ambiguous branches, by
> preferring a local branch name over any remote ones. The only teaching
> that's really needed is ...
You need to remember that there are five useful things you can do to
mutable things.
- Creation can be covered by teaching "clone" to put a new-style
refspec but the same change needs to also go to "remote add".
- Reading is done by the DWIMery in ref_rev_parse_rules[] (your
point above).
- Updating is automatic, as "fetch" does not have any funny
built-in intuit and blindly follows configured fetch refspec.
- Deletion by "branch -d -r" and "remote remove" needs to be
careful about designing how the case where both old and new
hierarchies exist should be handled (my gut feeling is "delete
both", but there may be funny corner cases).
- Enumeration by "branch -l -r" probably shares the same issue as
deletion.
next prev parent reply other threads:[~2015-08-12 19:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-12 6:43 proper remote ref namespaces Jacob Keller
2015-08-12 15:18 ` Marc Branchaud
2015-08-12 19:35 ` Junio C Hamano [this message]
2015-08-12 16:10 ` Junio C Hamano
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=xmqq1tf8l2p8.fsf@gitster.dls.corp.google.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=jacob.keller@gmail.com \
--cc=johan@herland.net \
--cc=marcnarc@xiplink.com \
--cc=peff@peff.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.