C# Class GitSharp.Core.Transport.Transport

Connects two Git repositories together and copies objects between them. A transport can be used for either fetching (copying objects into the caller's repository from the remote repository) or pushing (copying objects into the remote repository from the caller's repository). Each transport implementation is responsible for the details associated with establishing the network connection(s) necessary for the copy, as well as actually shuffling data back and forth. Transport instances and the connections they Create are not thread-safe. Callers must ensure a transport is accessed by only one thread at a time.
Inheritance: IDisposable
Afficher le fichier Open project: jagregory/GitSharp Class Usage Examples

Méthodes publiques

Свойство Type Description
REFSPEC_PUSH_ALL RefSpec
REFSPEC_TAGS RefSpec

Méthodes publiques

Méthode Description
ApplyConfig ( RemoteConfig cfg ) : void
Dispose ( ) : void
Open ( Repository local, RemoteConfig cfg ) : Transport

Support for Transport over HTTP and Git (Anon+SSH)

Open ( Repository local, URIish remote ) : Transport

Support for Transport over HTTP and Git (Anon+SSH)

Open ( Repository local, string remote ) : Transport
close ( ) : void
fetch ( ProgressMonitor monitor, List toFetch ) : GitSharp.Core.Transport.FetchResult
findRemoteRefUpdatesFor ( List specs ) : ICollection
findRemoteRefUpdatesFor ( Repository db, List specs, List fetchSpecs ) : ICollection
openAll ( Repository local, RemoteConfig cfg ) : List
openAll ( Repository local, string remote ) : List
openFetch ( ) : IFetchConnection
openPush ( ) : IPushConnection
push ( ProgressMonitor monitor, ICollection toPush ) : PushResult

Méthodes protégées

Méthode Description
Transport ( Repository local, URIish uri ) : System

Private Methods

Méthode Description
ExpandPushWildcardsFor ( Repository db, IEnumerable specs ) : ICollection
FindTrackingRefName ( string remoteName, IEnumerable fetchSpecs ) : string
doesNotExist ( RemoteConfig cfg ) : bool
getURIs ( RemoteConfig cfg, System.Operation op ) : List

Method Details

ApplyConfig() public méthode

public ApplyConfig ( RemoteConfig cfg ) : void
cfg RemoteConfig
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

Open() public static méthode

Support for Transport over HTTP and Git (Anon+SSH)
public static Open ( Repository local, RemoteConfig cfg ) : Transport
local Repository
cfg RemoteConfig
Résultat Transport

Open() public static méthode

Support for Transport over HTTP and Git (Anon+SSH)
public static Open ( Repository local, URIish remote ) : Transport
local Repository
remote URIish
Résultat Transport

Open() public static méthode

public static Open ( Repository local, string remote ) : Transport
local Repository
remote string
Résultat Transport

Transport() protected méthode

protected Transport ( Repository local, URIish uri ) : System
local Repository
uri URIish
Résultat System

close() public abstract méthode

public abstract close ( ) : void
Résultat void

fetch() public méthode

public fetch ( ProgressMonitor monitor, List toFetch ) : GitSharp.Core.Transport.FetchResult
monitor ProgressMonitor
toFetch List
Résultat GitSharp.Core.Transport.FetchResult

findRemoteRefUpdatesFor() public méthode

public findRemoteRefUpdatesFor ( List specs ) : ICollection
specs List
Résultat ICollection

findRemoteRefUpdatesFor() public static méthode

public static findRemoteRefUpdatesFor ( Repository db, List specs, List fetchSpecs ) : ICollection
db Repository
specs List
fetchSpecs List
Résultat ICollection

openAll() public static méthode

public static openAll ( Repository local, RemoteConfig cfg ) : List
local Repository
cfg RemoteConfig
Résultat List

openAll() public static méthode

public static openAll ( Repository local, string remote ) : List
local Repository
remote string
Résultat List

openFetch() public abstract méthode

public abstract openFetch ( ) : IFetchConnection
Résultat IFetchConnection

openPush() public abstract méthode

public abstract openPush ( ) : IPushConnection
Résultat IPushConnection

push() public méthode

public push ( ProgressMonitor monitor, ICollection toPush ) : PushResult
monitor ProgressMonitor
toPush ICollection
Résultat PushResult

Property Details

REFSPEC_PUSH_ALL public_oe static_oe property

public static RefSpec,GitSharp.Core.Transport REFSPEC_PUSH_ALL
Résultat RefSpec

REFSPEC_TAGS public_oe static_oe property

public static RefSpec,GitSharp.Core.Transport REFSPEC_TAGS
Résultat RefSpec