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

Re: [PATCH] t2017: redo physical reflog existance check

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 22, 2010, 17:35 UTC
Message-ID
<7vlj93h120.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1279763190-32757-1-git-send-email-erick.mattos@gmail.com>
Erick Mattos <erick.mattos@gmail.com> writes:
> Although this is not a problem to all the other changes, it is laming to
> the tenth test.  The implementation of the correspondent problem creates
> a "touch" reflog that must be wiped out if not used by committing the
> new branch.

I thought about it a bit when I sent out my patch, but I do not think that is necessary.

The things you care about, after running "-l --orphan eta", are:
 - If you make a commit, you get eta@{...} reflog that records it; and
 - If you leave the still-to-be-born eta branch without making a commit,
   you do not leave eta@{...} reflog behind.

Your zeta@{...} test is about the former, and your eta@{...} test is about the latter. I think they already check what they want to see happen.

I also am afraid that the "test -f" check would expose the implementation detail more than necessary. We may want to come up with a different implementation of this behaviour later that may not create an empty file there.

Previous: Erick MattosNext: Erick Mattos
Message 2 of 8 in “t2017: redo physical reflog existance check”
  1. t2017: redo physical reflog existance checkErick Mattos, Jul 22, 2010
  2. Junio C HamanoJul 22, 2010
  3. Erick MattosJul 22, 2010
  4. Junio C HamanoJul 23, 2010
  5. Erick MattosJul 23, 2010
  6. Jonathan NiederAug 24, 2010
  7. Junio C HamanoAug 24, 2010
  8. Erick MattosAug 24, 2010

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.