commit_hookr 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.rdoc +15 -3
  2. data/features/cli.feature +3 -3
  3. metadata +3 -3
data/README.rdoc CHANGED
@@ -1,6 +1,8 @@
1
1
  = commit_hookr
2
2
 
3
- Configurable Git commit hooks for your team. Currently comes only with a Codebase commit menu.
3
+ Git commit-msg hook templates for your team. Currently comes only with a hook template for an interactive commit menu, because that's what we needed it for.
4
+
5
+ commit_hookr makes it easy to enforce commit message policies. We use it to make sure we don't forget to add our Codebase ticket numbers and times to the commit message. As the hook itself is checked into the project repository, it's automatically updated for all team members after their next pull when you change something.
4
6
 
5
7
  == Usage
6
8
 
@@ -10,11 +12,21 @@ Configurable Git commit hooks for your team. Currently comes only with a Codebas
10
12
 
11
13
  2. In your Git project's root:
12
14
 
13
- hookr codebase
15
+ hookr init codebase
14
16
 
15
17
  3. Edit .hookr to your liking. If you want to use Codebase ticket listing, you need to configure the codebase project name.
16
18
 
17
- 4. Never forget to put ticket ids and time in your commit messages again. ;)
19
+ 4. Enjoy.
20
+
21
+ There's also a shortcut for removing the commit_hookr files:
22
+
23
+ hookr clear
24
+
25
+ == Issues
26
+
27
+ Committing with GitX won't work after initializing the Codebase hook. It's still a useful tool though, you just won't be able to hit the commit button.
28
+
29
+ If you come across any, either fix the problem and send me a pull request, or post it to http://github.com/skddc/commit_hookr/issues .
18
30
 
19
31
  == Note on Patches/Pull Requests
20
32
 
data/features/cli.feature CHANGED
@@ -4,8 +4,8 @@ Feature: commit_hookr Command Line Interface
4
4
  I want to use the hookr command to add and remove commit hooks
5
5
 
6
6
  Background:
7
- Given a directory named "~/some_project"
8
- And I cd to "~/some_project"
7
+ Given a directory named "some_project"
8
+ And I cd to "some_project"
9
9
  And I run "git init"
10
10
 
11
11
  Scenario: Run hookr in a directory that's not a Git project root
@@ -36,7 +36,7 @@ Feature: commit_hookr Command Line Interface
36
36
  | .git/hooks/commit-msg |
37
37
 
38
38
  Scenario: Clear commit hook
39
- When I run hookr with "init codebase"
39
+ Given I run hookr with "init codebase"
40
40
  When I run hookr with "clear"
41
41
  Then I should see "Well then, if it makes you happy..."
42
42
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 5
9
- version: 0.1.5
8
+ - 6
9
+ version: 0.1.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Bumann
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-03-20 00:00:00 +01:00
18
+ date: 2010-03-21 00:00:00 +01:00
19
19
  default_executable: hookr
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency