Skip to content

Commit 5a00322

Browse files
committed
Cleanup whitespaces
1 parent 989f953 commit 5a00322

15 files changed

Lines changed: 26 additions & 27 deletions

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
- Teach repo.Commits.FindMergeBase to leverage either Standard or Octopus strategy (#634 and #629)
2121
- Make ObjectDatabase.CreateCommit() accept an option controlling the prettifying of the message (#619)
2222
- Allow notes retrieval by namespace and ObjectId (#653)
23-
23+
2424
### Changes
2525

2626
- Deprecate repo.Commits.FindCommonAncestor() in favor of repo.Commits.FindMergeBase() (#634)

LibGit2Sharp.Tests/BranchFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ public void MovingABranchIncludesTheCorrectReflogEntries()
10081008
EnableRefLog(repo);
10091009
var master = repo.Branches["master"];
10101010
var newMaster = repo.Branches.Move(master, "new-master");
1011-
AssertRefLogEntry(repo, newMaster.CanonicalName, newMaster.Tip.Id,
1011+
AssertRefLogEntry(repo, newMaster.CanonicalName, newMaster.Tip.Id,
10121012
"branch: renamed refs/heads/master to refs/heads/new-master");
10131013

10141014
newMaster = repo.Branches.Move(newMaster, "new-master2", null, "MOVE");

LibGit2Sharp.Tests/FetchFixture.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ public void CanFetchAllTagsIntoAnEmptyRepository(string url)
8787
}
8888

8989
// Perform the actual fetch
90-
repo.Network.Fetch(remote, new FetchOptions {
90+
repo.Network.Fetch(remote, new FetchOptions {
9191
TagFetchMode = TagFetchMode.All,
92-
OnUpdateTips = expectedFetchState.RemoteUpdateTipsHandler
92+
OnUpdateTips = expectedFetchState.RemoteUpdateTipsHandler
9393
});
9494

9595
// Verify the expected
@@ -111,7 +111,7 @@ public void CanFetchCustomRefSpecsIntoAnEmptyRepository(string url, string local
111111
Remote remote = repo.Network.Remotes.Add(remoteName, url);
112112

113113
string refSpec = string.Format("refs/heads/{2}:refs/remotes/{0}/{1}", remoteName, localBranchName, remoteBranchName);
114-
114+
115115
// Set up structures for the expected results
116116
// and verifying the RemoteUpdateTips callback.
117117
TestRemoteInfo remoteInfo = TestRemoteInfo.TestRemoteInstance;
@@ -121,7 +121,7 @@ public void CanFetchCustomRefSpecsIntoAnEmptyRepository(string url, string local
121121
// Perform the actual fetch
122122
repo.Network.Fetch(remote, new string[] { refSpec }, new FetchOptions {
123123
TagFetchMode = TagFetchMode.None,
124-
OnUpdateTips = expectedFetchState.RemoteUpdateTipsHandler
124+
OnUpdateTips = expectedFetchState.RemoteUpdateTipsHandler
125125
});
126126

127127
// Verify the expected

LibGit2Sharp.Tests/MergeFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public void CanRetrieveTheBranchBeingMerged()
7373
Assert.Equal(CurrentOperation.Merge, repo.Info.CurrentOperation);
7474
}
7575
}
76-
76+
7777
[Theory]
7878
[InlineData(true)]
7979
[InlineData(false)]

LibGit2Sharp.Tests/MetaFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public void GetEnumeratorMethodsInLibGit2SharpMustBeVirtualForTestability()
209209
!t.IsAbstract &&
210210
t.GetInterfaces().Any(i => i.IsAssignableFrom(typeof(IEnumerable<>))))
211211
.Select(t => t.GetMethod("GetEnumerator"))
212-
.Where(m =>
212+
.Where(m =>
213213
m.ReturnType.Name == "IEnumerator`1" &&
214214
(!m.IsVirtual || m.IsFinal))
215215
.ToList();

LibGit2Sharp.Tests/ReferenceFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ public void CanMoveAReferenceToADifferentReferenceHierarchy()
648648
Assert.Equal(newName, moved.CanonicalName);
649649
Assert.Equal(oldId, moved.ResolveToDirectReference().Target.Id);
650650

651-
AssertRefLogEntry(repo, newName, moved.ResolveToDirectReference().Target.Id,
651+
AssertRefLogEntry(repo, newName, moved.ResolveToDirectReference().Target.Id,
652652
string.Format("reference: renamed {0} to {1}", oldName, newName));
653653
}
654654
}

LibGit2Sharp/Core/Ensure.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public static void ArgumentDoesNotContainZeroByte(string argumentValue, string a
6767
}
6868

6969
throw new ArgumentException(
70-
string.Format(CultureInfo.InvariantCulture,
70+
string.Format(CultureInfo.InvariantCulture,
7171
"Zero bytes ('\\0') are not allowed. A zero byte has been found at position {0}.", zeroPos), argumentName);
7272
}
7373

LibGit2Sharp/Core/GitBlame.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ internal enum GitBlameOptionFlags
3737
/// Restrict the search of commits to those reachable
3838
/// following only the first parents.
3939
/// </summary>
40-
GIT_BLAME_FIRST_PARENT = (1<<4),
40+
GIT_BLAME_FIRST_PARENT = (1<<4),
4141
}
4242

4343
[StructLayout(LayoutKind.Sequential)]

LibGit2Sharp/Core/GitCredentialType.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,3 @@ public enum GitCredentialType
2929
Default = (1 << 3),
3030
}
3131
}
32-

LibGit2Sharp/Core/GitDiff.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ enum GitDiffFindFlags
282282
// Obey `diff.renames`. Overridden by any other GIT_DIFF_FIND_... flag.
283283
GIT_DIFF_FIND_BY_CONFIG = 0,
284284

285-
// Look for renames? (`--find-renames`)
285+
// Look for renames? (`--find-renames`)
286286
GIT_DIFF_FIND_RENAMES = (1 << 0),
287287
// consider old side of modified for renames? (`--break-rewrites=N`)
288288
GIT_DIFF_FIND_RENAMES_FROM_REWRITES = (1 << 1),

0 commit comments

Comments
 (0)