diff options
Diffstat (limited to 'include/git2/status.h')
-rw-r--r-- | include/git2/status.h | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/include/git2/status.h b/include/git2/status.h index 543e3faa8..bb28e875b 100644 --- a/include/git2/status.h +++ b/include/git2/status.h @@ -48,7 +48,7 @@ typedef enum { GIT_STATUS_WT_UNREADABLE = (1u << 12), GIT_STATUS_IGNORED = (1u << 14), - GIT_STATUS_CONFLICTED = (1u << 15), + GIT_STATUS_CONFLICTED = (1u << 15) } git_status_t; /** @@ -87,7 +87,7 @@ typedef enum { * Only gives status based on index to working directory comparison, * not comparing the index to the HEAD. */ - GIT_STATUS_SHOW_WORKDIR_ONLY = 2, + GIT_STATUS_SHOW_WORKDIR_ONLY = 2 } git_status_show_t; /** @@ -204,7 +204,7 @@ typedef enum { * Unreadable files will be detected and given the status * untracked instead of unreadable. */ - GIT_STATUS_OPT_INCLUDE_UNREADABLE_AS_UNTRACKED = (1u << 15), + GIT_STATUS_OPT_INCLUDE_UNREADABLE_AS_UNTRACKED = (1u << 15) } git_status_opt_t; #define GIT_STATUS_OPT_DEFAULTS \ @@ -227,13 +227,16 @@ typedef struct { /** * The `show` value is one of the `git_status_show_t` constants that - * control which files to scan and in what order. + * control which files to scan and in what order. The default is + * `GIT_STATUS_SHOW_INDEX_AND_WORKDIR`. */ git_status_show_t show; /** * The `flags` value is an OR'ed combination of the - * `git_status_opt_t` values above. + * `git_status_opt_t` values above. The default is + * `GIT_STATUS_OPT_DEFAULTS`, which matches git's default + * behavior. */ unsigned int flags; @@ -250,6 +253,12 @@ typedef struct { * working directory and index; defaults to HEAD. */ git_tree *baseline; + + /** + * Threshold above which similar files will be considered renames. + * This is equivalent to the -M option. Defaults to 50. + */ + uint16_t rename_threshold; } git_status_options; #define GIT_STATUS_OPTIONS_VERSION 1 |