Skip to content

Commit d367101

Browse files
committed
code anal
1 parent 998b3f5 commit d367101

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

GitVersionCore.Tests/Fixtures/RepositoryFixtureBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ protected RepositoryFixtureBase(Func<string, IRepository> repoBuilder, Config co
1919
IsForTrackedBranchOnly = true;
2020
}
2121

22-
public bool IsForTrackedBranchOnly { get; set; }
22+
public bool IsForTrackedBranchOnly { private get; set; }
2323

2424
public SemanticVersion ExecuteGitVersion(IRepository repository = null)
2525
{

GitVersionCore/GitVersionContext.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
namespace GitVersion
22
{
3-
using System;
43
using System.Collections.Generic;
54
using System.Linq;
6-
using System.Threading;
75
using LibGit2Sharp;
86

97
/// <summary>
@@ -43,7 +41,7 @@ public GitVersionContext(IRepository repository, Branch currentBranch, Config co
4341
public Branch CurrentBranch { get; private set; }
4442
public Commit CurrentCommit { get; private set; }
4543

46-
public bool IsContextForTrackedBranchesOnly = true;
44+
readonly bool IsContextForTrackedBranchesOnly = true;
4745

4846

4947
IEnumerable<Branch> GetBranchesContainingCommit(string commitSha)

0 commit comments

Comments
 (0)