Skip to content

Commit ef6a472

Browse files
committed
Remove comments when we prettify a message
For whatever reason this was hard-coded to false, so we would never in fact remove comments.
1 parent 6f19c27 commit ef6a472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LibGit2Sharp/Core/Proxy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ public static string git_message_prettify(string message, char? commentChar)
12561256

12571257
using (var buf = new GitBuf())
12581258
{
1259-
int res = NativeMethods.git_message_prettify(buf, message, false, (sbyte)comment);
1259+
int res = NativeMethods.git_message_prettify(buf, message, true, (sbyte)comment);
12601260
Ensure.Int32Result(res);
12611261

12621262
return LaxUtf8Marshaler.FromNative(buf.ptr) ?? string.Empty;

0 commit comments

Comments
 (0)