8000 Remove trailing white spaces · dotjosh/libgit2sharp@7fa704c · GitHub
[go: up one dir, main page]

Skip to content

Commit 7fa704c

Browse files
committed
Remove trailing white spaces
1 parent 66cbcc0 commit 7fa704c

25 files changed

+53
-56
lines changed

BACKLOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@
2929
- Add Reference equality test suite
3030
- Remove Ignore attribute from ReferenceFixture.CanMoveAReferenceToADeeperReferenceHierarchy() once git_reference_rename() is fixed
3131
- Remove Ignore attribute from ReferenceFixture.CanMoveAReferenceToAUpperReferenceHierarchy() once git_reference_rename() is fixed
32-
32+
3333
### Miscellaneous
3434

3535
- Run the build on a Unix platform
36-

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,3 @@
7070
## v0.1.0
7171

7272
- Initial release
73-

CI-build.msbuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
Force32Bit="true"
3636
OutputXmlFile="$(DeployFolder)\Test-result.xml" />
3737
</Target>
38-
38+
3939
<Target Name="Deploy" DependsOnTargets="Test">
4040
<Copy SourceFiles="@(OutputFiles)"
4141
DestinationFiles="@(OutputFiles->'$(DeployFolder)\%(RecursiveDir)%(Filename)%(Extension)')" />

LICENSE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2121
THE SOFTWARE.
22-

LibGit2Sharp.Tests/BranchFixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ public void CanMoveABranchWhileOverwritingAnExistingOne()
328328
newTest.Tip.ShouldEqual(br2.Tip);
329329
}
330330
}
331-
331+
332332
[Test]
333333
public void CreatingABranchTriggersTheCreationOfADirectReference()
334334
{
@@ -337,7 +337,7 @@ public void CreatingABranchTriggersTheCreationOfADirectReference()
337337
{
338338
var newBranch = repo.CreateBranch("clone-of-master");
339339
newBranch.IsCurrentRepositoryHead.ShouldBeFalse();
340-
340+
341341
var commitId = repo.Head.Tip.Id;
342342
newBranch.Tip.Id.ShouldEqual(commitId);
343343

LibGit2Sharp.Tests/CommitFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public void CanEnumerateUsingTwoAbbreviatedShasAsBoundaries()
219219
CollectionAssert.AreEquivalent(new[] { "a4a7dce", "c47800c", "9fd738e" }, abbrevShas);
220220
}
221221
}
222-
222+
223223
[Test]
224224
public void CanLookupCommitGeneric()
225225
{

LibGit2Sharp.Tests/IndexFixture.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class IndexFixture : BaseFixture
1616
"new.txt",
1717
"branch_file.txt",
1818
"1/branch_file.txt",
19-
//"deleted_staged_file.txt",
19+
//"deleted_staged_file.txt",
2020
"deleted_unstaged_file.txt",
2121
"modified_staged_file.txt",
2222
"modified_unstaged_file.txt",
@@ -123,10 +123,10 @@ public void StagingANewVersionOfAFileThenUnstagingRevertsTheBlobToTheVersionOfHe
123123
const string fileName = "myFile.txt";
124124

125125
var fullpath = Path.Combine(repo.Info.WorkingDirectory, fileName);
126-
126+
127127
const string initialContent = "Hello?";
128128
File.AppendAllText(fullpath, initialContent);
129-
129+
130130
repo.Index.Stage(fileName);
131131
var blobId = repo.Index[fileName].Id;
132132

LibGit2Sharp.Tests/Properties/AssemblyInfo.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Reflection;
22
using System.Runtime.InteropServices;
33

4-
// General Information about an assembly is controlled through the following
4+
// General Information about an assembly is controlled through the following
55
// set of attributes. Change these attribute values to modify the information
66
// associated with an assembly.
77

@@ -14,8 +14,8 @@
1414
[assembly: AssemblyTrademark("")]
1515
[assembly: AssemblyCulture("")]
1616

17-
// Setting ComVisible to false makes the types in this assembly not visible
18-
// to COM components. If you need to access a type in this assembly from
17+
// Setting ComVisible to false makes the types in this assembly not visible
18+
// to COM components. If you need to access a type in this assembly from
1919
// COM, set the ComVisible attribute to true on that type.
2020

2121
[assembly: ComVisible(false)]
@@ -27,11 +27,11 @@
2727
// Version information for an assembly consists of the following four values:
2828
//
2929
// Major Version
30-
// Minor Version
30+
// Minor Version
3131
// Build Number
3232
// Revision
3333
//
34-
// You can specify all the values or you can default the Build and Revision Numbers
34+
// You can specify all the values or you can default the Build and Revision Numbers
3535
// by using the '*' as shown below:
3636
// [assembly: AssemblyVersion("1.0.*")]
3737

LibGit2Sharp.Tests/ReferenceFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ public void CanMoveAndOverWriteAExistingReference()
436436
{
437437
const string oldName = "refs/heads/packed";
438438
const string newName = "refs/heads/br2";
439-
439+
440440
Reference moved = repo.Refs.Move(oldName, newName, true);
441441

442442
repo.Refs[oldName].ShouldBeNull();

LibGit2Sharp.Tests/RepositoryFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ private void CheckGitConfigFile(string dir)
6767
private static void AssertIsHidden(string repoPath)
6868
{
6969
var attribs = File.GetAttributes(repoPath);
70-
70+
7171
(attribs & FileAttributes.Hidden).ShouldEqual(FileAttributes.Hidden);
7272
}
7373

LibGit2Sharp.Tests/TagFixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ public void BlindlyCreatingAnAnnotatedTagOverAnExistingOneThrows()
375375
Assert.Throws<ApplicationException>(() => repo.Tags.Create("e90810b", "refs/heads/br2", signatureNtk, "a nice message"));
376376
}
377377
}
378-
378+
379379
[Test]
380380
public void CreateTagWithADuplicateNameThrows()
381381
{
@@ -548,7 +548,7 @@ public void ListAllTagsShouldOutputThemInAnOrderedWay()
548548
using (var repo = new Repository(Constants.BareTestRepoPath))
549549
{
550550
List<string> tagNames = repo.Tags.Select(t => t.Name).ToList();
551-
551+
552552
var sortedTags = expectedTags;
553553
sortedTags.Sort();
554554

LibGit2Sharp/BranchCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public Branch Create(string name, string target)
8787
var reference = repo.Refs[NormalizeToCanonicalName(target)].ResolveToDirectReference();
8888
target = reference.TargetIdentifier;
8989
}
90-
90+
9191
repo.Refs.Create(NormalizeToCanonicalName(name), target);
9292
return this[name];
9393
}

