From 930f63ce427d4e749578bf7b689affafc451c756 Mon Sep 17 00:00:00 2001 From: nulltoken Date: Mon, 16 Mar 2015 20:26:47 +0100 Subject: [PATCH] Optimize import directives --- LibGit2Sharp.Tests/ArchiveTarFixture.cs | 1 - LibGit2Sharp.Tests/CherryPickFixture.cs | 4 ++-- LibGit2Sharp.Tests/IndexFixture.cs | 4 ++-- LibGit2Sharp.Tests/MergeFixture.cs | 1 - LibGit2Sharp.Tests/PushFixture.cs | 3 ++- LibGit2Sharp.Tests/RefSpecFixture.cs | 3 +-- LibGit2Sharp.Tests/RevertFixture.cs | 2 +- LibGit2Sharp.Tests/ShadowCopyFixture.cs | 2 +- LibGit2Sharp.Tests/SmartSubtransportFixture.cs | 1 - LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs | 2 +- .../TestHelpers/SkippableFactAttribute.cs | 12 ++++++------ LibGit2Sharp/BlameOptions.cs | 4 +--- LibGit2Sharp/BlobExtensions.cs | 3 +-- LibGit2Sharp/Branch.cs | 1 - LibGit2Sharp/BranchCollectionExtensions.cs | 1 - LibGit2Sharp/BranchTrackingDetails.cs | 4 +--- LibGit2Sharp/CheckoutFileConflictStrategy.cs | 7 +------ LibGit2Sharp/CheckoutNotificationOptions.cs | 1 - LibGit2Sharp/CherryPickResult.cs | 5 +---- LibGit2Sharp/CloneOptions.cs | 3 +-- LibGit2Sharp/CommitLog.cs | 1 - LibGit2Sharp/CommitOptions.cs | 7 +------ LibGit2Sharp/CompareOptions.cs | 2 -- LibGit2Sharp/Configuration.cs | 3 ++- LibGit2Sharp/Core/Ensure.cs | 3 +-- LibGit2Sharp/Core/FilePathMarshaler.cs | 1 - LibGit2Sharp/Core/GitCheckoutOptsWrapper.cs | 3 --- LibGit2Sharp/Core/GitCherryPickOptions.cs | 3 +-- LibGit2Sharp/Core/GitPushOptions.cs | 3 +-- LibGit2Sharp/Core/GitStatusEntry.cs | 3 --- LibGit2Sharp/Core/GitStatusOptions.cs | 3 --- LibGit2Sharp/Core/GitStrArray.cs | 2 -- LibGit2Sharp/Core/GitStrArrayNative.cs | 1 - .../Core/Handles/GitAnnotatedCommitHandle.cs | 2 -- LibGit2Sharp/Core/Handles/GitConfigEntryHandle.cs | 2 -- LibGit2Sharp/Core/Handles/GitErrorSafeHandle.cs | 1 - LibGit2Sharp/Core/Handles/IndexEntrySafeHandle.cs | 4 +--- .../Core/Handles/IndexNameEntrySafeHandle.cs | 4 +--- .../Core/Handles/IndexReucEntrySafeHandle.cs | 4 +--- LibGit2Sharp/Core/Handles/OidSafeHandle.cs | 5 +++-- LibGit2Sharp/Core/Handles/StatusListSafeHandle.cs | 7 +------ LibGit2Sharp/Credentials.cs | 1 - LibGit2Sharp/Diff.cs | 1 - LibGit2Sharp/FetchOptions.cs | 5 +---- LibGit2Sharp/GitObjectMetadata.cs | 1 - LibGit2Sharp/Index.cs | 2 -- LibGit2Sharp/IndexNameEntryCollection.cs | 1 - LibGit2Sharp/IndexReucEntryCollection.cs | 1 - LibGit2Sharp/LibGit2SharpException.cs | 1 - LibGit2Sharp/LogLevel.cs | 7 +------ LibGit2Sharp/MergeFetchHeadNotFoundException.cs | 1 - LibGit2Sharp/MergeOptions.cs | 4 ++-- LibGit2Sharp/MergeResult.cs | 7 +------ LibGit2Sharp/NetworkExtensions.cs | 2 -- LibGit2Sharp/PullOptions.cs | 7 +------ LibGit2Sharp/RefSpec.cs | 3 +-- LibGit2Sharp/RefSpecCollection.cs | 2 +- LibGit2Sharp/RefSpecDirection.cs | 7 +------ LibGit2Sharp/ReflogCollection.cs | 3 +-- LibGit2Sharp/Remote.cs | 2 +- LibGit2Sharp/RemoteUpdater.cs | 3 ++- LibGit2Sharp/RemoveFromIndexException.cs | 1 - LibGit2Sharp/Repository.cs | 2 -- LibGit2Sharp/RepositoryInformation.cs | 3 +-- LibGit2Sharp/RevertResult.cs | 7 +------ LibGit2Sharp/Signature.cs | 1 - LibGit2Sharp/SignatureExtensions.cs | 1 - LibGit2Sharp/SmartSubtransport.cs | 2 -- LibGit2Sharp/SmartSubtransportRegistration.cs | 1 - LibGit2Sharp/StageOptions.cs | 4 +--- LibGit2Sharp/StatusOptions.cs | 7 +------ LibGit2Sharp/UnmatchedPathException.cs | 1 - LibGit2Sharp/Version.cs | 3 +-- 73 files changed, 53 insertions(+), 169 deletions(-) diff --git a/LibGit2Sharp.Tests/ArchiveTarFixture.cs b/LibGit2Sharp.Tests/ArchiveTarFixture.cs index c1ae1578..a21847ea 100644 --- a/LibGit2Sharp.Tests/ArchiveTarFixture.cs +++ b/LibGit2Sharp.Tests/ArchiveTarFixture.cs @@ -1,4 +1,3 @@ -using System; using System.IO; using System.Text; using LibGit2Sharp.Tests.TestHelpers; diff --git a/LibGit2Sharp.Tests/CherryPickFixture.cs b/LibGit2Sharp.Tests/CherryPickFixture.cs index c4b61455..d9828e26 100644 --- a/LibGit2Sharp.Tests/CherryPickFixture.cs +++ b/LibGit2Sharp.Tests/CherryPickFixture.cs @@ -1,9 +1,9 @@ -using System.IO; +using System; +using System.IO; using System.Linq; using LibGit2Sharp.Tests.TestHelpers; using Xunit; using Xunit.Extensions; -using System; namespace LibGit2Sharp.Tests { diff --git a/LibGit2Sharp.Tests/IndexFixture.cs b/LibGit2Sharp.Tests/IndexFixture.cs index 8dcdc403..60760c99 100644 --- a/LibGit2Sharp.Tests/IndexFixture.cs +++ b/LibGit2Sharp.Tests/IndexFixture.cs @@ -471,12 +471,12 @@ namespace LibGit2Sharp.Tests { var path = SandboxAssumeUnchangedTestRepo(); using (var repo = new Repository(path)) - { + { var regularFile = repo.Index["hello.txt"]; Assert.False(regularFile.AssumeUnchanged); var assumeUnchangedFile = repo.Index["world.txt"]; - Assert.True(assumeUnchangedFile.AssumeUnchanged); + Assert.True(assumeUnchangedFile.AssumeUnchanged); } } diff --git a/LibGit2Sharp.Tests/MergeFixture.cs b/LibGit2Sharp.Tests/MergeFixture.cs index bf6ba48e..b1b317c5 100644 --- a/LibGit2Sharp.Tests/MergeFixture.cs +++ b/LibGit2Sharp.Tests/MergeFixture.cs @@ -1,5 +1,4 @@ using System; -using System.Diagnostics; using System.IO; using System.Linq; using LibGit2Sharp.Tests.TestHelpers; diff --git a/LibGit2Sharp.Tests/PushFixture.cs b/LibGit2Sharp.Tests/PushFixture.cs index f0e95046..88e932ad 100644 --- a/LibGit2Sharp.Tests/PushFixture.cs +++ b/LibGit2Sharp.Tests/PushFixture.cs @@ -1,6 +1,7 @@ using System; using System.IO; using System.Linq; +using LibGit2Sharp.Handlers; using LibGit2Sharp.Tests.TestHelpers; using Xunit; @@ -62,7 +63,7 @@ namespace LibGit2Sharp.Tests public void CanPushABranchTrackingAnUpstreamBranch() { bool packBuilderCalled = false; - Handlers.PackBuilderProgressHandler packBuilderCb = (x, y, z) => { packBuilderCalled = true; return true; }; + PackBuilderProgressHandler packBuilderCb = (x, y, z) => { packBuilderCalled = true; return true; }; AssertPush(repo => repo.Network.Push(repo.Head)); AssertPush(repo => repo.Network.Push(repo.Branches["master"])); diff --git a/LibGit2Sharp.Tests/RefSpecFixture.cs b/LibGit2Sharp.Tests/RefSpecFixture.cs index 1473ac70..ea78f4eb 100644 --- a/LibGit2Sharp.Tests/RefSpecFixture.cs +++ b/LibGit2Sharp.Tests/RefSpecFixture.cs @@ -1,5 +1,4 @@ -using System; -using System.Linq; +using System.Linq; using LibGit2Sharp.Tests.TestHelpers; using Xunit; using Xunit.Extensions; diff --git a/LibGit2Sharp.Tests/RevertFixture.cs b/LibGit2Sharp.Tests/RevertFixture.cs index 5c52cc6c..6fe960e6 100644 --- a/LibGit2Sharp.Tests/RevertFixture.cs +++ b/LibGit2Sharp.Tests/RevertFixture.cs @@ -1,9 +1,9 @@ +using System; using System.IO; using System.Linq; using LibGit2Sharp.Tests.TestHelpers; using Xunit; using Xunit.Extensions; -using System; namespace LibGit2Sharp.Tests { diff --git a/LibGit2Sharp.Tests/ShadowCopyFixture.cs b/LibGit2Sharp.Tests/ShadowCopyFixture.cs index a2d2e062..546b7670 100644 --- a/LibGit2Sharp.Tests/ShadowCopyFixture.cs +++ b/LibGit2Sharp.Tests/ShadowCopyFixture.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.IO; using System.Reflection; using System.Security; diff --git a/LibGit2Sharp.Tests/SmartSubtransportFixture.cs b/LibGit2Sharp.Tests/SmartSubtransportFixture.cs index 50f19ecc..9d71d3f3 100644 --- a/LibGit2Sharp.Tests/SmartSubtransportFixture.cs +++ b/LibGit2Sharp.Tests/SmartSubtransportFixture.cs @@ -1,7 +1,6 @@ using System; using System.Collections.Generic; using System.IO; -using System.Linq; using System.Net; using System.Net.Security; using LibGit2Sharp.Tests.TestHelpers; diff --git a/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs b/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs index 25e3d2fe..63398fc4 100644 --- a/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs +++ b/LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; diff --git a/LibGit2Sharp.Tests/TestHelpers/SkippableFactAttribute.cs b/LibGit2Sharp.Tests/TestHelpers/SkippableFactAttribute.cs index b16d823f..b9904dba 100644 --- a/LibGit2Sharp.Tests/TestHelpers/SkippableFactAttribute.cs +++ b/LibGit2Sharp.Tests/TestHelpers/SkippableFactAttribute.cs @@ -1,4 +1,10 @@ using System; +using System.Collections.Generic; +using System.Linq; +using System.Xml; +using Xunit; +using Xunit.Extensions; +using Xunit.Sdk; //********************************************************************** //* This file is based on the DynamicSkipExample.cs in xUnit which is //* provided under the following Ms-PL license: @@ -58,12 +64,6 @@ //* portion of the software in compiled or object code form, you may //* only do so under a license that complies with this license. //********************************************************************** -using System.Collections.Generic; -using System.Linq; -using System.Xml; -using Xunit; -using Xunit.Extensions; -using Xunit.Sdk; namespace LibGit2Sharp.Tests.TestHelpers { diff --git a/LibGit2Sharp/BlameOptions.cs b/LibGit2Sharp/BlameOptions.cs index 1fa41a1d..c39a3f53 100644 --- a/LibGit2Sharp/BlameOptions.cs +++ b/LibGit2Sharp/BlameOptions.cs @@ -1,6 +1,4 @@ -using System; - -namespace LibGit2Sharp +namespace LibGit2Sharp { /// /// Strategy used for blaming. diff --git a/LibGit2Sharp/BlobExtensions.cs b/LibGit2Sharp/BlobExtensions.cs index e3d7ddac..0b38c32f 100644 --- a/LibGit2Sharp/BlobExtensions.cs +++ b/LibGit2Sharp/BlobExtensions.cs @@ -1,5 +1,4 @@ -using System; -using System.IO; +using System.IO; using System.Text; using LibGit2Sharp.Core; diff --git a/LibGit2Sharp/Branch.cs b/LibGit2Sharp/Branch.cs index 517a654f..75bd8c8c 100644 --- a/LibGit2Sharp/Branch.cs +++ b/LibGit2Sharp/Branch.cs @@ -1,7 +1,6 @@ using System; using System.Globalization; using LibGit2Sharp.Core; -using LibGit2Sharp.Handlers; namespace LibGit2Sharp { diff --git a/LibGit2Sharp/BranchCollectionExtensions.cs b/LibGit2Sharp/BranchCollectionExtensions.cs index 7008eb6a..f352099d 100644 --- a/LibGit2Sharp/BranchCollectionExtensions.cs +++ b/LibGit2Sharp/BranchCollectionExtensions.cs @@ -1,5 +1,4 @@ using LibGit2Sharp.Core; -using System; namespace LibGit2Sharp { diff --git a/LibGit2Sharp/BranchTrackingDetails.cs b/LibGit2Sharp/BranchTrackingDetails.cs index ad7153c8..e3d99bd4 100644 --- a/LibGit2Sharp/BranchTrackingDetails.cs +++ b/LibGit2Sharp/BranchTrackingDetails.cs @@ -1,6 +1,4 @@ -using System; - -namespace LibGit2Sharp +namespace LibGit2Sharp { /// /// Tracking information for a diff --git a/LibGit2Sharp/CheckoutFileConflictStrategy.cs b/LibGit2Sharp/CheckoutFileConflictStrategy.cs index 578ebe03..9d53745e 100644 --- a/LibGit2Sharp/CheckoutFileConflictStrategy.cs +++ b/LibGit2Sharp/CheckoutFileConflictStrategy.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace LibGit2Sharp +namespace LibGit2Sharp { /// /// Enum specifying what content checkout should write to disk diff --git a/LibGit2Sharp/CheckoutNotificationOptions.cs b/LibGit2Sharp/CheckoutNotificationOptions.cs index 26172715..64969579 100644 --- a/LibGit2Sharp/CheckoutNotificationOptions.cs +++ b/LibGit2Sharp/CheckoutNotificationOptions.cs @@ -1,5 +1,4 @@ using System; -using LibGit2Sharp.Handlers; namespace LibGit2Sharp { diff --git a/LibGit2Sharp/CherryPickResult.cs b/LibGit2Sharp/CherryPickResult.cs index b93de8df..7e944baf 100644 --- a/LibGit2Sharp/CherryPickResult.cs +++ b/LibGit2Sharp/CherryPickResult.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; - -namespace LibGit2Sharp +namespace LibGit2Sharp { /// /// Class to report the result of a cherry picked. diff --git a/LibGit2Sharp/CloneOptions.cs b/LibGit2Sharp/CloneOptions.cs index 779fef99..a4515684 100644 --- a/LibGit2Sharp/CloneOptions.cs +++ b/LibGit2Sharp/CloneOptions.cs @@ -1,5 +1,4 @@ -using System; -using LibGit2Sharp.Core; +using LibGit2Sharp.Core; using LibGit2Sharp.Handlers; namespace LibGit2Sharp diff --git a/LibGit2Sharp/CommitLog.cs b/LibGit2Sharp/CommitLog.cs index 660f3709..2472778b 100644 --- a/LibGit2Sharp/CommitLog.cs +++ b/LibGit2Sharp/CommitLog.cs @@ -1,7 +1,6 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Globalization; using System.Linq; using LibGit2Sharp.Core; using LibGit2Sharp.Core.Handles; diff --git a/LibGit2Sharp/CommitOptions.cs b/LibGit2Sharp/CommitOptions.cs index c36fb433..ffd4c23d 100644 --- a/LibGit2Sharp/CommitOptions.cs +++ b/LibGit2Sharp/CommitOptions.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace LibGit2Sharp +namespace LibGit2Sharp { /// /// Provides optional additional information to commit creation. diff --git a/LibGit2Sharp/CompareOptions.cs b/LibGit2Sharp/CompareOptions.cs index 09f47a2e..5366ff7b 100644 --- a/LibGit2Sharp/CompareOptions.cs +++ b/LibGit2Sharp/CompareOptions.cs @@ -1,5 +1,3 @@ -using System; - namespace LibGit2Sharp { /// diff --git a/LibGit2Sharp/Configuration.cs b/LibGit2Sharp/Configuration.cs index 89059b63..b1b57456 100644 --- a/LibGit2Sharp/Configuration.cs +++ b/LibGit2Sharp/Configuration.cs @@ -1,4 +1,5 @@ using System; +using System.Collections; using System.Collections.Generic; using System.Globalization; using System.IO; @@ -299,7 +300,7 @@ namespace LibGit2Sharp return BuildConfigEntries().GetEnumerator(); } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return ((IEnumerable>)this).GetEnumerator(); } diff --git a/LibGit2Sharp/Core/Ensure.cs b/LibGit2Sharp/Core/Ensure.cs index 1205f831..343fc188 100644 --- a/LibGit2Sharp/Core/Ensure.cs +++ b/LibGit2Sharp/Core/Ensure.cs @@ -1,9 +1,8 @@ using System; -using System.Linq; -using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; +using System.Linq; namespace LibGit2Sharp.Core { diff --git a/LibGit2Sharp/Core/FilePathMarshaler.cs b/LibGit2Sharp/Core/FilePathMarshaler.cs index 6b17df4c..2732b77d 100644 --- a/LibGit2Sharp/Core/FilePathMarshaler.cs +++ b/LibGit2Sharp/Core/FilePathMarshaler.cs @@ -1,7 +1,6 @@ using System; using System.Globalization; using System.Runtime.InteropServices; -using System.Text; namespace LibGit2Sharp.Core { diff --git a/LibGit2Sharp/Core/GitCheckoutOptsWrapper.cs b/LibGit2Sharp/Core/GitCheckoutOptsWrapper.cs index 7fda697a..26614fa9 100644 --- a/LibGit2Sharp/Core/GitCheckoutOptsWrapper.cs +++ b/LibGit2Sharp/Core/GitCheckoutOptsWrapper.cs @@ -1,7 +1,4 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; namespace LibGit2Sharp.Core { diff --git a/LibGit2Sharp/Core/GitCherryPickOptions.cs b/LibGit2Sharp/Core/GitCherryPickOptions.cs index b06f22a7..287ecacf 100644 --- a/LibGit2Sharp/Core/GitCherryPickOptions.cs +++ b/LibGit2Sharp/Core/GitCherryPickOptions.cs @@ -1,5 +1,4 @@ -using System; -using System.Runtime.InteropServices; +using System.Runtime.InteropServices; namespace LibGit2Sharp.Core { diff --git a/LibGit2Sharp/Core/GitPushOptions.cs b/LibGit2Sharp/Core/GitPushOptions.cs index bf6058d6..baebabee 100644 --- a/LibGit2Sharp/Core/GitPushOptions.cs +++ b/LibGit2Sharp/Core/GitPushOptions.cs @@ -1,5 +1,4 @@ -using System; -using System.Runtime.InteropServices; +using System.Runtime.InteropServices; namespace LibGit2Sharp.Core { diff --git a/LibGit2Sharp/Core/GitStatusEntry.cs b/LibGit2Sharp/Core/GitStatusEntry.cs index 2e13a186..3e46c7b2 100644 --- a/LibGit2Sharp/Core/GitStatusEntry.cs +++ b/LibGit2Sharp/Core/GitStatusEntry.cs @@ -1,8 +1,5 @@ using System; -using System.Collections.Generic; -using System.Linq; using System.Runtime.InteropServices; -using System.Text; namespace LibGit2Sharp.Core { diff --git a/LibGit2Sharp/Core/GitStatusOptions.cs b/LibGit2Sharp/Core/GitStatusOptions.cs index 4b4089f6..3e9dbd5d 100644 --- a/LibGit2Sharp/Core/GitStatusOptions.cs +++ b/LibGit2Sharp/Core/GitStatusOptions.cs @@ -1,8 +1,5 @@ using System; -using System.Collections.Generic; -using System.Linq; using System.Runtime.InteropServices; -using System.Text; namespace LibGit2Sharp.Core { diff --git a/LibGit2Sharp/Core/GitStrArray.cs b/LibGit2Sharp/Core/GitStrArray.cs index a94187e1..d2efca8b 100644 --- a/LibGit2Sharp/Core/GitStrArray.cs +++ b/LibGit2Sharp/Core/GitStrArray.cs @@ -1,7 +1,5 @@ using System; -using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Text; namespace LibGit2Sharp.Core { diff --git a/LibGit2Sharp/Core/GitStrArrayNative.cs b/LibGit2Sharp/Core/GitStrArrayNative.cs index 2db550c0..8813f8e6 100644 --- a/LibGit2Sharp/Core/GitStrArrayNative.cs +++ b/LibGit2Sharp/Core/GitStrArrayNative.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using System.Runtime.InteropServices; namespace LibGit2Sharp.Core diff --git a/LibGit2Sharp/Core/Handles/GitAnnotatedCommitHandle.cs b/LibGit2Sharp/Core/Handles/GitAnnotatedCommitHandle.cs index 519874d0..f125772d 100644 --- a/LibGit2Sharp/Core/Handles/GitAnnotatedCommitHandle.cs +++ b/LibGit2Sharp/Core/Handles/GitAnnotatedCommitHandle.cs @@ -1,5 +1,3 @@ -using System.Runtime.InteropServices; - namespace LibGit2Sharp.Core.Handles { internal class GitAnnotatedCommitHandle : SafeHandleBase diff --git a/LibGit2Sharp/Core/Handles/GitConfigEntryHandle.cs b/LibGit2Sharp/Core/Handles/GitConfigEntryHandle.cs index 5d9d4a2b..3112ec31 100644 --- a/LibGit2Sharp/Core/Handles/GitConfigEntryHandle.cs +++ b/LibGit2Sharp/Core/Handles/GitConfigEntryHandle.cs @@ -1,5 +1,3 @@ -using System.Runtime.InteropServices; - namespace LibGit2Sharp.Core.Handles { internal class GitConfigEntryHandle : NotOwnedSafeHandleBase diff --git a/LibGit2Sharp/Core/Handles/GitErrorSafeHandle.cs b/LibGit2Sharp/Core/Handles/GitErrorSafeHandle.cs index 8ae8c3c8..d0010a63 100644 --- a/LibGit2Sharp/Core/Handles/GitErrorSafeHandle.cs +++ b/LibGit2Sharp/Core/Handles/GitErrorSafeHandle.cs @@ -1,5 +1,4 @@ using System; -using System.Runtime.InteropServices; namespace LibGit2Sharp.Core.Handles { diff --git a/LibGit2Sharp/Core/Handles/IndexEntrySafeHandle.cs b/LibGit2Sharp/Core/Handles/IndexEntrySafeHandle.cs index 87e0f1dc..f09e01c0 100644 --- a/LibGit2Sharp/Core/Handles/IndexEntrySafeHandle.cs +++ b/LibGit2Sharp/Core/Handles/IndexEntrySafeHandle.cs @@ -1,6 +1,4 @@ -using System.Runtime.InteropServices; - -namespace LibGit2Sharp.Core.Handles +namespace LibGit2Sharp.Core.Handles { internal class IndexEntrySafeHandle : NotOwnedSafeHandleBase { diff --git a/LibGit2Sharp/Core/Handles/IndexNameEntrySafeHandle.cs b/LibGit2Sharp/Core/Handles/IndexNameEntrySafeHandle.cs index 549d41e6..9c5421a5 100644 --- a/LibGit2Sharp/Core/Handles/IndexNameEntrySafeHandle.cs +++ b/LibGit2Sharp/Core/Handles/IndexNameEntrySafeHandle.cs @@ -1,6 +1,4 @@ -using System.Runtime.InteropServices; - -namespace LibGit2Sharp.Core.Handles +namespace LibGit2Sharp.Core.Handles { internal class IndexNameEntrySafeHandle : NotOwnedSafeHandleBase { diff --git a/LibGit2Sharp/Core/Handles/IndexReucEntrySafeHandle.cs b/LibGit2Sharp/Core/Handles/IndexReucEntrySafeHandle.cs index ec006b39..5150081d 100644 --- a/LibGit2Sharp/Core/Handles/IndexReucEntrySafeHandle.cs +++ b/LibGit2Sharp/Core/Handles/IndexReucEntrySafeHandle.cs @@ -1,6 +1,4 @@ -using System.Runtime.InteropServices; - -namespace LibGit2Sharp.Core.Handles +namespace LibGit2Sharp.Core.Handles { internal class IndexReucEntrySafeHandle : NotOwnedSafeHandleBase { diff --git a/LibGit2Sharp/Core/Handles/OidSafeHandle.cs b/LibGit2Sharp/Core/Handles/OidSafeHandle.cs index f6e00ec3..a3095950 100644 --- a/LibGit2Sharp/Core/Handles/OidSafeHandle.cs +++ b/LibGit2Sharp/Core/Handles/OidSafeHandle.cs @@ -1,4 +1,5 @@ -using System.Runtime.InteropServices; +using System; +using System.Runtime.InteropServices; namespace LibGit2Sharp.Core.Handles { @@ -9,7 +10,7 @@ namespace LibGit2Sharp.Core.Handles return IsInvalid ? null : (GitOid?)MarshalAsGitOid(handle); } - private static GitOid MarshalAsGitOid(System.IntPtr data) + private static GitOid MarshalAsGitOid(IntPtr data) { var gitOid = new GitOid { Id = new byte[GitOid.Size] }; Marshal.Copy(data, gitOid.Id, 0, GitOid.Size); diff --git a/LibGit2Sharp/Core/Handles/StatusListSafeHandle.cs b/LibGit2Sharp/Core/Handles/StatusListSafeHandle.cs index 74316a3f..3a51cd7b 100644 --- a/LibGit2Sharp/Core/Handles/StatusListSafeHandle.cs +++ b/LibGit2Sharp/Core/Handles/StatusListSafeHandle.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace LibGit2Sharp.Core.Handles +namespace LibGit2Sharp.Core.Handles { internal class StatusListSafeHandle : SafeHandleBase { diff --git a/LibGit2Sharp/Credentials.cs b/LibGit2Sharp/Credentials.cs index 2f1adf38..50b006b7 100644 --- a/LibGit2Sharp/Credentials.cs +++ b/LibGit2Sharp/Credentials.cs @@ -1,5 +1,4 @@ using System; -using LibGit2Sharp.Core; namespace LibGit2Sharp { diff --git a/LibGit2Sharp/Diff.cs b/LibGit2Sharp/Diff.cs index 70544f4a..3f2b3e46 100644 --- a/LibGit2Sharp/Diff.cs +++ b/LibGit2Sharp/Diff.cs @@ -5,7 +5,6 @@ using System.Linq; using System.Text; using LibGit2Sharp.Core; using LibGit2Sharp.Core.Handles; -using Environment = System.Environment; namespace LibGit2Sharp { diff --git a/LibGit2Sharp/FetchOptions.cs b/LibGit2Sharp/FetchOptions.cs index ec42a2d6..fba0a96f 100644 --- a/LibGit2Sharp/FetchOptions.cs +++ b/LibGit2Sharp/FetchOptions.cs @@ -1,7 +1,4 @@ -using System; -using LibGit2Sharp.Handlers; - -namespace LibGit2Sharp +namespace LibGit2Sharp { /// /// Collection of parameters controlling Fetch behavior. diff --git a/LibGit2Sharp/GitObjectMetadata.cs b/LibGit2Sharp/GitObjectMetadata.cs index b62e5ebe..3e0e939e 100644 --- a/LibGit2Sharp/GitObjectMetadata.cs +++ b/LibGit2Sharp/GitObjectMetadata.cs @@ -1,5 +1,4 @@ using LibGit2Sharp.Core; -using System; namespace LibGit2Sharp { diff --git a/LibGit2Sharp/Index.cs b/LibGit2Sharp/Index.cs index 826e0baf..7aaf95b0 100644 --- a/LibGit2Sharp/Index.cs +++ b/LibGit2Sharp/Index.cs @@ -3,8 +3,6 @@ using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; -using System.IO; -using System.Linq; using LibGit2Sharp.Core; using LibGit2Sharp.Core.Handles; diff --git a/LibGit2Sharp/IndexNameEntryCollection.cs b/LibGit2Sharp/IndexNameEntryCollection.cs index 30dff911..7be2da97 100644 --- a/LibGit2Sharp/IndexNameEntryCollection.cs +++ b/LibGit2Sharp/IndexNameEntryCollection.cs @@ -1,7 +1,6 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Globalization; using LibGit2Sharp.Core; using LibGit2Sharp.Core.Handles; diff --git a/LibGit2Sharp/IndexReucEntryCollection.cs b/LibGit2Sharp/IndexReucEntryCollection.cs index 7a81e3b4..8fe0be9d 100644 --- a/LibGit2Sharp/IndexReucEntryCollection.cs +++ b/LibGit2Sharp/IndexReucEntryCollection.cs @@ -1,7 +1,6 @@ using System; using System.Collections; using System.Collections.Generic; -using System.Globalization; using LibGit2Sharp.Core; using LibGit2Sharp.Core.Handles; diff --git a/LibGit2Sharp/LibGit2SharpException.cs b/LibGit2Sharp/LibGit2SharpException.cs index f5af473f..b80dba6d 100644 --- a/LibGit2Sharp/LibGit2SharpException.cs +++ b/LibGit2Sharp/LibGit2SharpException.cs @@ -1,5 +1,4 @@ using System; -using System.Globalization; using System.Runtime.Serialization; using LibGit2Sharp.Core; diff --git a/LibGit2Sharp/LogLevel.cs b/LibGit2Sharp/LogLevel.cs index 472bd5aa..665c6afd 100644 --- a/LibGit2Sharp/LogLevel.cs +++ b/LibGit2Sharp/LogLevel.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace LibGit2Sharp +namespace LibGit2Sharp { /// /// Available logging levels. When logging is enabled at a particular diff --git a/LibGit2Sharp/MergeFetchHeadNotFoundException.cs b/LibGit2Sharp/MergeFetchHeadNotFoundException.cs index ff4c9cdb..26c3844a 100644 --- a/LibGit2Sharp/MergeFetchHeadNotFoundException.cs +++ b/LibGit2Sharp/MergeFetchHeadNotFoundException.cs @@ -1,6 +1,5 @@ using System; using System.Runtime.Serialization; -using LibGit2Sharp.Core; namespace LibGit2Sharp { diff --git a/LibGit2Sharp/MergeOptions.cs b/LibGit2Sharp/MergeOptions.cs index df6a35b8..883d7b07 100644 --- a/LibGit2Sharp/MergeOptions.cs +++ b/LibGit2Sharp/MergeOptions.cs @@ -1,6 +1,6 @@ -using LibGit2Sharp.Core; +using System; +using LibGit2Sharp.Core; using LibGit2Sharp.Handlers; -using System; namespace LibGit2Sharp { diff --git a/LibGit2Sharp/MergeResult.cs b/LibGit2Sharp/MergeResult.cs index e5cd91c7..6c850c63 100644 --- a/LibGit2Sharp/MergeResult.cs +++ b/LibGit2Sharp/MergeResult.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace LibGit2Sharp +namespace LibGit2Sharp { /// /// Class to report the result of a merge. diff --git a/LibGit2Sharp/NetworkExtensions.cs b/LibGit2Sharp/NetworkExtensions.cs index e9e6f75a..d7548966 100644 --- a/LibGit2Sharp/NetworkExtensions.cs +++ b/LibGit2Sharp/NetworkExtensions.cs @@ -1,8 +1,6 @@ using System.Collections.Generic; using System.Globalization; using System.Linq; -using LibGit2Sharp.Core; -using LibGit2Sharp.Handlers; namespace LibGit2Sharp { diff --git a/LibGit2Sharp/PullOptions.cs b/LibGit2Sharp/PullOptions.cs index 914e6cae..764715bb 100644 --- a/LibGit2Sharp/PullOptions.cs +++ b/LibGit2Sharp/PullOptions.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace LibGit2Sharp +namespace LibGit2Sharp { /// /// Parameters controlling Pull behavior. diff --git a/LibGit2Sharp/RefSpec.cs b/LibGit2Sharp/RefSpec.cs index 5534bd54..d0ac8b3b 100644 --- a/LibGit2Sharp/RefSpec.cs +++ b/LibGit2Sharp/RefSpec.cs @@ -1,5 +1,4 @@ -using System; -using System.Diagnostics; +using System.Diagnostics; using System.Globalization; using LibGit2Sharp.Core; using LibGit2Sharp.Core.Handles; diff --git a/LibGit2Sharp/RefSpecCollection.cs b/LibGit2Sharp/RefSpecCollection.cs index 26042f9b..1b7b5a13 100644 --- a/LibGit2Sharp/RefSpecCollection.cs +++ b/LibGit2Sharp/RefSpecCollection.cs @@ -1,8 +1,8 @@ using System.Collections; using System.Collections.Generic; -using System.Linq; using System.Diagnostics; using System.Globalization; +using System.Linq; using LibGit2Sharp.Core; using LibGit2Sharp.Core.Handles; diff --git a/LibGit2Sharp/RefSpecDirection.cs b/LibGit2Sharp/RefSpecDirection.cs index 9239b7bd..6c377a04 100644 --- a/LibGit2Sharp/RefSpecDirection.cs +++ b/LibGit2Sharp/RefSpecDirection.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace LibGit2Sharp +namespace LibGit2Sharp { /// /// Indicates whether a refspec is a push refspec or a fetch refspec diff --git a/LibGit2Sharp/ReflogCollection.cs b/LibGit2Sharp/ReflogCollection.cs index d95efbcb..d2bbb891 100644 --- a/LibGit2Sharp/ReflogCollection.cs +++ b/LibGit2Sharp/ReflogCollection.cs @@ -1,5 +1,4 @@ -using System; -using System.Collections; +using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; diff --git a/LibGit2Sharp/Remote.cs b/LibGit2Sharp/Remote.cs index fa52b96b..efa716a8 100644 --- a/LibGit2Sharp/Remote.cs +++ b/LibGit2Sharp/Remote.cs @@ -1,8 +1,8 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Diagnostics; using System.Globalization; +using System.Linq; using LibGit2Sharp.Core; using LibGit2Sharp.Core.Handles; diff --git a/LibGit2Sharp/RemoteUpdater.cs b/LibGit2Sharp/RemoteUpdater.cs index 9041203f..1c419727 100644 --- a/LibGit2Sharp/RemoteUpdater.cs +++ b/LibGit2Sharp/RemoteUpdater.cs @@ -1,4 +1,5 @@ using System; +using System.Collections; using System.Collections.Generic; using LibGit2Sharp.Core; using LibGit2Sharp.Core.Handles; @@ -169,7 +170,7 @@ namespace LibGit2Sharp return list.Value.GetEnumerator(); } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return list.Value.GetEnumerator(); } diff --git a/LibGit2Sharp/RemoveFromIndexException.cs b/LibGit2Sharp/RemoveFromIndexException.cs index 0a60b6db..57bfbafa 100644 --- a/LibGit2Sharp/RemoveFromIndexException.cs +++ b/LibGit2Sharp/RemoveFromIndexException.cs @@ -1,6 +1,5 @@ using System; using System.Runtime.Serialization; -using LibGit2Sharp.Core; namespace LibGit2Sharp { diff --git a/LibGit2Sharp/Repository.cs b/LibGit2Sharp/Repository.cs index d2188b17..cf94a8f7 100644 --- a/LibGit2Sharp/Repository.cs +++ b/LibGit2Sharp/Repository.cs @@ -4,11 +4,9 @@ using System.Diagnostics; using System.Globalization; using System.IO; using System.Linq; -using System.Reflection; using System.Text.RegularExpressions; using LibGit2Sharp.Core; using LibGit2Sharp.Core.Handles; -using LibGit2Sharp.Handlers; namespace LibGit2Sharp { diff --git a/LibGit2Sharp/RepositoryInformation.cs b/LibGit2Sharp/RepositoryInformation.cs index 12751906..9f959661 100644 --- a/LibGit2Sharp/RepositoryInformation.cs +++ b/LibGit2Sharp/RepositoryInformation.cs @@ -1,5 +1,4 @@ -using System; -using LibGit2Sharp.Core; +using LibGit2Sharp.Core; namespace LibGit2Sharp { diff --git a/LibGit2Sharp/RevertResult.cs b/LibGit2Sharp/RevertResult.cs index 813903a7..da54046a 100644 --- a/LibGit2Sharp/RevertResult.cs +++ b/LibGit2Sharp/RevertResult.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace LibGit2Sharp +namespace LibGit2Sharp { /// /// Class to report the result of a revert. diff --git a/LibGit2Sharp/Signature.cs b/LibGit2Sharp/Signature.cs index 7dbb437d..f51e14b0 100644 --- a/LibGit2Sharp/Signature.cs +++ b/LibGit2Sharp/Signature.cs @@ -1,6 +1,5 @@ using System; using System.Globalization; -using System.Runtime.InteropServices; using LibGit2Sharp.Core; using LibGit2Sharp.Core.Handles; diff --git a/LibGit2Sharp/SignatureExtensions.cs b/LibGit2Sharp/SignatureExtensions.cs index 7c3f868c..a4be1c4e 100644 --- a/LibGit2Sharp/SignatureExtensions.cs +++ b/LibGit2Sharp/SignatureExtensions.cs @@ -1,5 +1,4 @@ using System; -using LibGit2Sharp.Core; namespace LibGit2Sharp { diff --git a/LibGit2Sharp/SmartSubtransport.cs b/LibGit2Sharp/SmartSubtransport.cs index 2f1f5f62..1203cedf 100644 --- a/LibGit2Sharp/SmartSubtransport.cs +++ b/LibGit2Sharp/SmartSubtransport.cs @@ -1,6 +1,4 @@ using System; -using System.Collections.Generic; -using System.IO; using System.Runtime.InteropServices; using LibGit2Sharp.Core; diff --git a/LibGit2Sharp/SmartSubtransportRegistration.cs b/LibGit2Sharp/SmartSubtransportRegistration.cs index d7d7a0ad..df7c1cb4 100644 --- a/LibGit2Sharp/SmartSubtransportRegistration.cs +++ b/LibGit2Sharp/SmartSubtransportRegistration.cs @@ -1,5 +1,4 @@ using System; -using System.Linq; using System.Runtime.InteropServices; using LibGit2Sharp.Core; diff --git a/LibGit2Sharp/StageOptions.cs b/LibGit2Sharp/StageOptions.cs index 7701b894..4e5d7260 100644 --- a/LibGit2Sharp/StageOptions.cs +++ b/LibGit2Sharp/StageOptions.cs @@ -1,6 +1,4 @@ -using System; - -namespace LibGit2Sharp +namespace LibGit2Sharp { /// /// Options to define file staging behavior. diff --git a/LibGit2Sharp/StatusOptions.cs b/LibGit2Sharp/StatusOptions.cs index 5516bbf0..a7e51760 100644 --- a/LibGit2Sharp/StatusOptions.cs +++ b/LibGit2Sharp/StatusOptions.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace LibGit2Sharp +namespace LibGit2Sharp { /// /// Flags controlling what files are reported by status. diff --git a/LibGit2Sharp/UnmatchedPathException.cs b/LibGit2Sharp/UnmatchedPathException.cs index 0227e9bc..e63b3514 100644 --- a/LibGit2Sharp/UnmatchedPathException.cs +++ b/LibGit2Sharp/UnmatchedPathException.cs @@ -1,6 +1,5 @@ using System; using System.Runtime.Serialization; -using LibGit2Sharp.Core; namespace LibGit2Sharp { diff --git a/LibGit2Sharp/Version.cs b/LibGit2Sharp/Version.cs index 34dd433d..a3f7edb6 100644 --- a/LibGit2Sharp/Version.cs +++ b/LibGit2Sharp/Version.cs @@ -1,5 +1,4 @@ -using System; -using System.Globalization; +using System.Globalization; using System.IO; using System.Linq; using System.Reflection;