Skip to content

fix: clear stale commit message after an external operation ends - #2741

Merged
love-linger merged 1 commit into
sourcegit-scm:developfrom
d-tatianin:leftover-commit-fix
Sep 24, 2026
Merged

love-linger merged 1 commit into
sourcegit-scm:developfrom
d-tatianin:leftover-commit-fix

Conversation

@d-tatianin

Copy link
Copy Markdown

When a rebase, merge, cherry-pick or revert is in progress, the working copy auto-fills the commit message box from MERGE_MSG, rebase-merge/message or the commit being replayed. If that operation then finishes or is aborted outside SourceGit (e.g. from the terminal), the loaded text stayed in the box, got persisted as the last commit message on close, and reappeared on every later open of the repository.

Remember which message was auto-loaded and clear it once the in-progress state disappears, unless the user has edited the text in the meantime.

When a rebase, merge, cherry-pick or revert is in progress, the working
copy auto-fills the commit message box from `MERGE_MSG`,
`rebase-merge/message` or the commit being replayed. If that operation
then finishes or is aborted outside SourceGit (e.g. from the terminal),
the loaded text stayed in the box, got persisted as the last commit
message on close, and reappeared on every later open of the repository.

Remember which message was auto-loaded and clear it once the in-progress
state disappears, unless the user has edited the text in the meantime.

Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
@love-linger love-linger self-assigned this Sep 24, 2026
@love-linger love-linger added the enhancement New feature or request label Sep 24, 2026
@love-linger
love-linger merged commit 0b253cc into sourcegit-scm:develop Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants