From e7b02be89f2d98fcfe900d71b3b7ecdca8441ed2 Mon Sep 17 00:00:00 2001 From: Sunny Date: Mon, 4 Dec 2017 19:10:16 +0530 Subject: 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. --- options.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'options.go') diff --git a/options.go b/options.go index d2cec4b..e5745ea 100644 --- a/options.go +++ b/options.go @@ -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 +} -- cgit