wt-status.hon commit builtin-apply: fix typo leading to stack corruption (b8ebe08)
   1#ifndef STATUS_H
   2#define STATUS_H
   3
   4#include <stdio.h>
   5
   6enum color_wt_status {
   7        WT_STATUS_HEADER,
   8        WT_STATUS_UPDATED,
   9        WT_STATUS_CHANGED,
  10        WT_STATUS_UNTRACKED,
  11        WT_STATUS_NOBRANCH,
  12};
  13
  14enum untracked_status_type {
  15        SHOW_NO_UNTRACKED_FILES,
  16        SHOW_NORMAL_UNTRACKED_FILES,
  17        SHOW_ALL_UNTRACKED_FILES
  18};
  19extern enum untracked_status_type show_untracked_files;
  20
  21struct wt_status {
  22        int is_initial;
  23        char *branch;
  24        const char *reference;
  25        int verbose;
  26        int amend;
  27        int untracked;
  28        int nowarn;
  29        /* These are computed during processing of the individual sections */
  30        int commitable;
  31        int workdir_dirty;
  32        int workdir_untracked;
  33        const char *index_file;
  34        FILE *fp;
  35        const char *prefix;
  36};
  37
  38int git_status_config(const char *var, const char *value, void *cb);
  39extern int wt_status_use_color;
  40extern int wt_status_relative_paths;
  41void wt_status_prepare(struct wt_status *s);
  42void wt_status_print(struct wt_status *s);
  43
  44#endif /* STATUS_H */