Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Felix Weiglhofer
cbmroot
Commits
7f98f86a
Commit
7f98f86a
authored
4 years ago
by
Nikolay Karpushkin
Browse files
Options
Downloads
Patches
Plain Diff
Clang format fix
parent
683b0761
No related branches found
Branches containing commit
Tags
dev_2021_09
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/check-apply-format-changes.sh
+2
-2
2 additions, 2 deletions
scripts/check-apply-format-changes.sh
with
2 additions
and
2 deletions
scripts/check-apply-format-changes.sh
+
2
−
2
View file @
7f98f86a
...
...
@@ -39,12 +39,12 @@ case $1 in
check
)
echo
"Checking if there are format changes required"
git fetch
$UPSTREAM
$GIT_CLANG_FORMAT_BIN
--commit
$BASE_COMMIT
--diff
$CHANGED_FILES
--extensions
h,hpp,c,C,cpp,cxx,tpl
$GIT_CLANG_FORMAT_BIN
--binary
$CLANG_FORMAT_BIN
--commit
$BASE_COMMIT
--diff
$CHANGED_FILES
--extensions
h,hpp,c,C,cpp,cxx,tpl
;;
apply
)
echo
"Applying required format changes"
$GIT_CLANG_FORMAT_BIN
--verbose
--commit
$BASE_COMMIT
$CHANGED_FILES
--extensions
h,hpp,c,C,cpp,cxx,tpl
$GIT_CLANG_FORMAT_BIN
--binary
$CLANG_FORMAT_BIN
--verbose
--commit
$BASE_COMMIT
$CHANGED_FILES
--extensions
h,hpp,c,C,cpp,cxx,tpl
git status
echo
"Next step: git add "
$CHANGED_FILES
echo
'Then : git commit -m"Apply clang-format"'
...
...
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