Git Log


Commit Date  
[090fc1] (hooks) by Brad King Brad King

pre-commit: Add check for CRLF even without trailing whitespace

When .gitattributes disables trailing whitespace checks we still
want to avoid allowing CRLF newlines from entering the repository.
Add an explicit check for them.

2013-05-02 20:02:35 Tree
[11679f] by Ben Boeckel Ben Boeckel , pushed by Brad King Brad King

commit-msg: Remove MERGE_HEAD check from msg_is_merge

When using "git commit --amend" to edit a merge commit message the
MERGE_HEAD is long gone. Also, some Git versions remove this file
before the commit-msg hook is called. In either case we should still
allow long summary lines that start in 'Merge ' just as we do for
'Revert '.

2013-04-16 16:52:37 Tree
[0d9698] by Brad King Brad King

Load project-specific "start" hooks before our checks

Read from the project ".hooks-config" a configuration value

hooks.start.commit-msg
hooks.start.pre-commit
hooks.start.prepare-commit-msg

to run from our respective hook before its main checks.

2013-04-04 17:48:59 Tree
[c530aa] by Brad King Brad King

hooks-config: Factor child execution out of hooks_chain

Factor child execution into a separate "hooks_child" function so it can
be re-used.

2013-04-04 17:42:50 Tree
[e68496] by Brad King Brad King

hooks-config: Read 'git config' values from project .hooks-config

Allow projects to configure hooks with a 'git config'-formatted file at
the top of their source tree called ".hooks-config". This avoids use of
bash-specific syntax and makes configuration declarative.

2013-04-04 17:26:03 Tree
[2d9ee2] by Brad King Brad King

hooks-config: Subsume hooks-chain functionality

Remove hooks-chain.bash and place its content in hooks-config.bash.

2013-04-04 17:12:19 Tree
[646b89] by Chuck Atkins Chuck Atkins , pushed by Brad King Brad King

Make all hook references relative to thier location

Some hooks were getting referenced directly via $GIT_DIR/hooks while at
other times getting referenced relative via ${BASH_SOURCE%/*}. By making
all references relative then these hooks can reside in a different folder
and still be daisy-chained by other hooks.

2012-10-10 14:53:23 Tree
[5ebbe2] by Brad King Brad King

Set GIT_DIR if not already set

Although it seems reasonable to expect GIT_DIR to be set when
hooks are invoked, the "git help hooks" documentation does not
guarantee it. On msysGit 1.7.8 (and perhaps others) "git gui"
runs prepare-commit-msg without setting GIT_DIR. Set GIT_DIR
at the beginning of each commit hook if it is not already set.

2012-02-29 21:26:33 Tree
[b966ce] by Brad King Brad King

prepare-commit-msg: Add Gerrit Change-Id to merges

The "git merge" command generates its own commit message and does not
invoke the commit-msg hook. Fortunately it invokes prepare-commit-msg
so teach it to call the gerrit/commit-msg hook for merges.

Suggested-by: Chris Harris <chris.harris@kitware.com>

2012-02-06 19:39:18 Tree
[ad08c2] by Brad King Brad King

Merge branch 'itk-hook-cleanup' into hooks

2011-10-24 13:33:21 Tree
[4b2beb] by Matt McCormick Matt McCormick , pushed by Brad King Brad King

Remove pre-commit-style.

These pre-commit hooks where added to the ITK specific hook chain since all
projects do not use them.

Change-Id: Ifcb41645374914c4f30f7c5f2feb2e5d40a4b3e3

2011-10-21 17:52:49 Tree
[389c11] by Matt McCormick Matt McCormick , pushed by Brad King Brad King

Remove .txx pre-commit check.

This is an ITK specific check. It is already implemented in
the ITK Utilities/Hooks/pre-commit script executed in the hook chain.

This should allow commiting when on the ITK release branch where .txx
files still currently exist.

Change-Id: I1115a2129beb89d6657d599aa6e72bb6515dfca3

2011-10-21 17:39:39 Tree
[3bde0f] by Brad King Brad King

hooks-chain: Look for chains in project hooks config

If a local hook chain rule is not in the local git configuration
check for a value defined in .hooks-config.bash:

hooks_chain_pre_commit
hooks_chain_commit_msg
hooks_chain_prepare_commit_msg

This allows project to configure chained hooks without adding any
values to the local git configuration. Since the project hooks
config can be versioned with the hook scripts it references this
ensures a consistent state.

2011-10-06 22:09:05 Tree
[18358a] by Brad King Brad King

Load local hooks configuration from work tree

Look for a ".hooks-config.bash" file at the top of the work tree.
Load it in each hook to get per-project configuration. Currently
we do not define any config options, but this adds the framework.

2011-10-06 21:56:05 Tree
[e8180f] by Brad King Brad King

pre-commit: Remove KWStyle and uncrustify support

These checks can be added in projects that want them using the
pre-commit hook chaining.

2011-10-06 17:34:51 Tree
[f059ba] by Matt McCormick Matt McCormick , pushed by David Cole David Cole

ENH: pre-commit: Prevent add .txx files.

A transition occurred in the toolkit to move all .txx files to .hxx files.
This prevents accidental additions of or renames to .txx files.

Change-Id: Id4ace9cfca2c56506d93396366d146173e015003

2011-07-16 00:39:30 Tree
[69b191] by Brad King Brad King

pre-commit-style: Fix exit code on failure

The return code from 'die' was absorbed inside a subshell on the
right-hand side of a pipeline. Propagate it out to the main script.

2011-06-14 19:42:38 Tree
[bc6d41] by Brad King Brad King

pre-commit: Disallow submodule rewind

Reject commits that rewind a submodule relative to any parent (HEAD or
MERGE_HEAD).

2011-01-26 18:56:06 Tree
[f635fa] by Brad King Brad King

pre-commit: Allow merged submodule updates

If "git merge" brings in a submodule update then allow it without
requiring the extra step added in commit 48e72dd1 (Check submodules
staged with other changes, 2010-08-10).

2011-01-26 18:47:38 Tree
[5d4166] by Brad King Brad King

Update copyright notices for year 2011

2011-01-13 20:33:33 Tree
[b22ff8] by Brad King Brad King

commit-msg: Do not advise use of COMMIT_MSG after removal

Once our temporary COMMIT_MSG file has been removed do not advise the
author to use the file to continue editing the message.

2011-01-11 23:01:50 Tree
[6d1fe6] by Brad King Brad King

commit-msg: Allow Change-Id only in footer

Gerrit recognizes the Change-Id line only if it appears in the footer.

2010-12-30 17:13:20 Tree
[c3d0b7] by Brad King Brad King

pre-commit: Add whitespace check "no-lf-at-eol"

2010-12-30 14:11:38 Tree
[f56022] by Brad King Brad King

pre-commit: Generalize custom whitespace check

Lookup the whitespace attribute for each modified file and dispatch
custom checks as necessary. Currently the only custom check is the
approximate tab-in-indent check for Git < 1.7.2.

2010-12-30 14:08:10 Tree
[125100] by Brad King Brad King

commit-msg: Allow long first lines starting in "Revert "

Revert commits always have longer first lines than the commit they
revert. Do not reject those that happen to go over the threshold. It
is much simpler if the "git revert" command creates the commit without
error.

2010-11-17 22:54:50 Tree
Older >

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks