{"thread":{"id":"49358","subject":"diff between \"--no-local\" and \"--no-hardlinks\" for local clone?","startedAt":"2018-09-17T11:31:51Z","lastAt":"2018-09-17T14:57:47Z","messageCount":2,"participants":["Robert P. J. Day","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"358250","messageId":"alpine.LFD.2.21.1809170429140.8299@localhost.localdomain","threadId":"49358","inReplyTo":null,"subject":"diff between \"--no-local\" and \"--no-hardlinks\" for local clone?","fromName":"Robert P. J. Day","fromEmail":"rpjday@crashcourse.ca","sentAt":"2018-09-17T11:31:40Z","receivedAt":"2018-09-17T11:31:51Z","isPatch":false,"sender":{"key":"rpjday@crashcourse.ca","avatar":"https://avatars.githubusercontent.com/u/226084077?v=4"},"body":"\n  perusing \"man git-clone\" and, from the first part of the OPTIONS\nsection, it's not immediately obvious what the difference is between\nusing --no-local versus --no-hardlinks when cloning a local repo. both\nseem to suggest that the local git transport mechanism will be used,\nso what is the difference?\n\nrday\n\n-- \n\n========================================================================\nRobert P. J. Day                                 Ottawa, Ontario, CANADA\n                  http://crashcourse.ca/dokuwiki\n\nTwitter:                                       http://twitter.com/rpjday\nLinkedIn:                               http://ca.linkedin.com/in/rpjday\n========================================================================\n"},{"id":"358272","messageId":"xmqq8t409no9.fsf@gitster-ct.c.googlers.com","threadId":"49358","inReplyTo":"alpine.LFD.2.21.1809170429140.8299@localhost.localdomain","subject":"Re: diff between \"--no-local\" and \"--no-hardlinks\" for local clone?","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2018-09-17T14:57:42Z","receivedAt":"2018-09-17T14:57:47Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"Robert P. J. Day\" <rpjday@crashcourse.ca> writes:\n\n>   perusing \"man git-clone\" and, from the first part of the OPTIONS\n> section, it's not immediately obvious what the difference is between\n> using --no-local versus --no-hardlinks when cloning a local repo. both\n> seem to suggest that the local git transport mechanism will be used,\n> so what is the difference?\n\nThe \"local\" optimization is designed to use hardlinks to share as\nmany object and pack files as possible to avoid copies.  You can\noptionally disable the use of hardlinks to always copy, without\ndisabling the \"local\" optimization.\n\nIf you say --no-local, --[no-]hardlinks has no relevance.\n"}]}