aboutsummaryrefslogtreecommitdiffstats
path: root/options.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2020-06-14 01:22:13 +0200
committerGitHub <noreply@github.com>2020-06-14 01:22:13 +0200
commit390968ce6bcdabc67ffad829b3c84b5da3f42b2f (patch)
treeb9f9f33604905b135b79667a14f36d5d3c90912e /options.go
parent96a108e35075afd13e81df9ba2bf96c8c6125283 (diff)
parente4a55327a2f1bd53fa173ce3e536eef530bfc272 (diff)
downloadgo-git-390968ce6bcdabc67ffad829b3c84b5da3f42b2f.tar.gz
Merge pull request #86 from jk2K/master
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