예제 #1
0
 private string getFallbackInfo(PositionParameters position)
 {
     return("<b>" + (position.OldPath?.ToString() ?? "N/A") + "</b>"
            + " (line " + (position.OldLine?.ToString() ?? "N/A") + ") <i>vs</i> "
            + "<b>" + (position.NewPath?.ToString() ?? "N/A") + "</b>"
            + " (line " + (position.NewLine?.ToString() ?? "N/A") + ")");
 }
예제 #2
0
 /// <summary>
 /// Compares GitLabSharp.Position object which is received from GitLab
 /// to GitLabSharp.PositionParameters whichi is sent to GitLab for equality
 /// </summary>
 /// <returns>true if objects point to the same position</returns>
 private bool arePositionsEqual(Position pos, PositionParameters posParams)
 {
     return(pos.Base_SHA == posParams.BaseSHA &&
            pos.Head_SHA == posParams.HeadSHA &&
            pos.Start_SHA == posParams.StartSHA &&
            pos.Old_Line == posParams.OldLine &&
            pos.Old_Path == posParams.OldPath &&
            pos.New_Line == posParams.NewLine &&
            pos.New_Path == posParams.NewPath);
 }