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

Commit b7ed8f8

Browse files
committed
Merge fixes/git-locks-serializable into features/using-cache-manager
2 parents 07ae865 + fdd711d commit b7ed8f8

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/GitHub.Api/Git/GitLock.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,21 @@ namespace GitHub.Unity
55
[Serializable]
66
public struct GitLock
77
{
8-
public static GitLock Default = new GitLock {
9-
ID = -1
10-
};
8+
public static GitLock Default = new GitLock { ID = -1 };
119

1210
public int ID;
1311
public string Path;
1412
public string FullPath;
1513
public string User;
1614

15+
public GitLock(string path, string fullPath, string user, int id)
16+
{
17+
Path = path;
18+
FullPath = fullPath;
19+
User = user;
20+
ID = id;
21+
}
22+
1723
public override bool Equals(object other)
1824
{
1925
if (other is GitLock)

0 commit comments

Comments
 (0)