# Platform support Where Cleft clones files: APFS clonefileat on macOS, FICLONE on Linux XFS and Btrfs, and what happens when the filesystem cannot. ## Choose a volume Reflinks share file data until a write. Changing a file in the new worktree does not change the source file. Git metadata is still shared, as it is with any linked worktree. ## macOS with APFS On APFS, Cleft uses `clonefileat` to clone clean files. It can clone whole clean subtrees and use Git objects for the files that differ. ## Linux with XFS or Btrfs On XFS formatted with `reflink=1` and on Btrfs, Cleft uses the `FICLONE` ioctl. It creates directories and clones files in parallel. Put the source and destination on the same writable reflink-capable volume. ## When cloning is unavailable On filesystems without compatible copy-on-write cloning, such as ext4, tmpfs or NFS, Cleft delegates to `git worktree add`. Across volumes, Git creates the worktree without cloning. Use `--require-cow` to fail instead of allowing Git to create the worktree. Windows is not supported.