Parse dub, dub-registry & dconf.org when --all is used.

This commit is contained in:
Sebastian Wilzbach 2017-12-18 22:02:11 +01:00
parent 9a7ba26828
commit f58d261bc5

View file

@ -57,9 +57,19 @@ auto findAuthors(string revRange, FindConfig config)
{
Appender!(GitAuthor[]) authors;
int commits;
foreach (repo; ["dmd", "druntime", "phobos", "dlang.org", "tools", "installer"]
.map!(r => buildPath(config.cwd, "..", r)))
auto repos = ["dmd", "druntime", "phobos", "dlang.org", "tools", "installer"];
if (config.showAllContributors)
repos ~= ["dub", "dub-registry", "dconf.org"];
foreach (repo; repos.map!(r => buildPath(config.cwd, "..", r)))
{
if (!repo.exists)
{
stderr.writefln("Warning: %s doesn't exist. " ~
"Consider running: git clone https://github.com/dlang/%s ../%2$s",
repo, repo.baseName);
continue;
}
if (config.refreshTags)
{
auto cmd = ["git", "-C", repo, "fetch", "--tags", "https://github.com/dlang/" ~ repo.baseName,