Merge pull request #10 from status-im/showdeps
show-deps: also show commit hashes
This commit is contained in:
commit
e0d9939f9f
|
@ -162,11 +162,11 @@ ctags:
|
||||||
--exclude=$(REPOS_DIR)/nim-bncurve/tests/tvectors.nim \
|
--exclude=$(REPOS_DIR)/nim-bncurve/tests/tvectors.nim \
|
||||||
.
|
.
|
||||||
|
|
||||||
# list all Git submodule URLs, including the nested ones
|
# list all Git submodule URLs and commit hashes, including the nested ones
|
||||||
show-deps:
|
show-deps:
|
||||||
{ git config --file .gitmodules --get-regexp url | cat ;\
|
{ "$(CURDIR)/$(BUILD_SYSTEM_DIR)/scripts/git_show_deps.sh" ;\
|
||||||
git submodule foreach --quiet --recursive '[[ -f .gitmodules ]] && git config --file .gitmodules --get-regexp url | cat || true'; } \
|
git submodule foreach --quiet --recursive "$(CURDIR)/$(BUILD_SYSTEM_DIR)/scripts/git_show_deps.sh"; } \
|
||||||
| cut -d ' ' -f 2 | sort -u
|
| sort -u
|
||||||
|
|
||||||
############################
|
############################
|
||||||
# Windows-specific section #
|
# Windows-specific section #
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [[ -f .gitmodules ]]; then
|
||||||
|
git config --file .gitmodules --get-regexp 'path|url' | while read TMP S_PATH && read TMP S_URL; do
|
||||||
|
# we probably can't rely on that leading space always being there
|
||||||
|
S_HASH=$(git submodule status --cached "${S_PATH}" | sed 's/^\s*\(\S\+\).*$/\1/')
|
||||||
|
echo "${S_URL} ${S_HASH}"
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue