Skip to content

[Feat] Allow users to abort running commands #699

Description

@albertodlc

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

Activity

  1. love-linger commented on Nov 14, 2024

    @love-linger
    Collaborator

    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.

  2. self-assigned this
    on Nov 14, 2024
  3. added
    suggestionWe are still considering whether it is necessary to add this feature
    on Nov 14, 2024
  4. aikawayataro commented on Nov 14, 2024

    @aikawayataro
    Contributor

    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

  5. albertodlc commented on Nov 14, 2024

    @albertodlc
    ContributorAuthor

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

  6. aikawayataro commented on Nov 14, 2024

    @aikawayataro
    Contributor

    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

  7. dougcunha commented on Nov 16, 2024

    @dougcunha
    Contributor

    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.

  8. Repository owner locked and limited conversation to collaborators on Nov 27, 2024
  9. converted this issue into a discussion #753 on Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

suggestionWe are still considering whether it is necessary to add this feature

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions