You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Gets the number of commits in the longest single path between
23
+
/// the specified commit and the most distant ancestor (inclusive)
24
+
/// that set the version to the value at <paramref name="commit"/>.
25
+
/// </summary>
26
+
/// <param name="commit">The commit to measure the height of.</param>
27
+
/// <param name="repoRelativeProjectDirectory">The repo-relative project directory for which to calculate the version.</param>
28
+
/// <param name="baseVersion">Optional base version to calculate the height. If not specified, the base version will be calculated by scanning the repository.</param>
29
+
/// <returns>The height of the commit. Always a positive integer.</returns>
Copy file name to clipboardExpand all lines: src/NerdBank.GitVersioning/GitExtensions.cs
+2-89Lines changed: 2 additions & 89 deletions
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ public static class GitExtensions
49
49
/// <param name="repoRelativeProjectDirectory">The repo-relative project directory for which to calculate the version.</param>
50
50
/// <param name="baseVersion">Optional base version to calculate the height. If not specified, the base version will be calculated by scanning the repository.</param>
51
51
/// <returns>The height of the commit. Always a positive integer.</returns>
Requires.Argument(repoRelativeProjectDirectory==null||!Path.IsPathRooted(repoRelativeProjectDirectory),nameof(repoRelativeProjectDirectory),"Path should be relative to repo root.");
@@ -76,52 +76,6 @@ public static int GetVersionHeight(this Commit commit, string repoRelativeProjec
76
76
return0;
77
77
}
78
78
79
-
/// <summary>
80
-
/// Gets the number of commits in the longest single path between
81
-
/// HEAD in a repo and the most distant ancestor (inclusive)
82
-
/// that set the version to the value in the working copy
83
-
/// (or HEAD for bare repositories).
84
-
/// </summary>
85
-
/// <param name="repo">The repo with the working copy / HEAD to measure the height of.</param>
86
-
/// <param name="repoRelativeProjectDirectory">The repo-relative project directory for which to calculate the version.</param>
87
-
/// <returns>The height of the repo at HEAD. Always a positive integer.</returns>
Requires.Argument(repoRelativeProjectDirectory==null||!Path.IsPathRooted(repoRelativeProjectDirectory),nameof(repoRelativeProjectDirectory),"Path should be relative to repo root.");
@@ -273,47 +227,6 @@ public static Version GetIdAsVersion(this Commit commit, string repoRelativeProj
0 commit comments