git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Missing features in git

From
Shawn Pearce <spearce@spearce.org>
Date
Nov 14, 2006, 17:49 UTC
Message-ID
<20061114174939.GB4299@spearce.org>
In-Reply-To
<200611141845.18930.jnareb@gmail.com>
Jakub Narebski <jnareb@gmail.com> wrote:
Show 10 quoted lines
> 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.

Doing bisect branch in refs/bisect rather than refs/heads/bisect would then likewise remind the user that they are bisecting, and since neither matches refs/heads/* you cannot commit.

Previous: Jakub NarebskiNext: Linus Torvalds
Message 7 of 12 in “Missing features in git”
  1. linux@horizon.comNov 14, 2006
  2. Jakub NarebskiNov 14, 2006
  3. Karl HasselströmNov 14, 2006
  4. Jakub NarebskiNov 14, 2006
  5. Karl HasselströmNov 14, 2006
  6. Jakub NarebskiNov 14, 2006
  7. Shawn PearceNov 14, 2006
  8. Linus TorvaldsNov 14, 2006
  9. Petr BaudisNov 14, 2006
  10. Junio C HamanoNov 14, 2006
  11. Karl HasselströmNov 14, 2006
  12. Junio C HamanoNov 14, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.