feature: add ${branch_name} option to commit templates (#589)

This commit is contained in:
Luis Frey 2024-10-22 03:44:53 +02:00 committed by GitHub
parent 6dac26d525
commit a8a7775b83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 4 deletions

View file

@ -1152,7 +1152,7 @@ namespace SourceGit.ViewModels
item.Icon = App.CreateMenuIcon("Icons.Code");
item.Click += (_, e) =>
{
CommitMessage = template.Apply(_staged);
CommitMessage = template.Apply(_repo, _staged);
e.Handled = true;
};
menu.Items.Add(item);