Skip to content

Commit 6ad3f6e

Browse files
authored
Merge pull request #23458 from JuliaLang/ksh/docstatus
Doc status opts and fix a typo
2 parents f6e0fca + 7754b61 commit 6ad3f6e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

base/libgit2/types.jl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ The fields represent:
128128
* `disable_filters`: if nonzero, do not apply filters like CLRF (to convert file newlines between UNIX and DOS).
129129
* `dir_mode`: read/write/access mode for any directories involved in the checkout. Default is `0755`.
130130
* `file_mode`: read/write/access mode for any files involved in the checkout.
131-
Default is `0755` or `0644`, depeding on the blob.
131+
Default is `0755` or `0644`, depending on the blob.
132132
* `file_open_flags`: bitflags used to open any files during the checkout.
133133
* `notify_flags`: Flags for what sort of conflicts the user should be notified about.
134134
* `notify_cb`: An optional callback function to notify the user if a checkout conflict occurs.
@@ -665,6 +665,14 @@ end
665665
666666
Options to control how `git_status_foreach_ext()` will issue callbacks.
667667
Matches the [`git_status_opt_t`](https://libgit2.github.com/libgit2/#HEAD/type/git_status_opt_t) struct.
668+
669+
The fields represent:
670+
* `version`: version of the struct in use, in case this changes later. For now, always `1`.
671+
* `show`: a flag for which files to examine and in which order.
672+
The default is `Consts.STATUS_SHOW_INDEX_AND_WORKDIR`.
673+
* `flags`: flags for controlling any callbacks used in a status call.
674+
* `pathspec`: an array of paths to use for path-matching. The behavior of the path-matching
675+
will vary depending on the values of `show` and `flags`.
668676
"""
669677
@kwdef struct StatusOptions
670678
version::Cuint = 1

0 commit comments

Comments
 (0)