A slightly more complicated example
We have looked at a basic plugin and have discussed how to keep our server plugins as light as possible. Well, this sample is not completely lightweight, but it does give TFVC uses. This is something cool that exists for Git users because of the nature of distributed source control which is auto-linked to Git. It commits to work items just by adding #id
to your commit message.
This makes it easier to link your changesets
to work items if you are used to the Git way of doing it, or maybe if you use a tool such as git-tf
, which allows you to use Git commands against TFS by translating all server commands into TFVC commands and doing some fancy work behind the scenes so that you feel as if you are using Git. But actually, you are using TFVC.
So, we'll set up all of the code the same way as before, but this time, we will call the GitStyleWorkItemLinkingServerPlugin
class. All that we are going to change in the opening properties is the name, to Git Style Work...