From e4a55327a2f1bd53fa173ce3e536eef530bfc272 Mon Sep 17 00:00:00 2001 From: jk2k <4025839+jk2K@users.noreply.github.com> Date: Sun, 7 Jun 2020 20:06:33 +0800 Subject: feat: add file with using .gitignore, fixed src-d/go-git#1219 --- options.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'options.go') 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 -- cgit