git commit message and global template
Kevin Funk
kfunk at kde.org
Fri Dec 4 14:41:30 GMT 2015
On Friday, December 04, 2015 02:34:21 PM René J.V. Bertin wrote:
> On Thursday December 03 2015 12:25:23 Kevin Funk wrote:
>
> Hi,
>
> >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).
>
> yes, that one is helpful too, but in a different way.
>
> >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.
>
> Thought so too.
> .gitconfig is in INI format or something that's hopefully close enough that
> one can use KConfig to check if there's a template key in the commit group;
> if so the feature should be as easy to implement as it is to fetch the
> contents of the file...
Better use the git executable.
Reasoning:
If you overwrite the template in $myproject/.git/config, `git config` returns
that and otherwise defaults to ~/.gitconfig (global).
I even think we have a thin C++ API for `git config` stuff.
Cheers,
Kevin
> R.
--
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/20151204/b057b28e/attachment.sig>
More information about the KDevelop
mailing list