From: Linus Torvalds <torvalds@osdl.org>
To: Shawn Pearce <spearce@spearce.org>
Cc: "Jakub Narebski" <jnareb@gmail.com>,
"Karl Hasselström" <kha@treskal.com>,
git@vger.kernel.org
Subject: Re: Missing features in git
Date: Tue, 14 Nov 2006 10:40:30 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.64.0611141037120.3327@woody.osdl.org> (raw)
In-Reply-To: <20061114174939.GB4299@spearce.org>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1410 bytes --]
On Tue, 14 Nov 2006, Shawn Pearce wrote:
> Jakub Narebski <jnareb@gmail.com> wrote:
> > Dnia wtorek 14. listopada 2006 18:36, Karl Hasselström napisa?:
> > >
> > > For example, we could skip the "bisect" branch, since
> > > you aren't supposed to commit to that anyway.
> >
> > Well, to have "branch" to which you could not commit, just put ref
> > outside refs/heads.
> >
> > Another solution would be to be able to put non-head ref in HEAD,
> > but allow to commit only if the prefix is refs/heads/
>
> That's not a bad idea. Then you can checkout a tag and have
> 'ref: refs/tags/v1.11' in HEAD, which means anyone who puts
> $(git-symbolic-ref) calls into their PS1 will see "refs/tags/v1.11"
> as their current branch, reminding them they are looking at the past.
I agree. This would probably be a good way to do "read-only branches".
Allowing people to do a "git checkout" on anything committish, but then
not allowing them to commit to that, is probably the right thing to do.
Together with a nice readable error message from "git commit" (and merge,
and pull - although you might well allow "fetch" to update the thing that
current HEAD points to, though), this would be a lot easier to use for
people who just follow somebody elses branch.
Junio, what do you think? It wouldn't even be backwards incompatible,
because we're strictly allowing a superset of what we used to..
Linus
next prev parent reply other threads:[~2006-11-14 18:41 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-14 13:49 Missing features in git linux
2006-11-14 14:53 ` Jakub Narebski
2006-11-14 15:47 ` Karl Hasselström
2006-11-14 17:15 ` Jakub Narebski
2006-11-14 17:36 ` Karl Hasselström
2006-11-14 17:45 ` Jakub Narebski
2006-11-14 17:49 ` Shawn Pearce
2006-11-14 18:40 ` Linus Torvalds [this message]
2006-11-14 19:37 ` Petr Baudis
2006-11-14 22:09 ` Junio C Hamano
2006-11-14 15:39 ` Karl Hasselström
2006-11-14 18:55 ` Edgar Toernig
2006-11-14 21:38 ` linux
2006-11-15 7:35 ` Karl Hasselström
2006-11-15 16:50 ` Linus Torvalds
2006-11-14 22:13 ` 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=Pine.LNX.4.64.0611141037120.3327@woody.osdl.org \
--to=torvalds@osdl.org \
--cc=git@vger.kernel.org \
--cc=jnareb@gmail.com \
--cc=kha@treskal.com \
--cc=spearce@spearce.org \
/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).