aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorPaulo Gomes <pjbgf@linux.com>2024-06-28 21:20:36 +0000
committerGitHub <noreply@github.com>2024-06-28 21:20:36 +0000
commitcc6b98e366436b69a0e91aa0698972d583080900 (patch)
treef0af1e3bff6a7a69f009faac0bef2915ebcaa385 /options.go
parentc817be6af4dde11b0c0c978dc2ecb77a2065c8b1 (diff)
parent86d3f41c8eb5939f384d30667f6097d716c1e916 (diff)
downloadgo-git-cc6b98e366436b69a0e91aa0698972d583080900.tar.gz
Merge pull request #995 from msuozzo/git-clean
Add option approximating `git clean -x` flag.
Diffstat (limited to 'options.go')
-rw-r--r--options.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/options.go b/options.go
index d7776da..622bd47 100644
--- a/options.go
+++ b/options.go
@@ -721,7 +721,10 @@ const (
// CleanOptions describes how a clean should be performed.
type CleanOptions struct {
+ // Dir recurses into nested directories.
Dir bool
+ // All removes all changes, even those excluded by gitignore.
+ All bool
}
// GrepOptions describes how a grep should be performed.