Ejemplo n.º 1
0
 private static DirCacheEntry ToEntry(int stage, TreeWalk.TreeWalk tw)
 {
     var e = new DirCacheEntry(tw.getRawPath(), stage);
     var iterator = tw.getTree<AbstractTreeIterator>(0, typeof(AbstractTreeIterator));
     e.setFileMode(tw.getFileMode(0));
     e.setObjectIdFromRaw(iterator.idBuffer(), iterator.idOffset());
     return e;
 }
Ejemplo n.º 2
0
        private DirCacheEntry toEntry(int stage, TreeWalk.TreeWalk tw)
        {
            DirCacheEntry e = new DirCacheEntry(tw.getRawPath(), stage);
            AbstractTreeIterator i;

            i = tw.getTree<AbstractTreeIterator>(0, typeof(AbstractTreeIterator));
            e.setFileMode(tw.getFileMode(0));
            e.setObjectIdFromRaw(i.idBuffer(), i.idOffset());
            return e;
        }
Ejemplo n.º 3
0
		    private void Add(int tree, int stage)
            {
			    AbstractTreeIterator i = GetTree(tree);
			    if (i != null) 
                {
				    if (FileMode.Tree.Equals(_tw.getRawMode(tree))) 
                    {
					    _builder.addTree(_tw.getRawPath(), stage, Db, _tw
							    .getObjectId(tree));
				    } 
                    else 
                    {
                        DirCacheEntry e = new DirCacheEntry(_tw.getRawPath(), stage);
					    e.setObjectIdFromRaw(i.idBuffer(), i.idOffset());
					    e.setFileMode(_tw.getFileMode(tree));
					    _builder.add(e);
				    }
			    }
		    }