8000 Rename CommitFilter.FirstParent to FirstParentOnly · GiTechLab/libgit2sharp@d7879b0 · GitHub
[go: up one dir, main page]

Skip to content

Commit d7879b0

Browse files
committed
Rename CommitFilter.FirstParent to FirstParentOnly
1 parent 01d105c commit d7879b0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

LibGit2Sharp.Tests/CommitFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public void CanEnumerateCommitsWithReverseTopoSorting()
180180
public void CanSimplifyByFirstParent()
181181
{
182182
AssertEnumerationOfCommits(
183-
repo => new CommitFilter { Since = repo.Head, FirstParent = true },
183+
repo => new CommitFilter { Since = repo.Head, FirstParentOnly = true },
184184
new[]
185185
{
186186
"4c062a6", "be3563a", "9fd738e",

LibGit2Sharp/CommitFilter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public CommitFilter()
1616
{
1717
SortBy = CommitSortStrategies.Time;
1818
Since = "HEAD";
19-
FirstParent = false;
19+
FirstParentOnly = false;
2020
}
2121

2222
/// <summary>
@@ -61,7 +61,7 @@ internal IList<object> UntilList
6161
/// <summary>
6262
/// Whether to limit the walk to each commit's first parent, instead of all of them
6363
/// </summary>
64-
public bool FirstParent { get; set; }
64+
public bool FirstParentOnly { get; set; }
6565

6666
private static IList<object> ToList(object obj)
6767
{

LibGit2Sharp/CommitLog.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public CommitEnumerator(Repository repo, CommitFilter filter)
154154
Sort(filter.SortBy);
155155
Push(filter.SinceList);
156156
Hide(filter.UntilList);
157-
FirstParent(filter.FirstParent);
157+
FirstParentOnly(filter.FirstParentOnly);
158158
}
159159

160160
#region IEnumerator<Commit> Members
@@ -233,7 +233,7 @@ private void Sort(CommitSortStrategies options)
233233
Proxy.git_revwalk_sorting(handle, options);
234234
}
235235

236-
private void FirstParent(bool firstParent)
236+
private void FirstParentOnly(bool firstParent)
237237
{
238238
if (firstParent)
239239
{

0 commit comments

Comments
 (0)
0