Add support for editing commit message

Change-Id: Ice60e8ba0a08864ce2025af85ab1152aae9d88f8