When I click "amend latest commit" it doesn't seem to add the last commit message (post commit-msg hook) to the commit message text box for me. In my case we use gerrit and there is a unique Change-Id generated in the commit-msg hook that needs to be sent withi any amended changes.
using the command line tools "git commit --amend" does this, as do other GUI clients I have used.
Question was actually about restoring the previous commit message when the amend commit option is checked. This is being tracked here: https://jira.atlassian.com/browse/SRCTREE-697
I don't think this would be desired behaviour for most people anyway; when you amend a commit, you want control over what's in the commit message. If your tools like to see change ids, you can add them - but really I don't think amending commits that have already been pushed elsewhere is a good idea anyway.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah I see - sorry I thought you meant adding the previous commit SHA.
This issue is being tracked here: https://jira.atlassian.com/browse/SRCTREE-697
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.