-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* coverage * coverage * coverage * added sompy * added sompy * pre-commit * check of pre-commit * test * test * test * test * removed pass() * removed pass() * review rework * review rework * Squashed commit of the following: commit 1491ebc943d1c2da1dc9d5d22796250a916629ae Author: sorgom <[email protected]> Date: Sun Oct 13 18:53:18 2024 +0200 merge SOM_DEVEL_20
- Loading branch information
Showing
82 changed files
with
293 additions
and
336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/usr/bin/bash | ||
# use: git config core.hooksPath .gitHooks | ||
|
||
py=$(which py || which python || which python3) | ||
if [[ -z $py ]]; then exit 0; fi | ||
echo "Using python: $py" | ||
|
||
cd $(git rev-parse --show-toplevel) | ||
echo current directory: $(pwd) | ||
sompy=$(pwd)/sompy/somutil | ||
|
||
for file in `git diff-index --cached --name-only HEAD`; | ||
do | ||
if [[ -f $file ]] | ||
then | ||
add=1 | ||
echo checking file: $file | ||
if [[ $file == *.mdj ]] | ||
then | ||
echo cleaning mdj file: $file | ||
$py $sompy/cleanMdj.py $file | ||
elif [[ $file == *.svg ]] | ||
then | ||
echo cleaning svg file: $file | ||
$py $sompy/cleanSvg.py $file | ||
elif [[ $file == *.py ]] || [[ $file == *.cpp ]] || [[ $file == *.h ]] | ||
then | ||
echo cleaning text file: $file | ||
$py $sompy/cleanTxt.py $file | ||
else | ||
add=0 | ||
fi | ||
|
||
if [[ $add -eq 1 ]] | ||
then | ||
git add $file | ||
fi | ||
fi | ||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
# all text files unix line endings | ||
* text=auto | ||
* text=auto eol=lf | ||
|
||
*.cpp text eol=lf | ||
*.h text eol=lf | ||
*.py text eol=lf | ||
*.sh text eol=lf | ||
*.lua text eol=lf | ||
*.txt text eol=lf | ||
*.cmd eol=crlf | ||
*.bat eol=crlf | ||
*.svg text eol=lf | ||
*.mdj text eol=lf | ||
*.md text eol=lf | ||
*.make text eol=lf | ||
.git* text eol=lf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,7 @@ | |
path = CppUTestSteps | ||
url = [email protected]:sorgom/CppUTestSteps.git | ||
branch = dev | ||
[submodule "sompy"] | ||
path = sompy | ||
url = [email protected]:sorgom/sompy.git | ||
branch = dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.