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

[Feat] Allow users to abort running commands #753

albertodlc started this conversation in Ideas
Discussion options

Allow users to cancel running commands to avoid waiting until the error message is displayed.

Example
I tried to push a commit and I didn't have connectivity with the remote, so I had to wait until Sourcegit return an error
image
image

You must be logged in to vote

Replies: 6 comments

Comment options

It's not safe to cancel a running git command directly. You can use git config --global http.timeout <SECONDS> to reduce the waiting time of network connection.

You must be logged in to vote
0 replies
Comment options

I think it is safe to send SIGTERM to gracefully stop git as it installs a handler for this. The problem is there's no dotnet API for such thing dotnet/runtime#109432

You must be logged in to vote
0 replies
Comment options

GitExtension allow this behavior. And it is based on dotnet (I think) so maybe we can replicate their approach.

You must be logged in to vote
0 replies
Comment options

GitExtension allow this behavior. And it is based on dotnet (I think) so maybe we can replicate their approach.

Their approach is Windows-only

It is possible to use p/invoke and call whatever we need for the corresponding OS but that's cumbersome

You must be logged in to vote
0 replies
Comment options

I also intended to propose this feature. I've experienced significant delays cloning GitHub repositories in SourgeGit, with no option to cancel except by forcefully terminating the SourgeGit processes. Although the cloning issue can be problematic in itself, a dedicated cancel button would be a valuable addition.

You must be logged in to vote
0 replies
Comment options

I'm also in favor of this proposal.
I regularly run into this problem when triggering fetch/pull/push on a repository, which requires a VPN being connected. If I forgot that and establish the VPN connection shortly after triggering e.g. fetch, then I still have to wait for quite a while (like a connectivity timeout).
My workaround is to quit SourceGit and restart, which doesn't seem ideal.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
suggestion We are still considering whether it is necessary to add this feature
Converted from issue

This discussion was converted from issue #699 on November 27, 2024 11:29.

AltStyle によって変換されたページ (->オリジナル) /