Skip to content

[Feature request] Split off selected files from a commit #1381

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
CrendKing opened this issue May 31, 2025 · 2 comments
Closed

[Feature request] Split off selected files from a commit #1381

CrendKing opened this issue May 31, 2025 · 2 comments
Assignees

Comments

@CrendKing
Copy link

I recently tried to switch from SmartGit to SourceGit. One of the feature I miss is its "Split Off Files" function. I can select files in a commit, select the menu, then choose to split before or after (see below). SmartGit will move those selected files into a separate commit, before or after the original commit, depending on the choice.

I think it is close to what #767 was trying to achieve, but automate every step.

Image
Image

@love-linger
Copy link
Collaborator

I suggest you use Interactive Rebase as it has complete supports to edit existed commits.

In addition, if the operation target is just the HEAD commit, you can directly enable the Amend option and unstage these changes you want to commit it later.

@love-linger love-linger self-assigned this May 31, 2025
@CrendKing
Copy link
Author

CrendKing commented May 31, 2025

Thank you. I understand interactive rebase can do the feature I'm requesting, plus much more. What I suggested is that, since I find splitting commit a commonly used function, I think it worth a place in the GUI design. The procedure is straightforward and bear no risk of introducing conflict, but has multiple steps (rebase, reset, multiple commits, continue), which is tedious to do manually often. It is a feature with high reward-effort ratio. Take your time to consider it. No rush.

You are right about the HEAD commit. But I find myself mostly split off commits that is not the HEAD.

@CrendKing CrendKing closed this as not planned Won't fix, can't repro, duplicate, stale Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants