Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add Lustre commit-msg and prepare-commit-msg hooks

...

See Submitting Changes for a detailed description of the commit comment style. If your comments are do not include the Change-Id: line as described below, the patch will be rejected at submission time.

Sample Commit message:

No Format
LU-999 component: short description of change under 64 columns

A more detailed explanation.  This can be as detailed as you'd like.
Please explain both what problem was solved and a good high-level
description of how it was solved.  Wrap lines at 70 columns or less.

Signed-off-by: Random J Developer <random@developer.example.org>
Change-Id: Ica9ed1612eab0c4673dee088f8b441d806c64932

...

Gerrit will automatically identify updates to existing patches and update the existing request instead of creating a new one. For this to work properly the changes you create locally need to have a unique commit id in them. To get this inserted automatically, copy the commit-msg hook provided by Gerrit to into your Git repository's .git/hooks/ directory. This will update the commit message for changes you commit to your repository before they are submitted to Gerrit. The commit-msg hook will also verify that the commit message format matches the format specified above. Similarly, the prepare-commit-msg will run the checkpatch.pl script against the patch to check it against the Lustre Coding Guidelines.

Newer versions of Lustre include the commit-msg and prepare-commit-msg hooks in the build/ subdirectory, or but they must be copied into each repository by hand. For older Lustre versions it can be downloaded from this page using curl or wget:

...

No Format
git push ssh://USER@review.whamcloud.com:29418/fs/lustre-release HEAD:refs/for/master

for

...

the

...

"master"

...

branch

...

of

...

the

...

lustre-release

...

repo,

...

or:

No Format

git push ssh://USER@review.whamcloud.com:29418/fs/lustre-release HEAD:refs/for/b1_8

for

...

the

...

"b1_8"

...

branch

...

of

...

the

...

lustre-release

...

repo,

...

or:

No Format

git push ssh://USER@review.whamcloud.com:29418/tools/e2fsprogs HEAD:refs/for/master-lustre

for

...

the

...

"

...

master-lustre"

...

branch

...

of

...

the

...

e2fsprogs

...

repo

...

.

For convenience, you can add this to your ~/.ssh/config file:

...