Skip to content

Commit c8aebd5

Browse files
Naraendaassistant-librarian[bot]
authored andcommitted
[rocm-libraries] ROCm/rocm-libraries#6120 (commit 9f99eb6)
fix: synchronize all hooks and scripts via symbolic linking (#6120) ## Motivation The git hooks for various sub-projects were out-of-date and I got really annoyed at having to manual check things. This change is a developer quality-of-life change only. There are no changes relevant for downstream users. ## Technical Details * Updates scripts and git hooks to work with monorepo. * rocPRIM is now ground-truth for these scripts and are linked together via symbolic links. * git hooks can still be installed via `projects/{project}/.githooks/install` ## Test Plan Install githooks via `projects/{project}/.githooks/install` and modify a file and try to commit it. ## Test Result It will now yell at you if you try to commit something wrong if git hooks have been installed. ## Submission Checklist - [x] Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.
1 parent 96d3d08 commit c8aebd5

4 files changed

Lines changed: 3 additions & 313 deletions

File tree

.githooks/install

Lines changed: 0 additions & 8 deletions
This file was deleted.

.githooks/install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../rocprim/.githooks/install

.githooks/pre-commit

Lines changed: 0 additions & 25 deletions
This file was deleted.

scripts/code-format/check-format.sh

Lines changed: 0 additions & 57 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../rocprim/scripts/code-format/check-format.sh

scripts/copyright-date/check-copyright.sh

Lines changed: 0 additions & 223 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../rocprim/scripts/copyright-date/check-copyright.sh

0 commit comments

Comments
 (0)