Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Eclipse plug-in to access git config keys from java templates.

Notifications You must be signed in to change notification settings

harmsk/eclipse-git-template-variables

Repository files navigation

Git Template Variables Eclipse Plug-in

Eclipse plug-in to access git config keys from java templates.

IMPORTANT!

This plugin is now obsolete. As of EGit 4.0, this feature is now officially part of EGit. https://bugs.eclipse.org/bugs/show_bug.cgi?id=458505

About

This plugin allows you to access any git config key inside of a Java template from Eclipse. This can be useful if you want to match the @author with the git commit author. For example, instead of having change user.name java property in your eclipse.ini file, which will break other eclipse features like SSH, you can use this plugin to access the name of the current git user. Now there is no need to set -Duser.name in your eclipse.ini if your project is using git to have a proper full name for the javadoc @author attribute!

Installation

Grab it from this update site: http://harmsk.github.com/eclipse-git-template-variables/updatesite

Usage

Make sure your project is shared using Egit. From the templates editor, simply use the git_config variable.

Example:

/**
 * @author ${git_user_name:git_config(user.name)} ${git_user_email:git_config(user.email)}
 *
 * ${tags}
 */

About

Eclipse plug-in to access git config keys from java templates.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published