Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit fdd711d

Browse files
StanleyGoldmanshana
authored andcommitted
Making GitLock serializable
1 parent 812bbff commit fdd711d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/GitHub.Api/Git/GitLock.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ namespace GitHub.Unity
55
[Serializable]
66
public struct GitLock
77
{
8-
public static GitLock Default = new GitLock(null, null, null, -1);
8+
public static GitLock Default = new GitLock { ID = -1 };
99

10-
public readonly int ID;
11-
public readonly string Path;
12-
public readonly string FullPath;
13-
public readonly string User;
10+
public int ID;
11+
public string Path;
12+
public string FullPath;
13+
public string User;
1414

1515
public GitLock(string path, string fullPath, string user, int id)
1616
{

0 commit comments

Comments
 (0)