#766696 clone --local: hardlink files in the worktree, too

Package:
git
Source:
git
Description:
fast, scalable, distributed revision control system
Submitter:
Dave Borowitz
Date:
2014-11-02 01:36:13 UTC
Severity:
wishlist
#766696#5
Date:
2014-10-24 22:49:52 UTC
From:
To:
 $ git clone git git2
 Cloning into 'git2'...
 done.
 $ stat .git/objects/pack/pack-00247519b7369a2f0c0ae1d8fbed9673caec1a6a.idx  | head -3
   File: ‘.git/objects/pack/pack-00247519b7369a2f0c0ae1d8fbed9673caec1a6a.idx’
   Size: 40244           Blocks: 80         IO Block: 4096   regular file
 Device: fc01h/64513d    Inode: 13107640    Links: 2
 $ stat git.c | head -3
   File: ‘git.c’
   Size: 19952           Blocks: 40         IO Block: 4096   regular file
 Device: fc01h/64513d    Inode: 12338950    Links: 1

It could be faster (and more space-efficient) to hardlink files in the
worktree, just like files in the object database are already
hardlinked.

#766696#12
Date:
2014-11-02 01:33:04 UTC
From:
To:
Hardlinking worktree won't work. The closet thing we can do is
copy-on-write links, which was discussed before [1]

[1] http://thread.gmane.org/gmane.comp.version-control.git/169460/focus=169724