Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Overcommit Changelog

## master (unreleased)

* Add [`GitLfs`](https://git-lfs.github.com/) post-checkout, post-commit and post-merge hooks

## 0.42.0

### New Features
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,6 @@ but before any objects have been transferred. If a hook fails, the push is
aborted.

* [Brakeman](lib/overcommit/hook/pre_push/brakeman.rb)
* [GitLfs](lib/overcommit/hook/pre_push/git_lfs.rb)
* [Minitest](lib/overcommit/hook/pre_push/minitest.rb)
* [ProtectedBranches](lib/overcommit/hook/pre_push/protected_branches.rb)
* [Pytest](lib/overcommit/hook/pre_push/pytest.rb)
Expand Down
54 changes: 37 additions & 17 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,12 @@ PostCheckout:
flags: ['install']
include: 'composer.json'

GitLfs:
enabled: false
description: 'Check status of lockable files tracked by Git LFS'
required_executable: 'git-lfs'
install_command: 'brew install git-lfs'

IndexTags:
enabled: false
description: 'Generate tags file from source'
Expand Down Expand Up @@ -906,6 +912,12 @@ PostCommit:
flags: ['HEAD~', 'HEAD']
install_command: 'npm install -g git-guilt'

GitLfs:
enabled: false
description: 'Check status of lockable files tracked by Git LFS'
required_executable: 'git-lfs'
install_command: 'brew install git-lfs'

IndexTags:
enabled: false
description: 'Generate tags file from source'
Expand Down Expand Up @@ -974,6 +986,12 @@ PostMerge:
flags: ['install']
include: 'composer.json'

GitLfs:
enabled: false
description: 'Check status of lockable files tracked by Git LFS'
required_executable: 'git-lfs'
install_command: 'brew install git-lfs'

IndexTags:
enabled: false
description: 'Generate tags file from source'
Expand Down Expand Up @@ -1082,6 +1100,25 @@ PrePush:
required: false
quiet: false

Brakeman:
enabled: false
description: 'Check for security vulnerabilities'
required_executable: 'brakeman'
flags: ['--exit-on-warn', '--quiet', '--summary']
install_command: 'gem install brakeman'

GitLfs:
enabled: false
description: 'Upload files tracked by Git LFS'
required_executable: 'git-lfs'
install_command: 'brew install git-lfs'

Minitest:
enabled: false
description: 'Run Minitest test suite'
command: ['ruby', '-Ilib:test', '-rminitest', "-e 'exit! Minitest.run'"]
include: 'test/**/*_test.rb'

ProtectedBranches:
enabled: false
description: 'Check for illegal pushes to protected branches'
Expand Down Expand Up @@ -1115,28 +1152,11 @@ PrePush:
required_executable: 'rake'
install_command: 'gem install rake'

Minitest:
enabled: false
description: 'Run Minitest test suite'
command: ['ruby', '-Ilib:test', '-rminitest', "-e 'exit! Minitest.run'"]
include: 'test/**/*_test.rb'

TestUnit:
enabled: false
description: 'Run Test::Unit test suite'
command: ['ruby', '-Ilib:test', '-rtest/unit', "-e 'exit! Test::Unit::AutoRunner.run'"]

Brakeman:
enabled: false
description: 'Check for security vulnerabilities'
required_executable: 'brakeman'
flags: ['--exit-on-warn', '--quiet', '--summary']
install_command: 'gem install brakeman'

GitLfs:
enabled: false
description: 'Upload files tracked by Git LFS'

# Hooks that run during `git rebase`, before any commits are rebased.
# If a hook fails, the rebase is aborted.
PreRebase:
Expand Down
20 changes: 0 additions & 20 deletions lib/overcommit/hook/pre_push/git_lfs.rb

This file was deleted.

39 changes: 0 additions & 39 deletions spec/overcommit/hook/pre_push/git_lfs_spec.rb

This file was deleted.