Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
eceea6b9
Commit
eceea6b9
authored
Aug 26, 2013
by
Paweł Szostek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
take git submodules into account in module listing
parent
dda33958
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
list_modules.py
hdlmake/action/list_modules.py
+4
-2
No files found.
hdlmake/action/list_modules.py
View file @
eceea6b9
...
...
@@ -35,8 +35,10 @@ class ListModules(Action):
print
(
path
.
relpath
(
m
.
path
))
if
m
.
source
in
[
fetch
.
SVN
,
fetch
.
GIT
]:
print
(
"# "
+
m
.
url
)
if
m
.
parent
:
print
(
"# defined in
%
s"
%
m
.
parent
.
url
)
elif
m
.
source
==
fetch
.
GITSUBMODULE
:
print
(
"# submodule of:
%
s"
%
m
.
parent
.
url
)
if
m
.
source
in
[
fetch
.
SVN
,
fetch
.
GIT
,
fetch
.
LOCAL
]
and
m
.
parent
:
print
(
"# parent:
%
s"
%
m
.
parent
.
url
)
else
:
print
(
"# root module"
)
if
not
len
(
m
.
files
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment