Closed tennisfar closed 6 years ago
Added a git.restoreCommitTemplate
command which you can invoke to refresh the commit message with the template.
@joaomoreno The restore command is not available in the command pallet. I had to assign a keybinding to the command and then invoke it via the keybinding.
Was this intended?
Yeah, I don't think it's a command worth putting in the command palette. Seems to be very specific for users who actively modify .gitmessage
, doesn't happen often.
@joaomoreno Thanks. :)
Tested on:
Steps to Reproduce:
.gitmessage
template file with some text in it, and link to it from inside your.gitconfig
file, something like this:.gitmessage
..gitmessage
without closing VSC.Problem is.. how to make VSC update the commit message to the latest content in
.gitmessage
without restarting VSC?The reason why I'm needing this is that i have a post-checkout git hook that modifies
.gitmessage
, adding part of the name of the branch I've switched to. If, for example, I switch to a branch namedfeature/IU-1234-foo-bar
, then my template is updated withIU-1234
.It seems like I can only make VSC re-read
.gitmessage
by restarting VSC.