Re: [PATCH] copy: prefer reflinks for file copies

Junio C Hamano <[email protected]>
Newsgroups org.kernel.vger.git
Message-ID <[email protected]>
"Vlad Petric via GitGitGadget" <[email protected]> writes:

> For local clones, try a reflink before the existing hardlink path. The
> resulting order is therefore:
>
>   - reflink;
>   - hardlink, unless --no-hardlinks was requested;
>   - byte-for-byte copy.

If copy-on-write works in situations where hard links are not
available, using it as a fallback might make sense.  However,
we are talking about object files that are immutable.  You have
no reason to update them to trigger copy-on-write at all.  The
only changes you would make in the destination directories in
the new repository's '.git/objects/' are removal or creation,
never modification.  Therefore, I do not understand why anyone
would want to use the above order.  Could you elaborate?

Thanks.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.