Hello For reference, I'm attaching here the file "commitinfo" (that currently handles the pre-commit actions in CVS) and the file "loginfo" (that currently handles the post-commit actions in CVS).
I think we should decide if we want the same functionality in git/Salsa, and if yes, working to make it possible is needed. If there is something else related to commit hooks that I forgot, please reply to this thread. I will update the bug and the wiki page accordingly, if needed. Cheers -- Laura Arjona Reina https://wiki.debian.org/LauraArjona
# The "loginfo" file is used to control where "cvs commit" log information is # sent. The first entry on a line is a regular expression which is tested # against the directory that the change is being made to, relative to the # $CVSROOT. For the first match that is found, the remainder of the line is a # filter program that should expect log information on its standard input # # If the repository name does not match any of the regular expressions in the # first field of this file, the "DEFAULT" line is used, if it is specified. # # If the name "ALL" appears as a regular expression it is always used # in addition to the first matching regex or "DEFAULT". # # The filter program may use one and only one "%s" modifier (ala printf). If # such a "%s" is specified in the filter program, a brief title is included # (as one argument, enclosed in single quotes) showing the relative directory # name and listing the modified file names. ALL /home/groups/debwww/cron/scripts/log_accum.pl -s -m [email protected] %p %s ALL PERL5LIB=/home/groups/kgb/trunk/lib /home/groups/kgb/trunk/script/kgb-client --conf /home/groups/webwml/kgb-client.conf "$CVSROOT" "%p" english /usr/bin/cvs-mailcommit -m [email protected] --from [email protected] --xloop [email protected] --diff --full --root %r --dir %p %{sVv} # french /usr/bin/cvs-mailcommit -m [email protected] --from [email protected] --xloop [email protected] --diff --full --root %r --dir %p %{sVv} german /usr/bin/cvs-mailcommit -m [email protected] --from [email protected] --xloop [email protected] --diff --full --root %r --dir %p %{sVv} dutch /usr/bin/cvs-mailcommit -m [email protected] --from [email protected] --diff --full --root %r --dir %p %{sVv} newmaint /usr/bin/cvs-mailcommit -m [email protected] --from [email protected] --xloop [email protected] --diff --root %r --dir %p %{sVv} db.debian.org /usr/bin/cvs-mailcommit -m [email protected] --from [email protected] --diff --full --root %r --dir %p %{sVv}
# The "commitinfo" file is used to control pre-commit checks. # The filter on the right is invoked with the repository and a list # of files to check. A non-zero exit of the filter program will # cause the commit to be aborted. # # The first entry on a line is a regular expression which is tested # against the directory that the change is being committed to, relative # to the $CVSROOT. For the first match that is found, then the remainder # of the line is the name of the filter to run. # # If the repository name does not match any of the regular expressions in this # file, the "DEFAULT" line is used, if it is specified. # # If the name "ALL" appears as a regular expression it is always used # in addition to the first matching regex or "DEFAULT". ALL /home/groups/debwww/cron/scripts/commit_prep2 -r %s ALL /home/groups/debwww/cron/scripts/ssl_links %s

