From d7cd7c6313e7fc5f1ccf73e48228c97b3246d99a Mon Sep 17 00:00:00 2001 From: crueter Date: Mon, 20 Oct 2025 02:59:43 +0200 Subject: [license-header] refactor: excludes, updating, better logic (#2780) Rewrite of license-header.sh. Lots of new goodies: - Fully POSIX compliant - supports dash arguments (-u/--update, -c/--commit, -uc for both) - can update year or malformed headers in-place now - accounts for shell scripts - exclusion of external files (e.g. sse2neon, my CMake modules/scripts) - better, more extensible logic all around Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2780 --- docs/Development.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'docs/Development.md') diff --git a/docs/Development.md b/docs/Development.md index c223409243..34e590119d 100644 --- a/docs/Development.md +++ b/docs/Development.md @@ -6,19 +6,21 @@ All commits must have proper license header accreditation. You can easily add all necessary license headers by running: ```sh git fetch origin master:master -FIX=true COMMIT=true .ci/license-header.sh +.ci/license-header.sh -u -c git push ``` -Alternatively, you may omit `COMMIT=true` and do an amend commit: +Alternatively, you may omit `-c` and do an amend commit: ```sh git fetch origin master:master -FIX=true .ci/license-header.sh +.ci/license-header.sh git commit --amend -a --no-edit ``` If the work is licensed/vendored from other people or projects, you may omit the license headers. Additionally, if you wish to retain authorship over a piece of code, you may attribute it to yourself; however, the code may be changed at any given point and brought under the attribution of Eden. +For more information on the license header script, run `.ci/license-header.sh -h`. + ## Pull Requests Pull requests are only to be merged by core developers when properly tested and discussions conclude on Discord or other communication channels. Labels are recommended but not required. However, all PRs MUST be namespaced and optionally typed: ``` -- cgit v1.2.3