Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
# Conflicts:
#	readme.md
  • Loading branch information
Sebastian Hönel committed Jan 16, 2020
2 parents 92197d2 + 2627cf3 commit 5e312ee
Show file tree
Hide file tree
Showing 107 changed files with 1,049 additions and 597 deletions.
56 changes: 44 additions & 12 deletions GitDensity/App.config
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
Expand All @@ -19,8 +19,8 @@
</providers>
</entityFramework>
<runtime>
<gcAllowVeryLargeObjects enabled="true" />
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<gcAllowVeryLargeObjects enabled="true" />
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Core" publicKeyToken="b77a5c561934e089" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" />
Expand All @@ -31,7 +31,7 @@
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="NHibernate" publicKeyToken="aa95f207798dfdb4" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-5.1.0.0" newVersion="5.1.0.0" />
<bindingRedirect oldVersion="0.0.0.0-5.2.0.0" newVersion="5.2.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Remotion.Linq" publicKeyToken="fee00910d6e5f53b" culture="neutral" />
Expand All @@ -43,27 +43,27 @@
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Extensions.Options" publicKeyToken="adb9793829ddae60" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
<bindingRedirect oldVersion="0.0.0.0-3.1.1.0" newVersion="3.1.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Extensions.Logging.Abstractions" publicKeyToken="adb9793829ddae60" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.0.0.0" newVersion="2.0.0.0" />
<bindingRedirect oldVersion="0.0.0.0-3.1.1.0" newVersion="3.1.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Remotion.Linq.EagerFetching" publicKeyToken="fee00910d6e5f53b" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.2.0.0" newVersion="2.2.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Extensions.Configuration.Abstractions" publicKeyToken="adb9793829ddae60" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.0.1.0" newVersion="2.0.1.0" />
<bindingRedirect oldVersion="0.0.0.0-3.1.1.0" newVersion="3.1.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Extensions.Primitives" publicKeyToken="adb9793829ddae60" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-2.1.1.0" newVersion="2.1.1.0" />
<bindingRedirect oldVersion="0.0.0.0-3.1.1.0" newVersion="3.1.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Numerics.Vectors" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
Expand All @@ -73,12 +73,44 @@
<assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Extensions.DependencyInjection.Abstractions" publicKeyToken="adb9793829ddae60" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.1.1.0" newVersion="3.1.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.1" newVersion="4.0.1.1" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Extensions.Configuration.Binder" publicKeyToken="adb9793829ddae60" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.1.1.0" newVersion="3.1.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Extensions.DependencyInjection" publicKeyToken="adb9793829ddae60" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.1.1.0" newVersion="3.1.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Extensions.Logging" publicKeyToken="adb9793829ddae60" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.1.1.0" newVersion="3.1.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Extensions.Configuration" publicKeyToken="adb9793829ddae60" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.1.1.0" newVersion="3.1.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Extensions.Options.ConfigurationExtensions" publicKeyToken="adb9793829ddae60" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.1.1.0" newVersion="3.1.1.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Extensions.Logging.Configuration" publicKeyToken="adb9793829ddae60" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.1.1.0" newVersion="3.1.1.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>

<system.data>
<system.data>
<DbProviderFactories>
<remove invariant="System.Data.SQLite.EF6" />
<add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".NET Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
<remove invariant="System.Data.SQLite" /><add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".NET Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" /></DbProviderFactories>
</system.data></configuration>
</system.data>
</configuration>
2 changes: 1 addition & 1 deletion GitDensity/Density/CloneDensity/CloneDetectionWrapper.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// ---------------------------------------------------------------------------------
///
/// Copyright (c) 2019 Sebastian Hönel [[email protected]]
/// Copyright (c) 2020 Sebastian Hönel [[email protected]]
///
/// https://github.com/MrShoenel/git-density
///
Expand Down
2 changes: 1 addition & 1 deletion GitDensity/Density/CloneDensity/ClonesXml.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// ---------------------------------------------------------------------------------
///
/// Copyright (c) 2019 Sebastian Hönel [[email protected]]
/// Copyright (c) 2020 Sebastian Hönel [[email protected]]
///
/// https://github.com/MrShoenel/git-density
///
Expand Down
5 changes: 3 additions & 2 deletions GitDensity/Density/GitDensity.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// ---------------------------------------------------------------------------------
///
/// Copyright (c) 2019 Sebastian Hönel [[email protected]]
/// Copyright (c) 2020 Sebastian Hönel [[email protected]]
///
/// https://github.com/MrShoenel/git-density
///
Expand Down Expand Up @@ -232,7 +232,7 @@ public GitDensityAnalysisResult Analyze()
var dirOld = "old";
var dirNew = "new";
var repoEntity = this.Repository.AsEntity(this.GitCommitSpan);
var developers = this.GitCommitSpan.FilteredCommits.GroupByDeveloperAsSignatures(repoEntity);
var developers = this.GitCommitSpan.GroupByDeveloperAsSignatures(repoEntity);
repoEntity.AddDevelopers(new HashSet<DeveloperEntity>(developers.Values));
var commits = this.GitCommitSpan.FilteredCommits.Select(commit =>
commit.AsEntity(repoEntity, developers[commit.Author]))
Expand Down Expand Up @@ -308,6 +308,7 @@ public GitDensityAnalysisResult Analyze()
var patchNew = pair.Patch[change.Path];
var patchOld = pair.Patch[change.OldPath];
var treeChangeEntity = change.AsEntity(pairEntity);
// As this is either a new (added) or old (deleted) file, there is only one Hunk.
var hunk = Hunk.HunksForPatch(added ? patchNew : patchOld,
oldDirectory, newDirectory).Single();
// We explicitly pass an empty enumerable for the clone-sets, as there possibly
Expand Down
2 changes: 1 addition & 1 deletion GitDensity/Density/GitDensityAnalysisResult.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// ---------------------------------------------------------------------------------
///
/// Copyright (c) 2019 Sebastian Hönel [[email protected]]
/// Copyright (c) 2020 Sebastian Hönel [[email protected]]
///
/// https://github.com/MrShoenel/git-density
///
Expand Down
2 changes: 1 addition & 1 deletion GitDensity/Density/Hunk.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// ---------------------------------------------------------------------------------
///
/// Copyright (c) 2019 Sebastian Hönel [[email protected]]
/// Copyright (c) 2020 Sebastian Hönel [[email protected]]
///
/// https://github.com/MrShoenel/git-density
///
Expand Down
Loading

0 comments on commit 5e312ee

Please sign in to comment.