diff --git a/README.md b/README.md deleted file mode 100644 index 41d4f15..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# git hooks - -All of the files in this repository are licensed under the [GNU All-Permissive -License](https://www.gnu.org/prep/maintain/html_node/License-Notices-for-Other-Files.html) diff --git a/post-merge/cargo-build b/post-merge/cargo-build index d3f10cc..9ecb105 100755 --- a/post-merge/cargo-build +++ b/post-merge/cargo-build @@ -1,8 +1,7 @@ #!/bin/sh -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice and this -# notice are preserved. This file is offered as-is, without any warranty. +# This work is marked with CC0 1.0. To view a copy of this license, visit +# # Hook to compile Rust source files when they have been changed. diff --git a/pre-commit/aur-pkgbuild b/pre-commit/aur-pkgbuild index 10d3d49..c5fae0c 100755 --- a/pre-commit/aur-pkgbuild +++ b/pre-commit/aur-pkgbuild @@ -1,10 +1,9 @@ #!/bin/sh -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice and this -# notice are preserved. This file is offered as-is, without any warranty. +# This work is marked with CC0 1.0. To view a copy of this license, visit +# . -# Hook to generate & add .SRCINFO to AUR PKGBUILD commits. +# Git hook to generate & add .SRCINFO to AUR PKGBUILD commits. makepkg --printsrcinfo > .SRCINFO git add .SRCINFO diff --git a/pre-commit/submodules b/pre-commit/submodules new file mode 100755 index 0000000..94157a7 --- /dev/null +++ b/pre-commit/submodules @@ -0,0 +1,10 @@ +#!/bin/sh + +# This work is marked with CC0 1.0. To view a copy of this license, visit +# . + +# Git hook to update submodules to their latest versions before committing +# changes, good for monorepos constructed from various other repositories. + +git submodule foreach 'git pull' +git add