From 6eb226eb4492d2fe6a05fb3162da0f782d3f5fc1 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 12 Dec 2024 20:01:10 +0800 Subject: [PATCH] fix: wrong whitespace at start of the last commit message while interactive rebasing (#790) --- src/Commands/QueryCommitsWithFullMessage.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Commands/QueryCommitsWithFullMessage.cs b/src/Commands/QueryCommitsWithFullMessage.cs index b307fca8..efa16df9 100644 --- a/src/Commands/QueryCommitsWithFullMessage.cs +++ b/src/Commands/QueryCommitsWithFullMessage.cs @@ -71,6 +71,9 @@ namespace SourceGit.Commands end = rs.StdOut.IndexOf('\n', start); } + if (_current != null) + _current.Message = _current.Message.Trim(); + return _commits; }