Re: More problems...
- From
Junio C Hamano <junkio@cox.net>
- Date
- Apr 29, 2005, 21:07 UTC
- Message-ID
- <7vhdhp47hq.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.58.0504291311320.18901@ppc970.osdl.org>
>>>>> "LT" == Linus Torvalds <torvalds@osdl.org> 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.