threads / discuss / 49358

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

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

## tl;dr

2 messages between Sep 17, 2018 and Sep 17, 2018.

replies: 1people: 2as markdown or json

Robert P. J. Day· Sep 17, 2018, 11:31 UTC · lore
  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
========================================================================
Junio C Hamano· Sep 17, 2018, 14:57 UTC · re: Robert P. J. Day · lore

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

"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.

← back to recent threads