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

Re: Reverting the whole index-base series

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Apr 15, 2007, 21:01 UTC
Message-ID
<Pine.LNX.4.64.0704151356450.5473@woody.linux-foundation.org>
In-Reply-To
<7vbqhp4diw.fsf@assigned-by-dhcp.cox.net>
On Sun, 15 Apr 2007, Junio C Hamano wrote:
Show 7 quoted lines
> 
> I have been thinking about the approach using index-base to
> guard against somebody else updating the tip of branch you are
> currently on (let's call that "gremlin updates (to the HEAD)"
> for lack of better wording).  Unlike the earlier cache-tree
> based write-tree optimization, it turns out to be an uphill
> battle to make it an "opt-in" enhancement [*1*].
I never understood what you were trying to do.
The SHA1 doesn't really help.

If "next" and "pu" are the same, and you have "next" checked out, and you push into "pu", what happens? Since the two branches were the same, the SHA1 was the same before, so the BASE commit in the index will be the one that is updated.

The only thing that matters is that if you update the branch that HEAD points to, and then you'd always need to do something special, but I don't see that it has anything to do with what the "BASE" commit was.. It's purely a matter of "what does HEAD point to", independently of the index.

But no, I wasn't following that series, so I probably totally misunderstood what you were going after..

		Linus
Previous: Junio C HamanoNext: Junio C Hamano
Message 9 of 15 in “Some index-base bug in "next" branch ("git-applymbox"-related?)..”
  1. Linus TorvaldsApr 12, 2007
  2. Junio C HamanoApr 12, 2007
  3. Junio C HamanoApr 13, 2007
  4. Linus TorvaldsApr 13, 2007
  5. Junio C HamanoApr 13, 2007
  6. Linus TorvaldsApr 13, 2007
  7. Junio C HamanoApr 13, 2007
  8. Reverting the whole index-base seriesJunio C Hamano, Apr 15, 2007
  9. Linus TorvaldsApr 15, 2007
  10. Junio C HamanoApr 15, 2007
  11. Linus TorvaldsApr 15, 2007
  12. Junio C HamanoApr 15, 2007
  13. Linus TorvaldsApr 15, 2007
  14. Junio C HamanoApr 16, 2007
  15. Linus TorvaldsApr 16, 2007

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.