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

Re: diff between "--no-local" and "--no-hardlinks" for local clone?

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 17, 2018, 14:57 UTC
Message-ID
<xmqq8t409no9.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<alpine.LFD.2.21.1809170429140.8299@localhost.localdomain>
"Robert P. J. Day" <rpjday@crashcourse.ca> writes:
Show 5 quoted lines
>   perusing "man git-clone" and, from the first part of the OPTIONS
> section, it's not immediately obvious what the difference is between
> using --no-local versus --no-hardlinks when cloning a local repo. both
> seem to suggest that the local git transport mechanism will be used,
> so what is the difference?

The "local" optimization is designed to use hardlinks to share as many object and pack files as possible to avoid copies. You can optionally disable the use of hardlinks to always copy, without disabling the "local" optimization.

If you say --no-local, --[no-]hardlinks has no relevance.
Previous: Robert P. J. Day
Message 2 of 2 in “diff between "--no-local" and "--no-hardlinks" for local clone?”
  1. Robert P. J. DaySep 17, 2018
  2. Junio C HamanoSep 17, 2018

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.