From d5f1dd61fb79389218a9fe3b5574acf8409737b1 Mon Sep 17 00:00:00 2001 From: Moran Cohen Date: Thu, 11 Jan 2024 17:30:44 +0200 Subject: git: Worktree.AddWithOptions, add skipStatus option. #993 --- options.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'options.go') diff --git a/options.go b/options.go index e748b91..fd54aa8 100644 --- a/options.go +++ b/options.go @@ -474,6 +474,11 @@ type AddOptions struct { // Glob adds all paths, matching pattern, to the index. If pattern matches a // directory path, all directory contents are added to the index recursively. Glob string + // SkipStatus adds the path with no status check. This option is relevant only + // when the `Path` option is specified and does not apply when the `All` option is used. + // Notice that when passing an ignored path it will be added anyway. + // When true it can speed up adding files to the worktree in very large repositories. + SkipStatus bool } // Validate validates the fields and sets the default values. -- cgit