Re: [PATCH] import-tars: support hard links

2016-08-04 Thread Johannes Schindelin
Hi Junio, On Wed, 3 Aug 2016, Junio C Hamano wrote: > Johannes Schindelin writes: > > > --- > > Published-As: > > https://github.com/dscho/git/releases/tag/import-tars-hardlink-v1 > > A link to a page that lets you download entire source tarball is not > very useful to most people, except for

Re: [PATCH] import-tars: support hard links

2016-08-03 Thread Junio C Hamano
Johannes Schindelin writes: > Previously, we simply treated hard links as if they were plain files > with size 0, ignoring the link type "1" and hence the link target. Nicely spotted and explained. > Signed-off-by: Johannes Schindelin > --- > Published-As: > https://github.com/dscho/git/relea

[PATCH] import-tars: support hard links

2016-08-03 Thread Johannes Schindelin
Previously, we simply treated hard links as if they were plain files with size 0, ignoring the link type "1" and hence the link target. What we should do instead, of course, is to use the link target to get at the import mark for the contents, even if we cannot recreate the hard link per se, as Gi