Custom command - PreCyz/GitDiffGenerator GitHub Wiki

Support for custom commands

You are allowed to use your own command that will produce diff from the repository. To do so go to Settings → Application and choose tab Custom command tab. The screen with default settings looks like the following:

Custom command default values

To set your own command select proper checkbox and enter your command. The following picture presents how it can be done:

Custom command for git

Settings are automatically saved on window close. Above example presents the following command:

git log | grep ${author}

That command is going to be used during the item generation from the git repository. For other repositories you need to do the same steps. One useful hint. You can use placeholders as long as they are exactly the same as the parameters supported by Gipter. You are allowed to use following placeholders: author, gitAuthor, mercurialAuthor, svnAuthor, committerEmail, startDate, endDate as long as you surround the placeholder with ${ at the beginning and } at the end. The text fields supports autocompletion, it means that when you enter { then available option will be displayed to autocomplete. Here is the example visualizing that cool feature:

Autocompletion

When predefined value is used, it will be replaced by the actual value on-the-fly. If the predefined value is not available, meaning the application can not find it among the run configuration settings then the custom command will not work properly. Do not worry about startDate and endDate but if you want to use all others make sure that they are available.

Note: If you enter the author by hand with the space inside, make sure that you surrund the value with ". Here is an example: author=\"Obi Wan Kenobi\".