git commit message and global template

Kevin Funk kfunk at kde.org
Thu Dec 3 11:25:23 GMT 2015


On Thursday, December 03, 2015 12:08:16 PM René J.V. Bertin wrote:
> Hi,
> 
> I'm pretty sure I've seen cases in which git commits made through KDevelop
> (4) included the KDE commit template in the commit message editor, but most
> of the time I don't see it appearing at all.

Disclaimer: I have no idea about that functionality, as I rarely^Wnever use 
the Patch Review system in KDevelop.

But regarding the commit message editor, you should find your way around 
easily by checking this class:
  kdevplatform.git:vcs/widgets/vcsdiffpatchsources.cpp

I don't see any trace of pulling in a Git commit message template, but I do 
something that remembers old commit messages (see 
VCSCommitDiffPatchSource::addMessageToHistory).

Patches welcome I'd say -- would be helpful to honor the Git commit message 
template (`git config commit.template`) here, and use it in the commit message 
editor.

Cheers,
Kevin

> Is this a feature that was removed, or does it require having a specific
> file in the working copy rather than using the setting from ~/.gitconfig?
> 
> I'd like to add a line helping me to keep track from where I make commits,
> so it has to be done through a global mechanism.
> 
> Thanks,
> René
> _______________________________________________
> KDevelop mailing list
> KDevelop at kde.org
> https://mail.kde.org/mailman/listinfo/kdevelop

-- 
Kevin Funk | kfunk at kde.org | http://kfunk.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop/attachments/20151203/00d55bab/attachment.sig>


More information about the KDevelop mailing list