aboutsummaryrefslogtreecommitdiffstats
path: root/worktree.go
diff options
context:
space:
mode:
authorAlan D. Cabrera <adc@toolazydogs.com>2018-05-10 21:47:25 -0700
committerMáximo Cuadros <mcuadros@gmail.com>2018-05-11 06:47:25 +0200
commite63b032e91ce35e0ecd5f27d43be655625e8af36 (patch)
tree2270ae7d5e88e5443bfb486432bf04d1642170d6 /worktree.go
parent47417ae81f81e520b003fbe3166c5842d5acce91 (diff)
downloadgo-git-e63b032e91ce35e0ecd5f27d43be655625e8af36.tar.gz
Worktree: Provide ability to add excludes (#825)
Worktree: Provide ability to add excludes
Diffstat (limited to 'worktree.go')
-rw-r--r--worktree.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/worktree.go b/worktree.go
index d2cb29a..ddf6fff 100644
--- a/worktree.go
+++ b/worktree.go
@@ -13,6 +13,7 @@ import (
"gopkg.in/src-d/go-git.v4/config"
"gopkg.in/src-d/go-git.v4/plumbing"
"gopkg.in/src-d/go-git.v4/plumbing/filemode"
+ "gopkg.in/src-d/go-git.v4/plumbing/format/gitignore"
"gopkg.in/src-d/go-git.v4/plumbing/format/index"
"gopkg.in/src-d/go-git.v4/plumbing/object"
"gopkg.in/src-d/go-git.v4/plumbing/storer"
@@ -33,6 +34,8 @@ var (
type Worktree struct {
// Filesystem underlying filesystem.
Filesystem billy.Filesystem
+ // External excludes not found in the repository .gitignore
+ Excludes []gitignore.Pattern
r *Repository
}