Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Feature] Support for WSL git#1357

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
roguesaloon wants to merge1 commit intosourcegit-scm:develop
base:develop
Choose a base branch
Loading
fromroguesaloon:feature/wsl-support

Conversation

roguesaloon
Copy link

@roguesaloonroguesaloon commentedMay 23, 2025
edited
Loading

Allows for sourcegit to use WSL git (from default distribution) when working inside a WSL directory with UNC path (i.e.\\wsl.localhost) on Windows. Dynamically chooses to use WSL git over windows git based on the filepath.

This allows users to manage WSL repos through the same windows instance of sourcegit alongside windows repos, which is a huge win for my own personal workflow. Partly based on similar WSL implementation in GitExtensions.

adrianinsaval reacted with thumbs up emoji
@roguesaloonroguesaloon changed the titleSupport for WSL git[Feature] Support for WSL gitMay 23, 2025
@love-linger
Copy link
Collaborator

I don't recommend doing this. The reasons are:

  • SourceGit supports to run on Linux platform. Users can run it in WSL distro directly.
  • Users can also store their local repo in Windows side, and use paths like/mnt/<driver>/<path_to_repo> to access this repo in WSL distro side.
  • In this PR:
    • The file system monitoring feature may not work properly. This means that users may need to manually refresh to see the latest state of the repository.
    • Open in Terminal may not work properly.

@roguesaloon
Copy link
Author

roguesaloon commentedMay 27, 2025
edited
Loading

@love-linger Thanks for the feedback, you are also right on the functionality front. The terminal should be an easy fix but I'll likely need to find some more time to investigate a proper solution for the File Watcher (which I had completely missed wasn't working), so I'll put this into draft for now, until I can get back to it.

As for the motivation for supporting this:

  • If we run SourceGit in WSL directly we need to effectively run it twice in two separate instances (on windows and linux). I personally have a handful of repos under windows and a handful under WSL, so this is annoying at best. Managing lots of repositories quickly in a centralized place is one of the main pros of using a GUI for git IMO.
  • Storing files in/mnt/c/dev (which could be managed natively with windows git) for WSL isn't very practical due to major IO bottlnecks between the two. I have tried this and it effectively results in files being almost unusable for development (at least in WSL2, WSL1 does support this a bit better).
  • Other git GUIs like Kraken, Tower, and GitExtensions already support using WSL in this way, so it seems like a sensible idea.
NathanBaulch and adrianinsaval reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@roguesaloon@love-linger

[8]ページ先頭

©2009-2025 Movatter.jp