From 9e65dd757f9fe8e031ea936ce4e2a8cb998f7f83 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 8 Apr 2016 15:25:32 -0400 Subject: hard links on windows * annex.thin and annex.hardlink are now supported on Windows. * unannex --fast now makes hard links on Windows. --- Annex/Content.hs | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Annex') diff --git a/Annex/Content.hs b/Annex/Content.hs index 9c4c1d5b8..a17098ad7 100644 --- a/Annex/Content.hs +++ b/Annex/Content.hs @@ -594,14 +594,10 @@ linkOrCopy' canhardlink key src dest = catchBoolIO $ where hardlink = do s <- getstat -#ifndef mingw32_HOST_OS if linkCount s > 1 then copy s else liftIO (createLink src dest >> return True) `catchIO` const (copy s) -#else - copy s -#endif copy = checkedCopyFile' key src dest getstat = liftIO $ getFileStatus src -- cgit v1.2.3