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

Re: [PATCH] doc/reftable: document how to handle windows

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 26, 2021, 20:12 UTC
Message-ID
<xmqqk0rz1mpy.fsf@gitster.c.googlers.com>
In-Reply-To
<CAFQ2z_PN8K6sKq=Rdw=maVhd67GhCtxWgGSUb5KhZ85EYV6jOw@mail.gmail.com>
Han-Wen Nienhuys <hanwen@google.com> writes:
> The first two parts of the file name (${min}-${max}) already provide
> visibility into what is going on, and the file system timestamp
> already indicates which file is newer. I picked a random name as
> suffix, as it gets the job done and is simple.

OK, as long as two paths of the same ${min}-${max} part would not confuse people, I am perfectly fine.

Show 5 quoted lines
> Or, we could rename to ${min}-${max}-0 and if that fails try
> ${min}-${max}-1, and if that fails ${min}-${max}-2 etc. I think that
> is somewhat nicer than parsing back a counter from the existing
> filenames, but it could have the effect that 1-1-0 could be newer than
> 1-1-2.

I agree that such an approach that can get fooled by an existing gap would not achieve anything over the ${random} approach.

Thanks.
Previous: Han-Wen NienhuysNext: Han-Wen Nienhuys via GitGitGadget
Message 6 of 7 in “doc/reftable: document how to handle windows”
  1. doc/reftable: document how to handle windowsHan-Wen Nienhuys via GitGitGadget, Jan 25, 2021
  2. Junio C HamanoJan 26, 2021
  3. Han-Wen NienhuysJan 26, 2021
  4. Junio C HamanoJan 26, 2021
  5. Han-Wen NienhuysJan 26, 2021
  6. Junio C HamanoJan 26, 2021
  7. doc/reftable: document how to handle windowsHan-Wen Nienhuys via GitGitGadget, Feb 23, 2021

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.