Skip to content

Commit 5a00322

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

15 files changed

+26
-27
lines changed

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),

LibGit2Sharp/Core/HistoryRewriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ private void RewriteCommit(Commit commit)
233233

234234
var newCommit = repo.ObjectDatabase.CreateCommit(newHeader.Author,
235235
newHeader.Committer,
236-
newHeader.Message,
236+
newHeader.Message,
237237
true,
238238
newTree,
239239
mappedNewParents);

LibGit2Sharp/Core/Proxy.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public static bool git_blob_is_binary(GitObjectSafeHandle obj)
136136

137137
#region git_branch_
138138

139-
public static ReferenceSafeHandle git_branch_create(RepositorySafeHandle repo, string branch_name, ObjectId targetId, bool force,
139+
public static ReferenceSafeHandle git_branch_create(RepositorySafeHandle repo, string branch_name, ObjectId targetId, bool force,
140140
Signature signature, string logMessage)
141141
{
142142
using (ThreadAffinity())
@@ -1322,7 +1322,7 @@ public static Tuple<int, int> git_patch_line_stats(PatchSafeHandle patch)
13221322
Ensure.ZeroResult(res);
13231323
return new Tuple<int, int>((int)add, (int)del);
13241324
}
1325-
}
1325+
}
13261326

13271327
#endregion
13281328

LibGit2Sharp/Core/TarWriter.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
/*
22
* Source: http://code.google.com/p/tar-cs/
3-
*
3+
*
44
* BSD License
5-
*
5+
*
66
* Copyright (c) 2009, Vladimir Vasiltsov
77
* All rights reserved.
8-
*
8+
*
99
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
10-
*
10+
*
1111
* * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
1212
* * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
1313
* * Names of its contributors may not be used to endorse or promote products derived from this software without specific prior written permission.
14-
*
14+
*
1515
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1616
*/
1717

@@ -75,7 +75,7 @@ public void Write(
7575
WriteExtendedHeader(fileNameExtendedHeader, linkExtendedHeader, entrySha, modificationTime);
7676

7777
// Note: in case of links, we won't add a content, but the size in the header will still be != 0. It seems strange, but it seem to be what git.git is doing?
78-
WriteHeader(fileNameExtendedHeader.Name, fileNameExtendedHeader.Prefix, modificationTime, (data != null) ? data.Length : 0, mode,
78+
WriteHeader(fileNameExtendedHeader.Name, fileNameExtendedHeader.Prefix, modificationTime, (data != null) ? data.Length : 0, mode,
7979
userId, groupId, typeflag, linkExtendedHeader.Link, userName, groupName, deviceMajorNumber, deviceMinorNumber);
8080

8181
// folders have no data, and so do links
@@ -143,7 +143,7 @@ protected void WriteHeader(
143143
string deviceMajorNumber,
144144
string deviceMinorNumber)
145145
{
146-
var tarHeader = new UsTarHeader(fileName, namePrefix, lastModificationTime, count, mode,
146+
var tarHeader = new UsTarHeader(fileName, namePrefix, lastModificationTime, count, mode,
147147
userId, groupId, typeflag, link, userName, groupName, deviceMajorNumber, deviceMinorNumber);
148148
var header = tarHeader.GetHeaderValue();
149149
OutStream.Write(header, 0, header.Length);

LibGit2Sharp/NetworkExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static void Push(
4646
{
4747
throw new LibGit2SharpException(
4848
string.Format(
49-
CultureInfo.InvariantCulture,
49+
CultureInfo.InvariantCulture,
5050
"The branch '{0}' (\"{1}\") that you are trying to push does not track an upstream branch.",
5151
branch.Name, branch.CanonicalName));
5252
}

LibGit2Sharp/TarArchiver.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public override void BeforeArchiving(Tree tree, ObjectId oid, DateTimeOffset mod
3232
using (var stream = new MemoryStream(Encoding.ASCII.GetBytes(
3333
string.Format(CultureInfo.InvariantCulture, "52 comment={0}\n", oid.Sha))))
3434
{
35-
writer.Write("pax_global_header", stream, modificationTime, "666".OctalToInt32(),
35+
writer.Write("pax_global_header", stream, modificationTime, "666".OctalToInt32(),
3636
"0", "0", 'g', "root", "root", "0", "0", oid.Sha, false);
3737
}
3838
}
@@ -43,7 +43,7 @@ protected override void AddTreeEntry(string path, TreeEntry entry, DateTimeOffse
4343
{
4444
case Mode.GitLink:
4545
case Mode.Directory:
46-
writer.Write(path + "/", null, modificationTime, "775".OctalToInt32(),
46+
writer.Write(path + "/", null, modificationTime, "775".OctalToInt32(),
4747
"0", "0", '5', "root", "root", "0", "0", entry.TargetId.Sha, false);
4848
break;
4949
case Mode.ExecutableFile:
@@ -57,7 +57,7 @@ protected override void AddTreeEntry(string path, TreeEntry entry, DateTimeOffse
5757
case Mode.SymbolicLink:
5858
using (Stream contentStream = ((Blob)entry.Target).GetContentStream(new FilteringOptions(path)))
5959
{
60-
writer.Write(path, contentStream, modificationTime, "777".OctalToInt32(),
60+
writer.Write(path, contentStream, modificationTime, "777".OctalToInt32(),
6161
"0", "0", '2', "root", "root", "0", "0", entry.TargetId.Sha, true);
6262
}
6363
break;

0 commit comments

Comments
 (0)