da5a6201a5
Compiled for TFS Server 2008, 2010, 2012 and tested with TFS Server 2010, 2012 !! This command need that the clone of the TFS repository was made from the trunk (and not on the whole repository) and with history (not a quick-clone). Usage for TFS 2010 and 2012 : ------------------------------- * to clone one branch git tfs init-branch $/Repository/path <git-branch-name-wished> ex : git tfs init-branch $/Repository/ProjectBranch git tfs init-branch $/Repository/ProjectBranch myNewBranch * to clone all branches git tfs init-branch --all Usage for TFS 2008 : --------------------- * to clone one branch git tfs init-branch--parent-branch=$/Repository/ProjectParentBranch $/Repository/path <git-branch-name-wished> ex : git tfs init-branch --parent-branch=$/Repository/ProjectParentBranch $/Repository/ProjectBranch git tfs init-branch --parent-branch=$/Repository/ProjectParentBranch $/Repository/ProjectBranch myNewBranch
31 lines
1.5 KiB
C#
31 lines
1.5 KiB
C#
using System.Collections.Generic;
|
|
using System.IO;
|
|
using Sep.Git.Tfs.Commands;
|
|
|
|
namespace Sep.Git.Tfs.Core
|
|
{
|
|
public interface IGitRepository : IGitHelpers
|
|
{
|
|
string GitDir { get; set; }
|
|
IEnumerable<IGitTfsRemote> ReadAllTfsRemotes();
|
|
IGitTfsRemote ReadTfsRemote(string remoteId);
|
|
void /*or IGitTfsRemote*/ CreateTfsRemote(string remoteId, string tfsUrl, string tfsRepositoryPath, RemoteOptions remoteOptions);
|
|
void /*or IGitTfsRemote*/ CreateTfsRemote(string remoteId, TfsChangesetInfo tfsHead, RemoteOptions remoteOptions);
|
|
bool HasRemote(string remoteId);
|
|
void MoveTfsRefForwardIfNeeded(IGitTfsRemote remote);
|
|
IEnumerable<TfsChangesetInfo> GetLastParentTfsCommits(string head);
|
|
IEnumerable<TfsChangesetInfo> GetLastParentTfsCommits(string head, bool includeStubRemotes);
|
|
IDictionary<string, GitObject> GetObjects(string commit);
|
|
string HashAndInsertObject(string filename);
|
|
IEnumerable<IGitChangedFile> GetChangedFiles(string from, string to);
|
|
bool WorkingCopyHasUnstagedOrUncommitedChanges { get; }
|
|
void CopyBlob(string sha, string outputFile);
|
|
GitCommit GetCommit(string commitish);
|
|
Dictionary<string, GitObject> GetObjects();
|
|
string GetCommitMessage(string head, string parentCommitish);
|
|
string AssertValidBranchName(string gitBranchName);
|
|
bool CreateBranch(string gitBranchName, string target);
|
|
string FindCommitHashByCommitMessage(string patternToFind);
|
|
}
|
|
}
|