hard links on windows
* annex.thin and annex.hardlink are now supported on Windows. * unannex --fast now makes hard links on Windows.
This commit is contained in:
parent
251405eca2
commit
cf06dac2b8
8 changed files with 29 additions and 26 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue