Skip to content

Create symlinks instead of junctions on Windows? #36

@hoegge

Description

@hoegge

On windows, the junctions created by linklocal means that git clean does not only delete the symlinks (junctions) but also the files in the linked folders, which then prevens the use of git clean with linklocal / yarn. This is apparently not the case on UNIX.

Would it be possible to change linklocal to create symlinks on Windows instead (which does exist in the NTFS filesystem now) (see mklink documentation)?

As documented here https://www.bountysource.com/issues/990899-git-clean-d-deletes-files-in-junctioned-directories-on-windows git clean -df will delete files in folders linked by junctions. I have tried the same thing using mlink /D link target instead, and then files in the linked folder is not deleted.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions