Skip to content

Commit cfd90da

Browse files
committed
* ConfigurationProvider.cs reverted back rules formatting for MigrateBranches
Will be eventually corrupted back after applying Resharper's clean code. Will need to do smth with it.
1 parent 0eb743f commit cfd90da

File tree

1 file changed

+4
-22
lines changed

1 file changed

+4
-22
lines changed

src/GitVersionCore/Configuration/ConfigurationProvider.cs

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -103,27 +103,10 @@ static void MigrateBranches(Config config)
103103
// Map of current names and previous names
104104
var dict = new Dictionary<string, string[]>
105105
{
106-
{"hotfix(es)?[/-]", new[]
107-
{
108-
"hotfix[/-]"
109-
}
110-
},
111-
{"features?[/-]", new[]
112-
{
113-
"feature[/-]",
114-
"feature(s)?[/-]"
115-
}
116-
},
117-
{"releases?[/-]", new[]
118-
{
119-
"release[/-]"
120-
}
121-
},
122-
{"dev(elop)?(ment)?$", new[]
123-
{
124-
"develop"
125-
}
126-
}
106+
{"hotfix(es)?[/-]", new[] { "hotfix[/-]" }},
107+
{"features?[/-]", new[] { "feature[/-]", "feature(s)?[/-]" }},
108+
{"releases?[/-]", new[] { "release[/-]" }},
109+
{"dev(elop)?(ment)?$", new[] { "develop" }}
127110
};
128111

129112
foreach (var mapping in dict)
@@ -141,7 +124,6 @@ static void MigrateBranches(Config config)
141124
}
142125
}
143126

144-
145127
static BranchConfig GetOrCreateBranchDefaults(Config config, string branch)
146128
{
147129
if (!config.Branches.ContainsKey(branch))

0 commit comments

Comments
 (0)