예제 #1
0
 internal virtual NGit.Blame.Region DeepCopy()
 {
     NGit.Blame.Region head = new NGit.Blame.Region(resultStart, sourceStart, length);
     NGit.Blame.Region tail = head;
     for (NGit.Blame.Region n = next; n != null; n = n.next)
     {
         NGit.Blame.Region q = new NGit.Blame.Region(n.resultStart, n.sourceStart, n.length
                                                     );
         tail.next = q;
         tail      = q;
     }
     return(head);
 }
예제 #2
0
        public override string ToString()
        {
            StringBuilder buf = new StringBuilder();

            NGit.Blame.Region r = this;
            do
            {
                if (r != this)
                {
                    buf.Append(',');
                }
                buf.Append(r.resultStart);
                buf.Append('-');
                buf.Append(r.resultStart + r.length);
                r = r.next;
            }while (r != null);
            return(buf.ToString());
        }
예제 #3
0
파일: Region.cs 프로젝트: LunarLanding/ngit
		internal virtual NGit.Blame.Region DeepCopy()
		{
			NGit.Blame.Region head = new NGit.Blame.Region(resultStart, sourceStart, length);
			NGit.Blame.Region tail = head;
			for (NGit.Blame.Region n = next; n != null; n = n.next)
			{
				NGit.Blame.Region q = new NGit.Blame.Region(n.resultStart, n.sourceStart, n.length
					);
				tail.next = q;
				tail = q;
			}
			return head;
		}