C# Class LibGit2Sharp.ReferenceCollectionExtensions

Provides helper overloads to a ReferenceCollection.
Afficher le fichier Open project: nulltoken/libgit2sharp

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

Add() public static méthode

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.
Résultat System.Reference

Add() public static méthode

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.
Résultat System.Reference

ReachableFrom() public static méthode

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.
Résultat IEnumerable

ReachableFrom() public static méthode

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.
Résultat IEnumerable

Remove() public static méthode

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.
Résultat void

Rename() public static méthode

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.
Résultat System.Reference

UpdateTarget() public static méthode

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.
Résultat System.Reference

UpdateTarget() public static méthode

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
Résultat System.Reference

UpdateTarget() public static méthode

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.
Résultat System.Reference

UpdateTarget() public static méthode

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.
Résultat System.Reference