updated licensing and added submodules hook
This commit is contained in:
parent
e0087cd8eb
commit
f1a7a4797a
@ -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)
|
@ -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
|
||||
# <http://creativecommons.org/publicdomain/zero/1.0>
|
||||
|
||||
# Hook to compile Rust source files when they have been changed.
|
||||
|
||||
|
@ -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
|
||||
# <http://creativecommons.org/publicdomain/zero/1.0>.
|
||||
|
||||
# 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
|
||||
|
10
pre-commit/submodules
Executable file
10
pre-commit/submodules
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
# This work is marked with CC0 1.0. To view a copy of this license, visit
|
||||
# <http://creativecommons.org/publicdomain/zero/1.0>.
|
||||
|
||||
# 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
|
Loading…
Reference in New Issue
Block a user