diff options
author | Moran Cohen <moran@wiz.io> | 2024-01-11 17:30:44 +0200 |
---|---|---|
committer | Moran Cohen <moran@wiz.io> | 2024-01-17 15:10:40 +0200 |
commit | d5f1dd61fb79389218a9fe3b5574acf8409737b1 (patch) | |
tree | 5650e2ad0d26811d596a9e6140437ba3b24a2f19 /options.go | |
parent | a6e934f1f76996c7f92cb4fde708170c1eb5d032 (diff) | |
download | go-git-d5f1dd61fb79389218a9fe3b5574acf8409737b1.tar.gz |
git: Worktree.AddWithOptions, add skipStatus option. #993
Diffstat (limited to 'options.go')
-rw-r--r-- | options.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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. |