Git

Summary

Cake AddIn which copies files based on Git log.
#addin Cake.GitPackager

General

Add

GitAdd(ICakeContext, DirectoryPath, FilePath[]) Add file to index.
Addin from Cake.Git.dll
GitAddAll(ICakeContext, DirectoryPath) Add all file changes to index.
Addin from Cake.Git.dll

AllTags

GitTags(ICakeContext, DirectoryPath) Gets a list of all tags from the repo
Addin from Cake.Git.dll

Branch

GitBranchCurrent(ICakeContext, DirectoryPath) Gets the current branch.
Addin from Cake.Git.dll

Checkout

GitCheckout(ICakeContext, DirectoryPath, FilePath[]) Checkout file.
Addin from Cake.Git.dll
GitCheckout(ICakeContext, DirectoryPath, string, FilePath[]) Checkout file(s) using supplied commit or branch spec.
Addin from Cake.Git.dll

Clone

GitClone(ICakeContext, string, DirectoryPath) Clone unauthenticated using default options.
Addin from Cake.Git.dll
GitClone(ICakeContext, string, DirectoryPath, GitCloneSettings) Clone unauthenticated using default options.
Addin from Cake.Git.dll
GitClone(ICakeContext, string, DirectoryPath, string, string) Clone authenticated using default options.
Addin from Cake.Git.dll
GitClone(ICakeContext, string, DirectoryPath, string, string, GitCloneSettings) Clone authenticated using default options.
Addin from Cake.Git.dll

Commit

Describe

Diff

GitDiff(ICakeContext, DirectoryPath) Get changed files from inital commit id up to current.
Addin from Cake.Git.dll
GitDiff(ICakeContext, DirectoryPath, string) Get changed files from certain commit id up to current.
Addin from Cake.Git.dll
GitDiff(ICakeContext, DirectoryPath, string, string) Get changed files from certain commit id up to current.
Addin from Cake.Git.dll

Init

GitInit(ICakeContext, DirectoryPath) Init using default options.
Addin from Cake.Git.dll

Log

GitLog(ICakeContext, DirectoryPath, int) Get commit log.
Addin from Cake.Git.dll
GitLog(ICakeContext, DirectoryPath, string) Get commit from certain commit id up to current.
Addin from Cake.Git.dll
GitLogLookup(ICakeContext, DirectoryPath, string) Get specific commit.
Addin from Cake.Git.dll
GitLogTip(ICakeContext, DirectoryPath) Get last commit
Addin from Cake.Git.dll

Pull

GitPull(ICakeContext, DirectoryPath, string, string) Pull unauthenticated using default options.
Addin from Cake.Git.dll
GitPull(ICakeContext, DirectoryPath, string, string, string, string, string) Pull authenticating using default options.
Addin from Cake.Git.dll

Push

GitPush(ICakeContext, DirectoryPath) Push all branches unauthenticated.
Addin from Cake.Git.dll
GitPush(ICakeContext, DirectoryPath, string, string) Push all branches authenticated.
Addin from Cake.Git.dll
GitPush(ICakeContext, DirectoryPath, string, string, string) Push specific branch authenticated.
Addin from Cake.Git.dll
GitPushRef(ICakeContext, DirectoryPath, string, string) Push a tag to a remote unauthenticated.
Addin from Cake.Git.dll
GitPushRef(ICakeContext, DirectoryPath, string, string, string, string) Push a tag to a remote authenticated.
Addin from Cake.Git.dll

Remove

Repository

GitFindRootFromPath(ICakeContext, DirectoryPath) Finding git root path from subtree.
Addin from Cake.Git.dll
GitHasStagedChanges(ICakeContext, DirectoryPath) Checks if a repository contains staged changes.
Addin from Cake.Git.dll
GitHasUncommitedChanges(ICakeContext, DirectoryPath) Checks if a repository contains uncommited changes.
Addin from Cake.Git.dll
GitIsValidRepository(ICakeContext, DirectoryPath) Checks if a specific directory is a valid Git repository.
Addin from Cake.Git.dll

Reset

GitReset(ICakeContext, DirectoryPath, GitResetMode) Resets the current branch head (HEAD) optionally modifying index and working tree to match.
Addin from Cake.Git.dll
GitReset(ICakeContext, DirectoryPath, GitResetMode, string) Sets the current branch head (HEAD) to a specified commit, optionally modifying index and working tree to match.
Addin from Cake.Git.dll

Tag

GitTag(ICakeContext, DirectoryPath, string) Applys tagName to repository.
Addin from Cake.Git.dll
GitTag(ICakeContext, DirectoryPath, string, string) Applys tagName to repository.
Addin from Cake.Git.dll

Unstage

GitUnstage(ICakeContext, DirectoryPath, FilePath[]) Removes from the staging area all the modifications of a collection of file since the latest commit (addition, updation or removal).
Addin from Cake.Git.dll
GitUnstageAll(ICakeContext, DirectoryPath) Removes from the staging area all the modifications all files the latest commit (addition, updation or removal).
Addin from Cake.Git.dll