aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorjk2k <4025839+jk2K@users.noreply.github.com>2020-06-07 20:06:33 +0800
committerjk2k <4025839+jk2K@users.noreply.github.com>2020-06-10 20:26:51 +0800
commite4a55327a2f1bd53fa173ce3e536eef530bfc272 (patch)
treeb9f9f33604905b135b79667a14f36d5d3c90912e /options.go
parent96a108e35075afd13e81df9ba2bf96c8c6125283 (diff)
downloadgo-git-e4a55327a2f1bd53fa173ce3e536eef530bfc272.tar.gz
feat: add file with using .gitignore, fixed src-d/go-git#1219
Diffstat (limited to 'options.go')
-rw-r--r--options.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/options.go b/options.go
index fd347d3..d222267 100644
--- a/options.go
+++ b/options.go
@@ -373,6 +373,12 @@ var (
ErrMissingAuthor = errors.New("author field is required")
)
+// AddOptions describes how a add operation should be performed
+type AddOptions struct {
+ All bool
+ Path string
+}
+
// CommitOptions describes how a commit operation should be performed.
type CommitOptions struct {
// All automatically stage files that have been modified and deleted, but