本文整理汇总了C#中GitIndex.GetName方法的典型用法代码示例。如果您正苦于以下问题:C# GitIndex.GetName方法的具体用法?C# GitIndex.GetName怎么用?C# GitIndex.GetName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GitIndex
的用法示例。
在下文中一共展示了GitIndex.GetName方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: VisitEntry
public override void VisitEntry(TreeEntry treeEntry, GitIndex.Entry indexEntry, FilePath
file)
{
if (treeEntry == null)
{
this._enclosing.indexOnlyEntriesVisited.AddItem(indexEntry.GetName());
}
else
{
if (indexEntry == null)
{
this._enclosing.treeOnlyEntriesVisited.AddItem(treeEntry.GetFullName());
}
else
{
this._enclosing.bothVisited.AddItem(indexEntry.GetName());
}
}
}
示例2: VisitEntry
/// <exception cref="System.IO.IOException"></exception>
public override void VisitEntry(TreeEntry m, GitIndex.Entry i, FilePath file)
{
if (m != null)
{
if (!file.IsFile())
{
this._enclosing.CheckConflictsWithFile(file);
}
}
else
{
if (file.Exists())
{
this._enclosing.removed.AddItem(i.GetName());
this._enclosing.conflicts.Remove(i.GetName());
}
}
}
示例3: ProcessEntry
/// <exception cref="System.IO.IOException"></exception>
internal virtual void ProcessEntry(TreeEntry h, TreeEntry m, GitIndex.Entry i)
{
ObjectId iId = (i == null ? null : i.GetObjectId());
ObjectId mId = (m == null ? null : m.GetId());
ObjectId hId = (h == null ? null : h.GetId());
string name = (i != null ? i.GetName() : (h != null ? h.GetFullName() : m.GetFullName
()));
if (i == null)
{
if (h == null)
{
updated.Put(name, mId);
}
else
{
if (m == null)
{
removed.AddItem(name);
}
else
{
updated.Put(name, mId);
}
}
}
else
{
if (h == null)
{
if (m == null || mId.Equals(iId))
{
if (HasParentBlob(merge, name))
{
if (i.IsModified(root, true))
{
conflicts.AddItem(name);
}
else
{
removed.AddItem(name);
}
}
}
else
{
conflicts.AddItem(name);
}
}
else
{
if (m == null)
{
if (hId.Equals(iId))
{
if (i.IsModified(root, true))
{
conflicts.AddItem(name);
}
else
{
removed.AddItem(name);
}
}
else
{
conflicts.AddItem(name);
}
}
else
{
if (!hId.Equals(mId) && !hId.Equals(iId) && !mId.Equals(iId))
{
conflicts.AddItem(name);
}
else
{
if (hId.Equals(iId) && !mId.Equals(iId))
{
if (i.IsModified(root, true))
{
conflicts.AddItem(name);
}
else
{
updated.Put(name, mId);
}
}
}
}
}
}
}
示例4: VisitEntry
/// <exception cref="System.IO.IOException"></exception>
private void VisitEntry(TreeEntry t1, TreeEntry t2, GitIndex.Entry i)
{
// assert t1 != null || t2 != null || i != null :
// org.eclipse.jgit.JGitText.get().needsAtLeastOneEntry;
// assert root != null : JGitText.get().needsWorkdir;
if (t1 != null && t1.GetParent() == null)
{
t1 = null;
}
if (t2 != null && t2.GetParent() == null)
{
t2 = null;
}
FilePath f = null;
if (i != null)
{
f = new FilePath(root, i.GetName());
}
else
{
if (t1 != null)
{
f = new FilePath(root, t1.GetFullName());
}
else
{
if (t2 != null)
{
f = new FilePath(root, t2.GetFullName());
}
}
}
if (t1 != null || t2 != null || i != null)
{
if (threeTrees)
{
visitor.VisitEntry(t1, t2, i, f);
}
else
{
visitor.VisitEntry(t1, i, f);
}
}
}