当前位置: 首页>>代码示例>>C#>>正文


C# RevCommit类代码示例

本文整理汇总了C#中RevCommit的典型用法代码示例。如果您正苦于以下问题:C# RevCommit类的具体用法?C# RevCommit怎么用?C# RevCommit使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


RevCommit类属于命名空间,在下文中一共展示了RevCommit类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: TextFor

		private static string TextFor(RevCommit cmit)
		{
			byte[] raw = cmit.RawBuffer;
			int b = RawParseUtils.author(raw, 0);
			if (b < 0) return string.Empty;
			int e = RawParseUtils.nextLF(raw, b, (byte)'>');
			return Constants.CHARSET.GetString(raw, b, e);
		}
开发者ID:dev218,项目名称:GitSharp,代码行数:8,代码来源:AuthorRevFilter.cs

示例2: textFor

 public static RawCharSequence textFor(RevCommit cmit)
 {
     byte[] raw = cmit.getRawBuffer();
     int b = RawParseUtils.committer(raw, 0);
     if (b < 0)
         return RawCharSequence.EMPTY;
     int e = RawParseUtils.nextLF(raw, b, (byte)'>');
     return new RawCharSequence(raw, b, e);
 }
开发者ID:stephensong,项目名称:GitSharp,代码行数:9,代码来源:CommitterRevFilter.cs

示例3: TextFor

		private static string TextFor(RevCommit cmit)
		{
			byte[] raw = cmit.RawBuffer;
			int b = RawParseUtils.commitMessage(raw, 0);
			if (b < 0)
			{
				return string.Empty;
			}

			return Constants.CHARSET.GetString(raw, b, raw.Length);
		}
开发者ID:dev218,项目名称:GitSharp,代码行数:11,代码来源:MessageRevFilter.cs

示例4: text

 /**
  * Obtain the raw text to match against.
  *
  * @param cmit
  *            current commit being evaluated.
  * @return sequence for the commit's content that we need to match on.
  */
 internal abstract string text(RevCommit cmit);
开发者ID:ArildF,项目名称:GitSharp,代码行数:8,代码来源:PatternMatchRevFilter.cs

示例5: rewrite

        private RevCommit rewrite(RevCommit p)
        {
            for (; ; )
            {
                RevCommit[] pList = p.parents;
                if (pList.Length > 1)
                {
                    // This parent is a merge, so keep it.
                    //
                    return p;
                }

                if ((p.flags & RevWalk.UNINTERESTING) != 0)
                {
                    // Retain uninteresting parents. They show where the
                    // DAG was cut off because it wasn't interesting.
                    //
                    return p;
                }

                if ((p.flags & REWRITE) == 0)
                {
                    // This parent was not eligible for rewriting. We
                    // need to keep it in the DAG.
                    //
                    return p;
                }

                if (pList.Length == 0)
                {
                    // We can't go back any further, other than to
                    // just delete the parent entirely.
                    //
                    return null;
                }

                p = pList[0];
            }
        }
开发者ID:ArildF,项目名称:GitSharp,代码行数:39,代码来源:RewriteGenerator.cs

示例6: include

            public override bool include(RevWalk walker, RevCommit cmit)
            {
                // Since the walker sorts commits by commit time we can be
                // reasonably certain there is nothing remaining worth our
                // scanning if this commit is before the point in question.
                //
                if (cmit.CommitTime < _when)
                {
                    throw StopWalkException.INSTANCE;
                }

                return true;
            }
开发者ID:spraints,项目名称:GitSharp,代码行数:13,代码来源:CommitTimeRevFilter.cs

示例7: add

 public void add(RevCommit c)
 {
     commits[tailIndex++] = c;
 }
开发者ID:ArildF,项目名称:GitSharp,代码行数:4,代码来源:BlockRevQueue.cs

示例8: include

 public override bool include(RevWalk walker, RevCommit cmit)
 {
     return _compiledPattern.IsMatch(text(cmit));
 }
开发者ID:HackerBaloo,项目名称:GitSharp,代码行数:4,代码来源:PatternMatchRevFilter.cs

示例9: include

 public override bool include(RevWalk walker, RevCommit c)
 {
     return true;
 }
开发者ID:stephensong,项目名称:GitSharp,代码行数:4,代码来源:RevFilter.cs

示例10: include

			public override bool include(RevWalk walker, RevCommit cmit)
			{
				return false;
			}
开发者ID:dev218,项目名称:GitSharp,代码行数:4,代码来源:RevFilter.cs

示例11: text

 internal override string text(RevCommit cmit)
 {
     return textFor(cmit).ToString();
 }
开发者ID:stephensong,项目名称:GitSharp,代码行数:4,代码来源:CommitterRevFilter.cs

示例12: unpop

 		public void unpop(RevCommit c)
 		{
 			_commits[--HeadIndex] = c;
 		}
开发者ID:dev218,项目名称:GitSharp,代码行数:4,代码来源:BlockRevQueue.cs

示例13: add

 		public void add(RevCommit c)
 		{
 			_commits[TailIndex++] = c;
 		}
开发者ID:dev218,项目名称:GitSharp,代码行数:4,代码来源:BlockRevQueue.cs

示例14: include

			public override bool include(RevWalk walker, RevCommit cmit)
			{
				return cmit.hasAll(_flags);
			}
开发者ID:dev218,项目名称:GitSharp,代码行数:4,代码来源:RevFlagFilter.cs

示例15: include

 public override bool include(RevWalk walker, RevCommit c)
 {
     return c.hasAny(flags);
 }
开发者ID:ArildF,项目名称:GitSharp,代码行数:4,代码来源:RevFlagFilter.cs


注:本文中的RevCommit类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。