mirror of
https://github.com/dlang/tools.git
synced 2025-05-02 16:10:50 +03:00
Parse dub, dub-registry & dconf.org when --all is used.
This commit is contained in:
parent
9a7ba26828
commit
f58d261bc5
1 changed files with 12 additions and 2 deletions
|
@ -57,9 +57,19 @@ auto findAuthors(string revRange, FindConfig config)
|
||||||
{
|
{
|
||||||
Appender!(GitAuthor[]) authors;
|
Appender!(GitAuthor[]) authors;
|
||||||
int commits;
|
int commits;
|
||||||
foreach (repo; ["dmd", "druntime", "phobos", "dlang.org", "tools", "installer"]
|
auto repos = ["dmd", "druntime", "phobos", "dlang.org", "tools", "installer"];
|
||||||
.map!(r => buildPath(config.cwd, "..", r)))
|
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)
|
if (config.refreshTags)
|
||||||
{
|
{
|
||||||
auto cmd = ["git", "-C", repo, "fetch", "--tags", "https://github.com/dlang/" ~ repo.baseName,
|
auto cmd = ["git", "-C", repo, "fetch", "--tags", "https://github.com/dlang/" ~ repo.baseName,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue