Commit b7dff8f
committed
fix: clear stale commit message after an external operation ends
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>1 parent a4ae633 commit b7dff8f
1 file changed
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
807 | 807 | | |
808 | 808 | | |
809 | 809 | | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
810 | 816 | | |
811 | 817 | | |
812 | 818 | | |
| |||
816 | 822 | | |
817 | 823 | | |
818 | 824 | | |
819 | | - | |
| 825 | + | |
820 | 826 | | |
821 | 827 | | |
822 | 828 | | |
| |||
828 | 834 | | |
829 | 835 | | |
830 | 836 | | |
831 | | - | |
| 837 | + | |
832 | 838 | | |
833 | 839 | | |
834 | 840 | | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
835 | 853 | | |
836 | 854 | | |
837 | 855 | | |
| |||
942 | 960 | | |
943 | 961 | | |
944 | 962 | | |
| 963 | + | |
945 | 964 | | |
946 | 965 | | |
0 commit comments