Skip to content

Commit 7754b61

Browse files
committed
Doc status opts and fix a typo
1 parent 9b3b2ff commit 7754b61

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.
@@ -651,6 +651,14 @@ end
651651
652652
Options to control how `git_status_foreach_ext()` will issue callbacks.
653653
Matches the [`git_status_opt_t`](https://libgit2.github.com/libgit2/#HEAD/type/git_status_opt_t) struct.
654+
655+
The fields represent:
656+
* `version`: version of the struct in use, in case this changes later. For now, always `1`.
657+
* `show`: a flag for which files to examine and in which order.
658+
The default is `Consts.STATUS_SHOW_INDEX_AND_WORKDIR`.
659+
* `flags`: flags for controlling any callbacks used in a status call.
660+
* `pathspec`: an array of paths to use for path-matching. The behavior of the path-matching
661+
will vary depending on the values of `show` and `flags`.
654662
"""
655663
@kwdef struct StatusOptions
656664
version::Cuint = 1

0 commit comments

Comments
 (0)