C# 클래스 LibGit2Sharp.ReferenceCollectionExtensions

Provides helper overloads to a ReferenceCollection.
파일 보기 프로젝트 열기: nulltoken/libgit2sharp

공개 메소드들

메소드 설명
Add ( this refsColl, string name, string canonicalRefNameOrObjectish, Signature signature, string logMessage, bool allowOverwrite = false ) : System.Reference

Creates a direct or symbolic reference with the specified name and target

Add ( this refsColl, string name, string canonicalRefNameOrObjectish, bool allowOverwrite = false ) : System.Reference

Creates a direct or symbolic reference with the specified name and target

ReachableFrom ( this refsColl, IEnumerable targets ) : IEnumerable

Find the References that can reach at least one Commit in the specified targets.

ReachableFrom ( this refsColl, IEnumerable refSubset, IEnumerable targets ) : IEnumerable

Find the References among refSubset that can reach at least one Commit in the specified targets.

Remove ( this refsColl, string name ) : void

Delete a reference with the specified name

Rename ( this refsColl, string currentName, string newName, Signature signature = null, string logMessage = null, bool allowOverwrite = false ) : System.Reference

Rename an existing reference with a new name

UpdateTarget ( this refsColl, System.Reference directRef, string objectish ) : System.Reference

Updates the target of a direct reference

UpdateTarget ( this refsColl, System.Reference directRef, string objectish, Signature signature, string logMessage ) : System.Reference

Updates the target of a direct reference.

UpdateTarget ( this refsColl, string name, string canonicalRefNameOrObjectish ) : System.Reference

Updates the target of a reference

UpdateTarget ( this refsColl, string name, string canonicalRefNameOrObjectish, Signature signature, string logMessage ) : System.Reference

Updates the target of a reference

비공개 메소드들

메소드 설명
Move ( this refsColl, string currentName, string newName, Signature signature = null, string logMessage = null, bool allowOverwrite = false ) : System.Reference
TryResolveReference ( System.Reference &reference, ReferenceCollection refsColl, string canonicalName ) : RefState

메소드 상세

Add() 공개 정적인 메소드

Creates a direct or symbolic reference with the specified name and target
public static Add ( this refsColl, string name, string canonicalRefNameOrObjectish, Signature signature, string logMessage, bool allowOverwrite = false ) : System.Reference
refsColl this The being worked with.
name string The name of the reference to create.
canonicalRefNameOrObjectish string The target which can be either the canonical name of a reference or a revparse spec.
signature Signature The identity used for updating the reflog
logMessage string The optional message to log in the when adding the
allowOverwrite bool True to allow silent overwriting a potentially existing reference, false otherwise.
리턴 System.Reference

Add() 공개 정적인 메소드

Creates a direct or symbolic reference with the specified name and target
public static Add ( this refsColl, string name, string canonicalRefNameOrObjectish, bool allowOverwrite = false ) : System.Reference
refsColl this The being worked with.
name string The name of the reference to create.
canonicalRefNameOrObjectish string The target which can be either the canonical name of a reference or a revparse spec.
allowOverwrite bool True to allow silent overwriting a potentially existing reference, false otherwise.
리턴 System.Reference

ReachableFrom() 공개 정적인 메소드

Find the References that can reach at least one Commit in the specified targets.
public static ReachableFrom ( this refsColl, IEnumerable targets ) : IEnumerable
refsColl this The being worked with.
targets IEnumerable The set of s that are interesting.
리턴 IEnumerable

ReachableFrom() 공개 정적인 메소드

Find the References among refSubset that can reach at least one Commit in the specified targets.
public static ReachableFrom ( this refsColl, IEnumerable refSubset, IEnumerable targets ) : IEnumerable
refsColl this The being worked with.
refSubset IEnumerable The set of s to examine.
targets IEnumerable The set of s that are interesting.
리턴 IEnumerable

Remove() 공개 정적인 메소드

Delete a reference with the specified name
public static Remove ( this refsColl, string name ) : void
refsColl this The being worked with.
name string The canonical name of the reference to delete.
리턴 void

Rename() 공개 정적인 메소드

Rename an existing reference with a new name
public static Rename ( this refsColl, string currentName, string newName, Signature signature = null, string logMessage = null, bool allowOverwrite = false ) : System.Reference
refsColl this The being worked with.
currentName string The canonical name of the reference to rename.
newName string The new canonical name.
signature Signature The identity used for updating the reflog
logMessage string The optional message to log in the
allowOverwrite bool True to allow silent overwriting a potentially existing reference, false otherwise.
리턴 System.Reference

UpdateTarget() 공개 정적인 메소드

Updates the target of a direct reference
public static UpdateTarget ( this refsColl, System.Reference directRef, string objectish ) : System.Reference
refsColl this The being worked with.
directRef System.Reference The direct reference which target should be updated.
objectish string The revparse spec of the target.
리턴 System.Reference

UpdateTarget() 공개 정적인 메소드

Updates the target of a direct reference.
public static UpdateTarget ( this refsColl, System.Reference directRef, string objectish, Signature signature, string logMessage ) : System.Reference
refsColl this The being worked with.
directRef System.Reference The direct reference which target should be updated.
objectish string The revparse spec of the target.
signature Signature The identity used for updating the reflog
logMessage string The optional message to log in the
리턴 System.Reference

UpdateTarget() 공개 정적인 메소드

Updates the target of a reference
public static UpdateTarget ( this refsColl, string name, string canonicalRefNameOrObjectish ) : System.Reference
refsColl this The being worked with.
name string The canonical name of the reference.
canonicalRefNameOrObjectish string The target which can be either the canonical name of a reference or a revparse spec.
리턴 System.Reference

UpdateTarget() 공개 정적인 메소드

Updates the target of a reference
public static UpdateTarget ( this refsColl, string name, string canonicalRefNameOrObjectish, Signature signature, string logMessage ) : System.Reference
refsColl this The being worked with.
name string The canonical name of the reference.
canonicalRefNameOrObjectish string The target which can be either the canonical name of a reference or a revparse spec.
signature Signature The identity used for updating the reflog
logMessage string The optional message to log in the of the reference.
리턴 System.Reference