From e63b032e91ce35e0ecd5f27d43be655625e8af36 Mon Sep 17 00:00:00 2001 From: "Alan D. Cabrera" Date: Thu, 10 May 2018 21:47:25 -0700 Subject: Worktree: Provide ability to add excludes (#825) Worktree: Provide ability to add excludes --- worktree.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'worktree.go') 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 } -- cgit