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

Re: [PATCH 0/2] don't add duplicate paths to info/alternates

From
Jeff King <peff@peff.net>
Date
Jun 1, 2015, 10:53 UTC
Message-ID
<20150601105348.GD31792@peff.net>
In-Reply-To
<1433096123-14420-1-git-send-email-gjthill@gmail.com>
On Sun, May 31, 2015 at 11:15:21AM -0700, Jim Hill wrote:
Show 5 quoted lines
> These patches address
> http://thread.gmane.org/gmane.comp.version-control.git/269050/focus=269415
> linked from the git blame page, avoiding adding duplicates to info/alternates
> and removing hold_lock_file_for_append which is too heavyweight for logging and
> too limited for anything else.

Thanks. Mentioning that I would like something done and then having it unexpectedly arrive in my mailbox is like getting a present. :)

I had a few comments on the first patch, and the second looks obviously correct.

Show 6 quoted lines
> There's an argument to be made that since a-t-a-f is only used by clone, it
> shouldn't even bother taking a lock -- but then it should be moved to
> builtin/clone.c and reduced to a single write of the pre-deduped list, followed
> by a single read_info_alternates call. One thing at a time.  Taking out the
> locking in the incremental version here doesn't really simplify the code much
> anyway.
Yeah, I agree with all of the reasoning here.
-Peff
Previous: Jim Hill
Message 5 of 5 in “don't add duplicate paths to info/alternates”
  1. 0/2 don't add duplicate paths to info/alternatesJim Hill, May 31, 2015
  2. 1/2 add_to_alternates_file: don't add duplicate pathsJim Hill, May 31, 2015
  3. Jeff KingJun 1, 2015
  4. 2/2 remove hold_lock_file_for_appendJim Hill, May 31, 2015
  5. Jeff KingJun 1, 2015

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.