Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
85d47749
"git@git.frama-c.com:pub/frama-c.git" did not exist on "93178e75f82530a2d46becef49b4c2970cacf107"
Commit
85d47749
authored
2 years ago
by
Patrick Baudin
Browse files
Options
Downloads
Patches
Plain Diff
[Tools] pre-commit hook moved in ./dev/git-hooks
parent
cb42d99e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dev/git-hooks/pre-commit
+0
-42
0 additions, 42 deletions
dev/git-hooks/pre-commit
dev/git-hooks/pre-commit.sh
+2
-2
2 additions, 2 deletions
dev/git-hooks/pre-commit.sh
with
2 additions
and
44 deletions
dev/git-hooks/pre-commit
deleted
100755 → 0
+
0
−
42
View file @
cb42d99e
#!/bin/bash
# -*- mode: bash
##########################################################################
# #
# This file is part of Frama-C. #
# #
# Copyright (C) 2007-2022 #
# CEA (Commissariat à l'énergie atomique et aux énergies #
# alternatives) #
# #
# you can redistribute it and/or modify it under the terms of the GNU #
# Lesser General Public License as published by the Free Software #
# Foundation, version 2.1. #
# #
# It is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU Lesser General Public License for more details. #
# #
# See the GNU Lesser General Public License version 2.1 #
# for more details (enclosed in the file licenses/LGPLv2.1). #
# #
##########################################################################
if
git rev-parse
--verify
HEAD
>
/dev/null 2>&1
then
against
=
HEAD
else
# Initial commit: diff against an empty tree object
against
=
4b825dc642cb6eb9a060e54bf8d69288fbee4904
fi
if
git config
--get
frama-c.makelevel
>
/dev/null 2>&1
;
then
MAKELEVEL
=
-j
$(
git config
--int
--get
frama-c.makelevel
)
;
else
MAKELEVEL
=
-j4
;
fi
MANUAL_ML_FILES
=
\
$(
git diff-index
--name-only
--diff-filter
d
$against
|
\
grep
-e
'^src/.*\.mli\?$'
|
tr
'\n'
' '
)
\
make
${
MAKELEVEL
}
lint
This diff is collapsed.
Click to expand it.
tools
/git-hooks/pre-commit.sh
→
dev
/git-hooks/pre-commit.sh
+
2
−
2
View file @
85d47749
...
...
@@ -22,8 +22,8 @@
##########################################################################
# Examples of installation of this pre-commit hook (client side):
# - cp ./
tools
/git-hooks/pre-commit.sh .git/hooks/pre-commit
# - (cd .git/hooks/ && ln -s ../../
tools
/git-hooks/pre-commit.sh pre-commit)
# - cp ./
dev
/git-hooks/pre-commit.sh .git/hooks/pre-commit
# - (cd .git/hooks/ && ln -s ../../
dev
/git-hooks/pre-commit.sh pre-commit)
# Note:
# - that checks the unstaged version of the files and these files are
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment