* diff between "--no-local" and "--no-hardlinks" for local clone?
@ 2018-09-17 11:31 Robert P. J. Day
2018-09-17 14:57 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Robert P. J. Day @ 2018-09-17 11:31 UTC (permalink / raw)
To: Git Mailing list
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?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca/dokuwiki
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: diff between "--no-local" and "--no-hardlinks" for local clone?
2018-09-17 11:31 diff between "--no-local" and "--no-hardlinks" for local clone? Robert P. J. Day
@ 2018-09-17 14:57 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2018-09-17 14:57 UTC (permalink / raw)
To: Robert P. J. Day; +Cc: Git Mailing list
"Robert P. J. Day" <rpjday@crashcourse.ca> 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-09-17 14:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-17 11:31 diff between "--no-local" and "--no-hardlinks" for local clone? Robert P. J. Day
2018-09-17 14:57 ` Junio C Hamano
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).