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

Re: Recovering Committed Changes in a Detached Head?

From
RKRonan Keryell <ronan.keryell@hpc-project.com>
Date
Oct 9, 2011, 07:46 UTC
Message-ID
<87k48efvzc.fsf@an-dro.info.enstb.org>
In-Reply-To
<CACsJy8CsMCju7joj2B2xbBSTF1vHjyuFeSZyPhTJisO2sU-Fqg@mail.gmail.com>
>>>>> On Sun, 9 Oct 2011 16:52:11 +1100, Nguyen Thai Ngoc Duy <pclouds@gmail.com> said:
    Nguyen> On Sun, Oct 9, 2011 at 9:00 AM, Martin Fick <mfick@codeaurora.org> wrote:
    >> While rflog is cool, I can't help but think that git could be
    >> even more helpful for these scenarios.
    >> First, maybe git could create refs for these automatically,
    >> perhaps with a name like orphans/1?  Maybe these refs would only
    >> be visible via git branch --orphans.
    Nguyen> If I remember correctly, we don't have private ref
    Nguyen> namespace, any refs created automatically this way could be
    Nguyen> pushed out by accident.

A way to avoid this could be to deal with this like git-stash works, instead of relying on the branch machinery.

But anyway, I think there is a trade-off between keeping some references to some hypothetical future use and preventing the garbage collector to reclaim useless objects...

-- 
  Ronan KERYELL                      |\/  Phone:  +1 408 844 HPC0
  HPC Project, Inc.                  |/)  Cell:   +33 613 143 766
  5201 Great America Parkway #3241   K    Ronan.Keryell@hpc-project.com
  Santa Clara, CA 95054              |\   skype:keryell
  USA                                | \  http://hpc-project.com
Previous: Nguyen Thai Ngoc DuyNext: Matthieu Moy
Message 7 of 10 in “Recovering Committed Changes in a Detached Head?”
  1. Daly GutierrezOct 8, 2011
  2. SZEDER GáborOct 8, 2011
  3. Martin FickOct 8, 2011
  4. Joel C. SalomonOct 9, 2011
  5. Martin FickOct 9, 2011
  6. Nguyen Thai Ngoc DuyOct 9, 2011
  7. Ronan KeryellOct 9, 2011
  8. Matthieu MoyOct 9, 2011
  9. Junio C HamanoOct 9, 2011
  10. Miles BaderOct 10, 2011

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.