Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366758

Summary: Requesting the capability to amend a commit message
Product: [Technology] EGit Reporter: Daniel U. Thibault <d.u.thibault>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: remy.suen, robin
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Daniel U. Thibault CLA 2011-12-14 16:40:54 EST
Build Identifier: 20110916-0149 3.7.1 CDT+IC (Indigo Service Release 1 eclipse-linuxtools-indigo-SR1-incubation-linux-gtk-x86_64)

Eclipse's History view of git commits (Project (contextual): Team: Show in History) displays the commit message of any given commit.  It does not, however, allow editing this message.  One has to resort to the command line and do a 'git commit --amend' followed by some editing (it's a little more complicated if the message you want to change is not that of the most recent commit).  It would be nice if one could edit (and save) the commit message right from the History view.

Obviously, Eclipse should refuse to do so once the commit has been pushed out.

Reproducible: Always

Steps to Reproduce:
1. Inspect a git project
2. Obtain the project's contextual menu in the Project Explorer
3. Select Team: Show in History
4. Browse the commit message in the History view
Comment 1 Remy Suen CLA 2011-12-20 12:30:23 EST
(In reply to comment #0)
> One has to resort to the command line and
> do a 'git commit --amend' followed by some editing (it's a little more
> complicated if the message you want to change is not that of the most recent
> commit).

You can invoke another 'Team > Commit' and append the message this way. The alternative is to use the 'Git Staging' view.
Comment 2 Robin Stocker CLA 2013-05-26 17:29:32 EDT

*** This bug has been marked as a duplicate of bug 358716 ***