author | Junio C Hamano <gitster@pobox.com> | |
Thu, 28 Aug 2008 00:16:30 +0000 (17:16 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 28 Aug 2008 00:16:30 +0000 (17:16 -0700) |
* ml/submodule:
git-submodule.sh - Remove trailing / from URL if found
git-submodule.sh - Remove trailing / from URL if found
git-submodule.sh - Remove trailing / from URL if found
git-submodule.sh - Remove trailing / from URL if found
1 | 2 | |||
---|---|---|---|---|
git-submodule.sh | patch | | diff1 | | diff2 | | blob | history |
diff --cc git-submodule.sh
index 4a95035d85d7563b84df15a09dc7c8160e9864ca,46d75aba3114778f277cb62b5b0fe84866b326c9..1c39b593a628cc94d24d227cc5d92e00ac5e71ed
--- 1/git-submodule.sh
--- 2/git-submodule.sh
+++ b/git-submodule.sh
break;;
esac
done
- echo "$remoteurl/$url"
+ echo "$remoteurl/${url%/}"
}
+#
+# Get submodule info for registered submodules
+# $@ = path to limit submodule list
+#
+module_list()
+{
+ git ls-files --stage -- "$@" | grep '^160000 '
+}
+
#
# Map submodule path to submodule name
#