What happens on ext4?
It refuses and says why. ext4 has no way to share blocks between two files, so every copy would cost the full size.
It refuses and says why. ext4 has no way to share blocks between two files, so every copy would cost the full size.
gitto: copying here costs the full size, so a clone would too.
macOS needs APFS; Linux needs btrfs, XFS with reflink=1, or OpenZFS 2.2+.
ext4 and tmpfs cannot share blocks at all.Does this work on Linux?
The script is POSIX and uses no BSD-only spelling, so the reflink path calls `cp --reflink=always` and reads free space through `df -k`. It has not been run on Linux. The probe measures what a copy actually consumed, so a filesystem it guesses wrong about refuses the clone rather than making a full copy of 13 GB.
Can I run it from inside a clone?
Yes, and what you get is another clone of the same canonical. Each clone records where it came from in a `.gitto` file, so every command resolves the canonical from wherever you are standing, and a chain of clones of clones cannot form.