diff options
author | Sunny <me@darkowlzz.space> | 2017-12-04 19:10:16 +0530 |
---|---|---|
committer | Sunny <me@darkowlzz.space> | 2017-12-04 19:10:16 +0530 |
commit | e7b02be89f2d98fcfe900d71b3b7ecdca8441ed2 (patch) | |
tree | 447fe09072b98181e1721b9eae178cfbca86e139 /options.go | |
parent | 44c364fe3b7b8cdc0f9623afe870d6781a97ebb4 (diff) | |
download | go-git-e7b02be89f2d98fcfe900d71b3b7ecdca8441ed2.tar.gz |
git: worktree, add Clean() method for git clean
This change implement git clean with a `Dir` option. By default, clean
removes only the untracked files in the working directory. If `Dir`
option is set to true, untracked files under other directories are also
cleaned.
Diffstat (limited to 'options.go')
-rw-r--r-- | options.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -360,3 +360,8 @@ type ListOptions struct { // Auth credentials, if required, to use with the remote repository. Auth transport.AuthMethod } + +// CleanOptions describes how a clean should be performed. +type CleanOptions struct { + Dir bool +} |