On Feb 22, 2011, at 10:34 AM, Michael Meeks wrote:
PS. of course, perhaps this is 'just me' - for space / time /
simplicty / certainty reasons, I do a lot of "cp -lR foo/.git baa/" to
duplicate trees - but AFAIK all git operations are atomic and use
renames rather than in-place re-writing: right ?
FYI: `git clone foo bar` will use hard-links to copy the object files and is both very fast and space efficient. (See the description of `--local` in git-clone(1), which is used by default for local repositories since git 1.5.3.) It's also guaranteed to work while the correctness of `cp -lR` depends on implementation details of git.
~~ Brian