From: Jeff King <peff@peff.net>
To: "Nathan W. Panike" <nathan.panike@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Looking for a way to turn off/modify ref disambiguation
Date: Tue, 23 Aug 2011 17:15:36 -0400 [thread overview]
Message-ID: <20110823211536.GA7759@sigill.intra.peff.net> (raw)
In-Reply-To: <CAPRoxBXjL3Y3KRd8R2guX9Ar374sw-pBhz1bCzNZxn1vC6XNPw@mail.gmail.com>
On Tue, Aug 23, 2011 at 02:26:48PM -0500, Nathan W. Panike wrote:
> 1. If $GIT_DIR/<name> exists, that is what you mean
> (this is usually useful only for HEAD, FETCH_HEAD, ORIG_HEAD,
> MERGE_HEAD and CHERRY_PICK_HEAD);
> 2. otherwise, refs/<name> if it exists;
> 3. otherwise, refs/tags/<refname> if it exists;
> 4. otherwise, refs/heads/<name> if it exists;
> 5. otherwise, refs/remotes/<name> if it exists;
> 6. otherwise, refs/remotes/<name>/HEAD if it exists.
> ...
>
> Is there any way to change this behavior, e.g., so that rule 6 becomes
> an error? Say, by setting a config option?
You can remove the remote HEAD reference with:
git remote set-head origin -d
That will only fix that particular repo, though. There is no config
option to disable it for all newly cloned repos.
-Peff
next prev parent reply other threads:[~2011-08-23 21:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-23 19:26 Looking for a way to turn off/modify ref disambiguation Nathan W. Panike
2011-08-23 21:15 ` Jeff King [this message]
2011-08-23 22:03 ` Junio C Hamano
2011-08-24 9:25 ` Michael J Gruber
2011-08-24 16:37 ` Jonathan Nieder
2011-08-24 17:48 ` Junio C Hamano
2011-08-24 6:54 ` Clemens Buchacher
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=20110823211536.GA7759@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=nathan.panike@gmail.com \
/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).