8000 Trim trailing whitespaces · appcompat1/libgit2sharp@818654b · GitHub
[go: up one dir, main page]

Skip to content

Commit 818654b

Browse files
committed
Trim trailing whitespaces
1 parent 1e79a42 commit 818654b

39 files changed

+125
-126
lines changed

LibGit2Sharp/CheckoutOptions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ CheckoutStrategy IConvertableToGitCheckoutOpts.CheckoutStrategy
3434
{
3535
get
3636
{
37-
return CheckoutModifiers.HasFlag(CheckoutModifiers.Force)
38-
? CheckoutStrategy.GIT_CHECKOUT_FORCE
37+
return CheckoutModifiers.HasFlag(CheckoutModifiers.Force)
38+
? CheckoutStrategy.GIT_CHECKOUT_FORCE
3939
: CheckoutStrategy.GIT_CHECKOUT_SAFE;
4040
}
4141
}

LibGit2Sharp/Commit.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ private string DebuggerDisplay
118118
get
119119
{
120120
return string.Format(CultureInfo.InvariantCulture,
121-
"{0} {1}",
122-
Id.ToString(7),
121+
"{0} {1}",
122+
Id.ToString(7),
123123
MessageShort);
124124
}
125125
}

LibGit2Sharp/ConflictCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ private List<Conflict> AllConflicts()
104104
default:
105105
throw new InvalidOperationException(string.Format(CultureInfo.InvariantCulture,
106106
"Entry '{0}' bears an unexpected StageLevel '{1}'",
107-
entry.Path,
107+
entry.Path,
108108
entry.StageLevel));
109109
}
110110
}

LibGit2Sharp/ContentChanges.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private string DebuggerDisplay
124124
{
125125
return string.Format(CultureInfo.InvariantCulture,
126126
@"{{+{0}, -{1}}}",
127-
LinesAdded,
127+
LinesAdded,
128128
LinesDeleted);
129129
}
130130
}

LibGit2Sharp/Core/EncodingMarshaler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ public virtual IntPtr MarshalManagedToNative(Object managedObj)
4343

4444
if (str == null)
4545
{
46-
throw new MarshalDirectiveException(string.Format(CultureInfo.InvariantCulture,
47-
"{0} must be used on a string.",
46+
throw new MarshalDirectiveException(string.Format(CultureInfo.InvariantCulture,
47+
"{0} must be used on a string.",
4848
GetType().Name));
4949
}
5050

LibGit2Sharp/Core/FilePath.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ private static string Replace(string path, char oldChar, char newChar)
6060

6161
public bool Equals(FilePath other)
6262
{
63-
return other == null
64-
? posix == null
63+
return other == null
64+
? posix == null
6565
: string.Equals(posix, other.posix, StringComparison.Ordinal);
6666
}
6767

LibGit2Sharp/Core/FilePathMarshaler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ public override IntPtr MarshalManagedToNative(Object managedObj)
6868

6969
if (null == filePath)
7070
{
71-
throw new MarshalDirectiveException(string.Format(CultureInfo.InvariantCulture,
72-
"{0} must be used on a FilePath.",
71+
throw new MarshalDirectiveException(string.Format(CultureInfo.InvariantCulture,
72+
"{0} must be used on a FilePath.",
7373
GetType().Name));
7474
}
7575

LibGit2Sharp/Core/GitBlame.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ public static GitBlameOptionFlags ToGitBlameOptionFlags(this BlameStrategy strat
7979
return GitBlameOptionFlags.GIT_BLAME_NORMAL;
8080

8181
default:
82-
throw new NotSupportedException(string.Format(CultureInfo.InvariantCulture,
83-
"{0} is not supported at this time",
82+
throw new NotSupportedException(string.Format(CultureInfo.InvariantCulture,
83+
"{0} is not supported at this time",
8484
strategy));
8585
}
8686
}

LibGit2Sharp/Core/GitFilter.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ internal class GitFilter
7070
/// callback to free the payload.
7171
/// </summary>
7272
public delegate int git_filter_check_fn(
73-
GitFilter gitFilter,
74-
IntPtr payload,
75-
IntPtr filterSource,
73+
GitFilter gitFilter,
74+
IntPtr payload,
75+
IntPtr filterSource,
7676
IntPtr attributeValues);
7777

7878
/// <summary>
@@ -86,17 +86,17 @@ public delegate int git_filter_check_fn(
8686
/// The `payload` value will refer to any payload that was set by the `check` callback. It may be read from or written to as needed.
8787
/// </summary>
8888
public delegate int git_filter_apply_fn(
89-
GitFilter gitFilter,
90-
IntPtr payload,
91-
IntPtr gitBufTo,
92-
IntPtr gitBufFrom,
89+
GitFilter gitFilter,
90+
IntPtr payload,
91+
IntPtr gitBufTo,
92+
IntPtr gitBufFrom,
9393
IntPtr filterSource);
9494

9595
public delegate int git_filter_stream_fn(
96-
out IntPtr git_writestream_out,
97-
GitFilter self,
98-
IntPtr payload,
99-
IntPtr filterSource,
96+
out IntPtr git_writestream_out,
97+
GitFilter self,
98+
IntPtr payload,
99+
IntPtr filterSource,
100100
IntPtr git_writestream_next);
101101

102102
/// <summary>

LibGit2Sharp/Core/HistoryRewriter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,8 +302,8 @@ private GitObject RewriteTarget(GitObject oldTarget)
302302
newName = options.TagNameRewriter(annotation.Name, true, annotation.Target.Sha);
303303
}
304304

305-
var newAnnotation = repo.ObjectDatabase.CreateTagAnnotation(newName,
306-
newTarget,
305+
var newAnnotation = repo.ObjectDatabase.CreateTagAnnotation(newName,
306+
newTarget,
307307
annotation.Tagger,
308308
annotation.Message);
309309
objectMap[annotation] = newAnnotation;

0 commit comments

Comments
 (0)
0