LibGit2Sharp/CommitCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public ICommitCollection QueryBy(Filter filter)
8686

8787
return new CommitCollection(repo, filter.SortBy)
8888
{
89-
includedIdentifier = filter.Since,
89+
includedIdentifier = filter.Since,
9090
excludedIdentifier = filter.Until
9191
};
9292
}

LibGit2Sharp/Core/Ensure.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static void ArgumentNotNullOrEmptyString(string argumentValue, string arg
4646
/// </para>
4747
/// </summary>
4848
/// <param name = "result">The result to examine.</param>
49-
/// <param name="allowPositiveResult">False to only allow success when comparing against 0,
49+
/// <param name="allowPositiveResult">False to only allow success when comparing against 0,
5050
/// True when positive values are allowed as well.</param>
5151
public static void Success(int result, bool allowPositiveResult = false)
5252
{

LibGit2Sharp/Core/GitOid.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ internal struct GitOid
1010
/// <summary>
1111
/// The raw binary 20 byte Id.
1212
/// </summary>
13-
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)]
13+
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)]
1414
public byte[] Id;
1515
}
1616
}

LibGit2Sharp/Core/NativeMethods.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ internal static class NativeMethods
133133
public static extern int git_repository_discover(StringBuilder repository_path, int size, string start_path,
134134
[MarshalAs(UnmanagedType.Bool)] bool across_fs,
135135
string ceiling_dirs);
136-
136+
137137
[DllImport(libgit2)]
138138
public static extern void git_repository_free(IntPtr repository);
139139

