GNOME Bugzilla – Bug 699400
display automatically generated log message after 'git revert'
Last modified: 2013-05-03 22:44:20 UTC
After I run 'git revert' to revert a previous commit, when I run 'git commit' from the command line I see a helpful automatically generated log message (which I can edit if I like): === Revert "window: restore size after hide/show properly" This reverts commit 38b62e4660a470cdda94480d3ab6da467125998e. Conflicts: gtk/gtkwindow.c === But if I commit from within Meld I don't see this log message. I should.
If I understand correctly, the situation is that you've run git revert -n <commit-ish> from the command line, and have then gone to Meld to commit? I agree it would be nice if we handled this, but this is basically about much more extensive index support, and we don't have a lot of that. Anyway, I guess we'd just get the contents of os.path.join(vc.root, ".git", "COMMIT_EDITMSG") and put them in the dialog.
(In reply to comment #1) > If I understand correctly, the situation is that you've run git revert -n > <commit-ish> from the command line, and have then gone to Meld to commit? Yes, exactly. > I agree it would be nice if we handled this, but this is basically about much > more extensive index support, and we don't have a lot of that. To be clear, I wasn't asking to be able to perform a 'git revert' itself from within Meld - I agree that's way beyond the scope of Meld's git support today. > Anyway, I guess we'd just get the contents of os.path.join(vc.root, ".git", > "COMMIT_EDITMSG") and put them in the dialog. Right - that's all I'm asking for.
Turns out that this was MERGE_MSG. COMMIT_EDITMSG is the temp location for things being edited. Anyway, this is fixed in head. Thanks.
fantastic!