aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux/git-hooks (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ; Move Markdown quotation detection to commit-msg hookPo Lu2025-02-172-4/+5
| | | | | | | | * build-aux/git-hooks/prepare-commit-msg: Don't detect markdown quotes here... * build-aux/git-hooks/commit-msg: but here, to intercept interactively composed log messages.
* ; More strongly discountenance Markdown-style quotesPo Lu2025-02-171-4/+8
| | | | | | | | * CONTRIBUTE (Commit messages): Discourage quoting with Markdown-style pairs of backticks. * build-aux/git-hooks/prepare-commit-msg: Detect and reject commit messages with Markdown-style quotes.
* Update copyright year to 2025Paul Eggert2025-01-016-6/+6
| | | | Run "TZ=UTC0 admin/update-copyright".
* Avoid U+FFFD in commit messagesPaul Eggert2024-12-231-1/+12
| | | | | * build-aux/git-hooks/commit-msg: Also check against U+FFFD REPLACEMENT CHARACTER in commit messages.
* ; Add 2024 to copyright yearsPo Lu2024-01-023-3/+3
|
* Merge from savannah/emacs-29Po Lu2024-01-023-3/+3
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dc4e6b13296 ; Update copyright years in more files 64b37776318 ; Run set-copyright from admin.el 8e1c56ae467 ; Add 2024 to copyright years # Conflicts: # doc/misc/modus-themes.org # doc/misc/texinfo.tex # etc/NEWS # etc/refcards/ru-refcard.tex # etc/themes/modus-operandi-theme.el # etc/themes/modus-themes.el # etc/themes/modus-vivendi-theme.el # lib/alloca.in.h # lib/binary-io.h # lib/c-ctype.h # lib/c-strcasecmp.c # lib/c-strncasecmp.c # lib/careadlinkat.c # lib/cloexec.c # lib/close-stream.c # lib/diffseq.h # lib/dup2.c # lib/filemode.h # lib/fpending.c # lib/fpending.h # lib/fsusage.c # lib/getgroups.c # lib/getloadavg.c # lib/gettext.h # lib/gettime.c # lib/gettimeofday.c # lib/group-member.c # lib/malloc.c # lib/md5-stream.c # lib/md5.c # lib/md5.h # lib/memmem.c # lib/memrchr.c # lib/nanosleep.c # lib/save-cwd.h # lib/sha1.c # lib/sig2str.c # lib/stdlib.in.h # lib/strtoimax.c # lib/strtol.c # lib/strtoll.c # lib/time_r.c # lib/xalloc-oversized.h # lisp/auth-source-pass.el # lisp/emacs-lisp/lisp-mnt.el # lisp/emacs-lisp/timer.el # lisp/info-look.el # lisp/jit-lock.el # lisp/loadhist.el # lisp/mail/rmail.el # lisp/net/ntlm.el # lisp/net/webjump.el # lisp/progmodes/asm-mode.el # lisp/progmodes/project.el # lisp/progmodes/sh-script.el # lisp/textmodes/flyspell.el # lisp/textmodes/reftex-toc.el # lisp/textmodes/reftex.el # lisp/textmodes/tex-mode.el # lisp/url/url-gw.el # m4/alloca.m4 # m4/clock_time.m4 # m4/d-type.m4 # m4/dirent_h.m4 # m4/dup2.m4 # m4/euidaccess.m4 # m4/fchmodat.m4 # m4/filemode.m4 # m4/fsusage.m4 # m4/getgroups.m4 # m4/getloadavg.m4 # m4/getrandom.m4 # m4/gettime.m4 # m4/gettimeofday.m4 # m4/gnulib-common.m4 # m4/group-member.m4 # m4/inttypes.m4 # m4/malloc.m4 # m4/manywarnings.m4 # m4/mempcpy.m4 # m4/memrchr.m4 # m4/mkostemp.m4 # m4/mktime.m4 # m4/nproc.m4 # m4/nstrftime.m4 # m4/pathmax.m4 # m4/pipe2.m4 # m4/pselect.m4 # m4/pthread_sigmask.m4 # m4/readlink.m4 # m4/realloc.m4 # m4/sig2str.m4 # m4/ssize_t.m4 # m4/stat-time.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/stdio_h.m4 # m4/stdlib_h.m4 # m4/stpcpy.m4 # m4/strnlen.m4 # m4/strtoimax.m4 # m4/strtoll.m4 # m4/time_h.m4 # m4/timegm.m4 # m4/timer_time.m4 # m4/timespec.m4 # m4/unistd_h.m4 # m4/warnings.m4 # nt/configure.bat # nt/preprep.c # test/lisp/register-tests.el
| * ; Add 2024 to copyright yearsPo Lu2024-01-023-3/+3
| |
* | ; Fix issues running gitmergeJim Porter2023-08-211-0/+3
| | | | | | | | | | | | | | | | | | * .gitattributes: Ignore whitespace issues in java/INSTALL. * build-aux/git-hooks/pre-commit (git_diff): Explicitly allow "ChangeLog.android". * java/README: Remove extra trailing newline.
* | Run Git hooks within xcu4Po Lu2023-08-092-0/+12
| | | | | | | | | | | | * build-aux/git-hooks/pre-commit (LC_ALL): * build-aux/git-hooks/prepare-commit-msg (SHA1): Run using xcu4 tools.
* | ; Use a Bourne shell-compatible form for command substitutionJim Porter2023-05-042-2/+2
| | | | | | | | | | * build-aux/git-hooks/post-commit: * build-aux/git-hooks/pre-push: Use `` instead of $().
* | ; Allow spaces in directory names for Git hooksJim Porter2023-05-042-2/+2
| | | | | | | | | | * build-aux/git-hooks/post-commit: * build-aux/git-hooks/pre-push: Quote "$HOOKS_DIR" to allow spaces.
* | ; Fix post-commit and pre-push hooks in worktrees againJim Porter2023-05-042-2/+6
| | | | | | | | | | | | * build-aux/git-hooks/post-commit: * build-aux/git-hooks/pre-push: Use "$(dirname $0)" to get the hooks directory.
* | ; Use $GIT_DIR to find the .git directory inside our hooksJim Porter2023-05-012-2/+2
| | | | | | | | | | | | | | | | This resolves an issue with running the hooks from a worktree. See <https://lists.gnu.org/archive/html/emacs-devel/2023-05/msg00000.html>. * build-aux/git-hooks/post-commit: * build-aux/git-hooks/pre-push: Use $GIT_DIR.
* | ; Fix last changeJim Porter2023-04-231-1/+1
| |
* | When examining merge commits in our Git hooks, only check the first parentJim Porter2023-04-232-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This does two things: 1. We can properly validate log entries in merge commits. 2. We don't check commits that were merged in from other branches. * build-aux/git-hooks/commit-msg-files.awk (get_commit_changes): Get the changes compared to the first parent. * build-aux/git-hooks/pre-push: Only get the first parent of merge commits when returning the rev-list, and only check "master" or "emacs-NN" branches.
* | ; Fix logic of Git pre-push hook when pushing a new branchJim Porter2023-04-231-9/+9
| | | | | | | | | | * build-aux/git-hooks/pre-push: Update the Git command to run on each iteration.
* | Improve the logic of the file entry Git hooks to support more casesJim Porter2023-04-231-8/+23
| | | | | | | | | | | | | | | | | | In addition to starting with a "*", file entries now need a ":" somewhere in them. This helps reduce false positives with bulleted lists. Also, support multiple files separated by commas after a "*". * build-aux/git-hooks/commit-msg-files.awk (check_commit_msg_files): Accumulate file entries over multiple lines to support the above.
* | Add Git hooks to check filenames listed in the commit messageJim Porter2023-04-203-0/+241
|/ | | | | | | | | See <https://lists.gnu.org/archive/html/emacs-devel/2023-04/msg00274.html>. * build-aux/git-hooks/commit-msg-files.awk: * build-aux/git-hooks/post-commit: * build-aux/git-hooks/pre-push: New files... * autogen.sh: ... add them.
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-013-3/+3
|
* Port pre-commit hook to Git 2.35.0Paul Eggert2022-02-231-1/+3
| | | | | * build-aux/git-hooks/pre-commit: Use LC_ALL=C grep -E instead of sane_egrep (removed in Git 2.35.0).
* ; Add 2022 to copyright years.Eli Zaretskii2022-01-013-3/+3
|
* Update copyright year to 2021Paul Eggert2021-01-013-3/+3
| | | | Run "TZ=UTC0 admin/update-copyright".
* Fix some shellcheck linter warningsStefan Kangas2020-12-311-2/+2
| | | | | | | | | * admin/diff-tar-files: * admin/merge-gnulib: * admin/merge-pkg-config: * admin/update-copyright: * build-aux/git-hooks/prepare-commit-msg: * make-dist: Fix some shellcheck linter warnings.
* Update copyright year to 2020Paul Eggert2020-01-013-3/+3
| | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* Do potentially destructive operations in prepare-commit-msgKonstantin Kharlamov2019-05-161-0/+45
| | | | | | | * build-aux/git-hooks/prepare-commit-msg: If someone occasionally puts Signed-off line, it will likely get there through -s option of git. Exploit this fact to abort before a user got a chance to type commit message. (Bug#35368)
* Update copyright year to 2019Paul Eggert2019-01-012-2/+2
| | | | Run 'TZ=UTC0 admin/update-copyright $(git ls-files)'.
* ; Let pre-commit git hook check merged in changes (Bug#29197)Noam Postavsky2018-08-281-9/+7
| | | | | | | * build-aux/git-hooks/pre-commit: If GIT_MERGE_CHECK_OTHER is 'true', check changes against the merge target, rather than the current branch. Include file name when giving error message about non-standard characters.
* Update copyright year to 2018Paul Eggert2018-01-012-2/+2
| | | | Run admin/update-copyright.
* Do not reject https://gnu.org in commit messagesPaul Eggert2017-10-161-7/+20
| | | | | | * build-aux/git-hooks/commit-msg: Do not reject commit messages containing http: or ftp: URLs to gnu.org or fsf.org. Instead, rewrite the messages to use https: URLs.
* Encourage https: in commit messagesPaul Eggert2017-10-141-0/+10
| | | | | | * CONTRIBUTE: Prefer https: when citing. * build-aux/git-hooks/commit-msg: Diagnose http: and ftp: URLs to FSF or GNU hosts.
* Prefer HTTPS to FTP and HTTP in documentationPaul Eggert2017-09-132-2/+2
| | | | | | | | | | | | | Most of this change is to boilerplate commentary such as license URLs. This change was prompted by ftp://ftp.gnu.org's going-away party, planned for November. Change these FTP URLs to https://ftp.gnu.org instead. Make similar changes for URLs to other organizations moving away from FTP. Also, change HTTP to HTTPS for URLs to gnu.org and fsf.org when this works, as this will further help defend against man-in-the-middle attacks (for this part I omitted the MS-DOS and MS-Windows sources and the test tarballs to keep the workload down). HTTPS is not fully working to lists.gnu.org so I left those URLs alone for now.
* Port /bin/sh scripts to Solaris 10Paul Eggert2017-08-211-1/+1
| | | | | | | Its /bin/sh builtin ‘test’ command does not support -e. * autogen.sh, build-aux/git-hooks/pre-commit: * build-aux/gitlog-to-emacslog, make-dist: Use test -r, not test -e.
* Allow bypassing of some checks when mergingPaul Eggert2017-04-291-3/+19
| | | | * build-aux/git-hooks/pre-commit: Don't check merged-in changes.
* Merge from origin/emacs-25Paul Eggert2017-01-012-2/+2
|\ | | | | | | | | 2e2a806 Fix copyright years by hand 5badc81 Update copyright year to 2017
| * Update copyright year to 2017Paul Eggert2016-12-312-2/+2
| | | | | | | | Run admin/update-copyright.
* | * build-aux/git-hooks/pre-commit: Add whitespace comment.Paul Eggert2016-12-121-0/+8
|/
* Update copyright year to 2016Paul Eggert2016-01-012-2/+2
| | | | Run admin/update-copyright.
* Improve the commit-msg Git hook for unibyte environmentsEli Zaretskii2015-04-141-3/+9
| | | | | | | * build-aux/git-hooks/commit-msg: Set LC_ALL=C, before running Awk in unibyte environments. (Suggested by Paul Eggert <eggert@cs.ucla.edu>.) Use a more accurate approximation to [:print:], based on UTF-8 sequences of the unprintable characters.
* Port commit-msg to MSYS Bash+GawkPaul Eggert2015-04-111-4/+5
| | | | | | | | | See Eli Zaretskii in: http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00610.html * build-aux/git-hooks/commit-msg (cent_sign_utf8_format) (cent_sign, print_at_sign, at_sign): Revert previous change. (print_at_sign): Prepend "BEGIN". (at_sign): Redirect from /dev/null to be safer with pre-POSIX awk.
* Port commit-msg to broken MS-Windows shellPaul Eggert2015-04-111-3/+2
| | | | | | | * build-aux/git-hooks/commit-msg (cent_sign): Just use UTF-8 here rather than ASCII + printf, as the latter fails on a broken MS-Windows shell. Reported by Eli Zaretskii in: http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00592.html
* Fix commit-msg to handle scissors linesPaul Eggert2015-04-101-1/+7
| | | | | | | * build-aux/git-hooks/commit-msg: Ignore every line after a scissors line, such as a line generated by 'git commit -v'. Problem reported by Johan Bockgård in: http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00580.html
* port commit-msg to Gawk 3.0.4 (1999)Paul Eggert2015-04-101-18/+20
| | | | | | | * build-aux/git-hooks/commit-msg (cent_sign_utf8_format, cent_sign) (print_at_sign, at_sign): New vars. Use them to avoid problems Eli Zaretskii encountered with Gawk 3.0.4 (1999) on MSYS. See: http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00566.html
* Have commit-msg report commit failurePaul Eggert2015-04-101-8/+11
| | | | | | | * build-aux/git-hooks/commit-msg: If the commit is aborted, say so. Simplify by doing this at the end. Problem reported by Eli Zaretskii in: http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg00566.html
* Generate a ChangeLog file from commit logsPaul Eggert2015-04-071-8/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * .gitignore: Add 'ChangeLog'. * build-aux/gitlog-to-changelog: New file, from Gnulib. * build-aux/gitlog-to-emacslog: New file. * CONTRIBUTE: Document the revised workflow. * Makefile.in (clean): Remove *.tmp and etc/*.tmp* instead of just special cases. (CHANGELOG_HISTORY_INDEX_MAX, CHANGELOG_N, gen_origin): New vars. (ChangeLog, unchanged-history-files, change-history) (change-history-commit): New rules. * admin/admin.el (make-manuals-dist--1): Don't worry about doc/ChangeLog. * admin/authors.el: Add a FIXME. * admin/make-tarball.txt: * lisp/calendar/icalendar.el: * lisp/gnus/deuglify.el: * lisp/obsolete/gulp.el: * lwlib/README: Adjust to renamed ChangeLog history files. * admin/merge-gnulib (GNULIB_MODULES): Add gitlog-to-changelog. * admin/notes/repo: Call it 'master' a la Git, not 'trunk' a la Bzr. Remove obsolete discussion of merging ChangeLog files. New section "Maintaining ChangeLog history". * build-aux/git-hooks/pre-commit: Reject attempts to commit files named 'ChangeLog'. * lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate. * make-dist: Make and distribute top-level ChangeLog if there's a .git directory. Distribute the new ChangeLog history files instead of scattered ChangeLog files. Distribute the new files gitlog-to-changelog and gitlog-to-emacslog. Fixes: bug#19113
* Fix 'commit-msg' to cite 'CONTRIBUTE'Paul Eggert2015-03-291-8/+8
| | | | | | | | As suggested in: http://lists.gnu.org/archive/html/emacs-devel/2015-03/msg00947.html Also, have the two files match better. * CONTRIBUTE: Match what's in build-aux/git-hooks/commit-msg. * build-aux/git-hooks/commit-msg: Mention 'CONTRIBUTE'.
* Update copyright year to 2015Paul Eggert2015-01-012-2/+2
| | | | Run admin/update-copyright.
* * build-aux/git-hooks/commit-msg: Allow tabs.Paul Eggert2014-12-281-6/+10
| | | | | Treat them as if they were expanded to spaces, with tab stops every 8 columns.
* * lisp/subr.el (sit-for): Tweak docstring.Stefan Monnier2014-12-151-2/+2
| | | | | | | | Fixes: debbugs:19381 * src/buffer.c (syms_of_buffer) <Vafter_change_functions>: fix docstring. * build-aux/git-hooks/commit-msg (at_sign): Bump up line-length limit to 78.
* Port commit-msg to mawkPaul Eggert2014-12-101-6/+20
| | | | | | | | Problem reported by Ted Zlatanov in: http://lists.gnu.org/archive/html/emacs-devel/2014-12/msg01093.html * build-aux/git-hooks/commit-msg (space, non_space, non_print): New vars. Use them as approximations to POSIX bracket expressions, on implementations like mawk that do not support POSIX regexps.
* Improve commit-msg messages and autosquashPaul Eggert2014-12-101-14/+25
| | | | | | | | Problem reported by Michal Nazarewicz in Bug#19337. * build-aux/git-hooks/commit-msg: Add "commit message" to diagnostics. Distinguish better between tabs and other unprintable chars in diagnostics. Don't complain if a prefix "fixup! " or "squash! " makes a summary line too long.