LibGit2Sharp/Core/PosixPathHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ public static string ToPosix(string nativePath)
1111
if (posixDirectorySeparatorChar == Path.DirectorySeparatorChar)
1212
{
1313
return nativePath;
14-
}
15-
14+
}
15+
1616
if (nativePath == null)
1717
{
1818
return null;

LibGit2Sharp/DirectReference.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class DirectReference : Reference
1010
private readonly Func<GitObject> targetResolver;
1111
private bool resolved;
1212
private GitObject target;
13-
13+
1414
internal DirectReference(Func<GitObject> targetResolver)
1515
{
1616
this.targetResolver = targetResolver;

LibGit2Sharp/GitObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public override bool Equals(object obj)
8484
{
8585
return Equals(obj as GitObject);
8686
}
87-
87+
8888
/// <summary>
8989
/// Determines whether the specified <see cref="GitObject"/> is equal to the current <see cref="GitObject"/>.
9090
/// </summary>

LibGit2Sharp/GitObjectType.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public enum GitObjectType
1111
Any = -2,
1212

1313
/// <summary>
14-
/// Object is invalid.
14+
/// Object is invalid.
1515
/// </summary>
1616
Bad = -1,
1717

@@ -24,27 +24,27 @@ public enum GitObjectType
2424
/// A commit object.
2525
/// </summary>
2626
Commit = 1,
27-
27+
2828
/// <summary>
2929
/// A tree (directory listing) object.
3030
/// </summary>
3131
Tree = 2,
32-
32+
3333
/// <summary>
3434
/// A file revision object.
3535
/// </summary>
3636
Blob = 3,
37-
37+
3838
/// <summary>
3939
/// An annotated tag object.
4040
/// </summary>
4141
Tag = 4,
42-
42+
4343
/// <summary>
4444
/// Reserved for future use.
4545
/// </summary>
4646
Ext2 = 5,
47-
47+
4848
/// <summary>
4949
/// A delta, base is given by an offset.
5050
/// </summary>

LibGit2Sharp/Index.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ internal IndexSafeHandle Handle
2323
{
2424
get { return handle; }
2525
}
26-
26+
2727
public int Count
2828
{
2929
get { return (int)NativeMethods.git_index_entrycount(handle); }
@@ -162,7 +162,7 @@ public void Move(string sourcePath, string destinationPath)
162162
RemoveFromIndex(relativeSourcePath);
163163

164164
File.Move(Path.Combine(wd, relativeSourcePath), Path.Combine(wd, relativeDestinationPath));
165-
165+
166166
AddToIndex(relativeDestinationPath);
167167

168168
UpdatePhysicalIndex();
@@ -190,7 +190,7 @@ private void RestorePotentialPreviousVersionOf(string relativePath)
190190
{
191191
return;
192192
}
193-
193+
194194
File.WriteAllBytes(Path.Combine(repo.Info.WorkingDirectory, relativePath), ((Blob) currentHeadBlob.Target).Content);
195195
AddToIndex(relativePath);
196196
}
@@ -201,7 +201,7 @@ private void UpdatePhysicalIndex()
201201
Ensure.Success(res);
202202
}
203203

204-
private string BuildRelativePathFrom(string path) //TODO: To be removed when libgit2 natively implements this
204+
private string BuildRelativePathFrom(string path) //TODO: To be removed when libgit2 natively implements this
205205
{
206206
if (!Path.IsPathRooted(path))
207207
{

LibGit2Sharp/ObjectId.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,9 @@ private static bool LooksValid(string objectId, bool throwIfInvalid, bool allowS
283283
return false;
284284
}
285285

286-
string additionalErrorInformation =
287-
!allowShortIdentifier ?
288-
string.Format("Its length should be {0}", HexSize) :
286+
string additionalErrorInformation =
287+
!allowShortIdentifier ?
288+
string.Format("Its length should be {0}", HexSize) :
289289
string.Format("Its length should be comprised between {0} and {1}", MinHexSize, HexSize);
290290

291291
throw new ArgumentException(

LibGit2Sharp/Properties/AssemblyInfo.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Reflection;
33
using System.Runtime.InteropServices;
44

5-
// General Information about an assembly is controlled through the following
5+
// General Information about an assembly is controlled through the following
66
// set of attributes. Change these attribute values to modify the information
77
// associated with an assembly.
88

@@ -21,8 +21,8 @@
2121

2222
[assembly: CLSCompliant(true)]
2323

24-
// Setting ComVisible to false makes the types in this assembly not visible
25-
// to COM components. If you need to access a type in this assembly from
24+
// Setting ComVisible to false makes the types in this assembly not visible
25+
// to COM components. If you need to access a type in this assembly from
2626
// COM, set the ComVisible attribute to true on that type.
2727

2828
[assembly: ComVisible(false)]
@@ -34,11 +34,11 @@
3434
// Version information for an assembly consists of the following four values:
3535
//
3636
// Major Version
37-
// Minor Version
37+
// Minor Version
3838
// Build Number
3939
// Revision
4040
//
41-
// You can specify all the values or you can default the Build and Revision Numbers
41+
// You can specify all the values or you can default the Build and Revision Numbers
4242
// by using the '*' as shown below:
4343
// [assembly: AssemblyVersion("1.0.*")]
4444

LibGit2Sharp/ReferenceCollection.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public Reference Create(string name, string target, bool allowOverwrite = false)
7171
Ensure.ArgumentNotNullOrEmptyString(target, "target");
7272

7373
ObjectId id;
74-
74+
7575
IntPtr reference;
7676
int res;
7777

@@ -97,9 +97,9 @@ private int CreateSymbolicReference(string name, string target, bool allowOverwr
9797
private int CreateDirectReference(string name, ObjectId targetId, bool allowOverwrite, out IntPtr reference)
9898
{
9999
targetId = Unabbreviate(targetId);
100-
100+
101101
GitOid oid = targetId.Oid;
102-
102+
103103
return NativeMethods.git_reference_create_oid(out reference, repo.Handle, name, ref oid, allowOverwrite);
104104
}
105105

@@ -111,7 +111,7 @@ private ObjectId Unabbreviate(ObjectId targetId)
111111
}
112112

113113
var obj = repo.Lookup(targetId);
114-
114+
115115
if (obj == null)
116116
{
117117
Ensure.Success((int) GitErrorCode.GIT_ENOTFOUND);
@@ -147,7 +147,7 @@ public Reference Move(string currentName, string newName, bool allowOverwrite =
147147
Ensure.ArgumentNotNullOrEmptyString(newName, "newName");
148148

149149
IntPtr referencePtr = RetrieveReferencePtr(currentName);
150-
150+
151151
int res = NativeMethods.git_reference_rename(referencePtr, newName, allowOverwrite);
152152
Ensure.Success(res);
153153

0 commit comments

Comments
 (0)
0