This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I5056e43e0aea5d8379423b82ac2c1a0416bb4927
- Loading branch information
Patrick Bozeman
committed
Oct 20, 2011
0 parents
commit 3828de0
Showing
9 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Gemfile.lock | ||
.build | ||
*.gem | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Copyright (c) 2010-2011 VMware Inc, All Rights Reserved | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
|
||
This software downloads additional open source software components upon install | ||
that are distributed under separate terms and conditions. Please see the license | ||
information provided in the individual software components for more information. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Cloud Foundry | ||
Copyright (c) [2009-2011] VMware, Inc. All Rights Reserved. | ||
|
||
This product is licensed to you under the Apache License, Version 2.0 (the "License"). | ||
You may not use this product except in compliance with the License. | ||
|
||
This product includes a number of subcomponents with | ||
separate copyright notices and license terms. Your use of these | ||
subcomponents is subject to the terms and conditions of the | ||
subcomponent's license, as noted in the LICENSE file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# caldecott | ||
|
||
TBD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
$:.unshift File.expand_path("../lib", __FILE__) | ||
|
||
require 'caldecott/version' | ||
|
||
spec = Gem::Specification.new do |s| | ||
s.name = "caldecott" | ||
s.version = Caldecott::VERSION | ||
s.author = "VMware" | ||
s.email = "support@vmware.com" | ||
s.homepage = "http://vmware.com" | ||
s.description = s.summary = "TBD" | ||
|
||
s.platform = Gem::Platform::RUBY | ||
s.extra_rdoc_files = ["README.md", "LICENSE"] | ||
|
||
s.require_path = 'lib' | ||
s.files = %w(LICENSE README.md) + Dir.glob("{lib}/**/*") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
if [ -x $0.local ]; then | ||
$0.local "$@" || exit $? | ||
fi | ||
|
||
REPO_DIR=$(dirname $GIT_DIR) | ||
if [ -x $REPO_DIR/git/tracked_hooks/$(basename $0) ]; then | ||
$REPO_DIR/git/tracked_hooks/$(basename $0) "$@" || exit $? | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
HOOK_NAMES=" | ||
applypatch-msg | ||
pre-applypatch | ||
post-applypatch | ||
pre-commit | ||
prepare-commit-msg | ||
commit-msg | ||
post-commit | ||
pre-rebase | ||
post-checkout | ||
post-merge | ||
pre-receive | ||
update | ||
post-receive | ||
post-update | ||
pre-auto-gc | ||
" | ||
|
||
HOOK_SRC=$(dirname $0) | ||
HOOK_DIR=$(git rev-parse --git-dir)/hooks || exit $? | ||
|
||
for hook in $HOOK_NAMES; do | ||
if [ ! -h $HOOK_DIR/$hook -a -x $HOOK_DIR/$hook ]; then | ||
mv $HOOK_DIR/$hook $HOOK_DIR/$hook.local | ||
fi | ||
ln -s -f ../../git/hooks-wrapper $HOOK_DIR/$hook | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh | ||
|
||
if git rev-parse --verify HEAD >/dev/null 2>&1 | ||
then | ||
against=HEAD | ||
else | ||
# Initial commit: diff against an empty tree object | ||
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 | ||
fi | ||
|
||
exec git diff-index --check --cached $against -- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Copyright (c) 2009-2011 VMware, Inc. | ||
|
||
module Caldecott | ||
VERSION = '0.0.1' | ||
end |