Useful git hooks – Part 2

Continuing Useful git hooks

Repo – https://bitbucket.org/mnaoumov/githooks/

I completely reviewed the idea of testing hooks

You just grab the code from repository, it has only master branch

Then you run PrepareForTests.ps1

And it creates local repository and branches to emulate the situations handled by hooks.

README.md contains good explanation how to test hooks.

Also I implemented commit-msg hook which checks that all your commit messages prefixed with corresponding TFS work item ID

Provide TFS WorkItem ID dialog

To be continued…

Useful git hooks – Part 3

Advertisements

About mnaoumov

Senior .NET Developer in Readify
This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

2 Responses to Useful git hooks – Part 2

  1. Pingback: Useful git hooks | mnaoumov.NET

  2. Pingback: Useful git hooks – Part 3 | mnaoumov.NET

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s