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
Show file Open project: jagregory/GitSharp Class Usage Examples

Public Properties

Property Type Description
REFSPEC_PUSH_ALL RefSpec
REFSPEC_TAGS RefSpec

Public Methods

Method 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

Protected Methods

Method Description
Transport ( Repository local, URIish uri ) : System

Private Methods

Method 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 method

public ApplyConfig ( RemoteConfig cfg ) : void
cfg RemoteConfig
return void

Dispose() public method

public Dispose ( ) : void
return void

Open() public static method

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

Open() public static method

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

Open() public static method

public static Open ( Repository local, string remote ) : Transport
local Repository
remote string
return Transport

Transport() protected method

protected Transport ( Repository local, URIish uri ) : System
local Repository
uri URIish
return System

close() public abstract method

public abstract close ( ) : void
return void

fetch() public method

public fetch ( ProgressMonitor monitor, List toFetch ) : GitSharp.Core.Transport.FetchResult
monitor ProgressMonitor
toFetch List
return GitSharp.Core.Transport.FetchResult

findRemoteRefUpdatesFor() public method

public findRemoteRefUpdatesFor ( List specs ) : ICollection
specs List
return ICollection

findRemoteRefUpdatesFor() public static method

public static findRemoteRefUpdatesFor ( Repository db, List specs, List fetchSpecs ) : ICollection
db Repository
specs List
fetchSpecs List
return ICollection

openAll() public static method

public static openAll ( Repository local, RemoteConfig cfg ) : List
local Repository
cfg RemoteConfig
return List

openAll() public static method

public static openAll ( Repository local, string remote ) : List
local Repository
remote string
return List

openFetch() public abstract method

public abstract openFetch ( ) : IFetchConnection
return IFetchConnection

openPush() public abstract method

public abstract openPush ( ) : IPushConnection
return IPushConnection

push() public method

public push ( ProgressMonitor monitor, ICollection toPush ) : PushResult
monitor ProgressMonitor
toPush ICollection
return PushResult

Property Details

REFSPEC_PUSH_ALL public static property

public static RefSpec,GitSharp.Core.Transport REFSPEC_PUSH_ALL
return RefSpec

REFSPEC_TAGS public static property

public static RefSpec,GitSharp.Core.Transport REFSPEC_TAGS
return RefSpec