Thread (1 message) 1 message, 1 author, 2018-09-17

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

From: Junio C Hamano <hidden>
Date: 2018-09-17 14:57:47

"Robert P. J. Day" [off-list ref] writes:
  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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help