OSDN Git Service

import-tars: support hard links
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 3 Aug 2016 13:30:20 +0000 (15:30 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 3 Aug 2016 16:46:11 +0000 (09:46 -0700)
commit04e0869876f726d5af9ac901911781d440e6aed2
treedff4aa7981ed756d4efb81c7ecb96c14d0e3f790
parente46579643d56162299b1756b70d418005351b256
import-tars: support hard links

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 Git has no concept of hard links.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/fast-import/import-tars.perl