Seems that I am getting from one problem to the next :-(
RunWithSCM.html#getChangeSets returns a list of changes in the current build. The links I want to create are commits that are not necessarily in the current build. The participating build may even be deleted because the commit is too old. RepositoryBrowser#getChangeSetLink(E changeSet) requires a ChangeSet which seems to have no simple public constructor.
Maybe my use cases needs some explanation: the warnings plugin shows blames with commit IDs where and when a warning has been introduced.
And the Git forensics plugin shows statistics of all commits for a file. Currently I show the links in plain text. What I simply want for these files:
Input: a commit hash like: d70ffafe55c68dfebd7fee405ec451f1493c37bd