From: Junio C Hamano Date: Fri, 29 Apr 2005 21:07:29 GMT Subject: Re: More problems... Message-ID: <7vhdhp47hq.fsf@assigned-by-dhcp.cox.net> In-Reply-To: >>>>> "LT" == Linus Torvalds writes: LT> Absolutely. I use the same "git-pull-script" between two local directories LT> on disk... LT> Of course, I don't bother with the linking. But that's the trivial part. Would it be useful if somebody wrote local-pull.c similar to http-pull.c, which clones one local SHA_FILE_DIRECTORY to another, with an option to (1) try hardlink and if it fails fail; (2) try hardlink and if it fails try symlink and if it fails fail; (3) try hardlink and if it fails try copy and if it fails fail? Then from a source repository that contains good stuff plus throwaway experimental commits you can prepare pruned for-public tree. Of course you can do it today by copying and then running git-prune in the destination, though.