Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SCDDS-core
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor 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
SPC
SCDDS
SCDDS-core
Commits
5e8f7d7f
Commit
5e8f7d7f
authored
3 years ago
by
Federico Felici
Browse files
Options
Downloads
Patches
Plain Diff
Clean dd from git root level
parent
49c134ab
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/classes/SCD.m
+4
-1
4 additions, 1 deletion
code/classes/SCD.m
with
4 additions
and
1 deletion
code/classes/SCD.m
+
4
−
1
View file @
5e8f7d7f
...
@@ -48,12 +48,15 @@ classdef SCD
...
@@ -48,12 +48,15 @@ classdef SCD
function
clean_dd
()
function
clean_dd
()
% Close all data open dictionaries
% Close all data open dictionaries
fprintf
(
'Closing all data dictionaries and discarding changes'
)
fprintf
(
'Closing all data dictionaries and discarding changes
\n
'
)
Simulink
.
data
.
dictionary
.
closeAll
(
'-discard'
);
Simulink
.
data
.
dictionary
.
closeAll
(
'-discard'
);
% Cleans unversioned data dictionaries
% Cleans unversioned data dictionaries
fprintf
(
'Cleaning unversioned data dictionaries for clean test\n'
)
fprintf
(
'Cleaning unversioned data dictionaries for clean test\n'
)
[
~
,
s
]
=
system
(
'git rev-parse --show-toplevel'
);
% get top-level dir
oldpwd
=
pwd
;
cd
(
deblank
(
s
));
system
(
'git clean -xf *.sldd'
);
% clean local sldd
system
(
'git clean -xf *.sldd'
);
% clean local sldd
system
(
'git submodule foreach --quiet
''
git clean -fx *.sldd
''
'
);
% clean submodules too
system
(
'git submodule foreach --quiet
''
git clean -fx *.sldd
''
'
);
% clean submodules too
cd
(
oldpwd
)
end
end
function
SCDexps
=
getexpcodecontainer
()
function
SCDexps
=
getexpcodecontainer
()
...
...
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