@@ -54,6 +54,16 @@ typedef enum {
54
54
GIT_EINVALIDSPEC = -12 ,
55
55
GIT_ECONFLICT = -13 ,
56
56
GIT_ELOCKED = -14 ,
57
+ GIT_EMODIFIED = -15 ,
58
+ GIT_EAUTH = -16 ,
59
+ GIT_ECERTIFICATE = -17 ,
60
+ GIT_EAPPLIED = -18 ,
61
+ GIT_EPEEL = -19 ,
62
+ GIT_EEOF = -20 ,
63
+ GIT_EINVALID = -21 ,
64
+ GIT_EUNCOMMITTED = -22 ,
65
+ GIT_EDIRECTORY = -23 ,
66
+ GIT_EMERGECONFLICT = -24 ,
57
67
58
68
GIT_PASSTHROUGH = -30 ,
59
69
GIT_ITEROVER = -31 ,
@@ -131,21 +141,21 @@ typedef enum {
131
141
132
142
typedef struct {
133
143
git_cert_t cert_type ;
144
+ } git_cert ;
145
+
146
+ typedef struct {
147
+ git_cert parent ;
134
148
git_cert_ssh_t type ;
135
149
unsigned char hash_md5 [16 ];
136
150
unsigned char hash_sha1 [20 ];
137
151
} git_cert_hostkey ;
138
152
139
153
typedef struct {
140
- git_cert_t cert_type ;
154
+ git_cert parent ;
141
155
void * data ;
142
156
size_t len ;
143
157
} git_cert_x509 ;
144
158
145
- typedef struct {
146
- git_cert_t cert_type ;
147
- } git_cert ;
148
-
149
159
typedef int (* git_transport_message_cb )(const char * str , int len , void * data );
150
160
typedef int (* git_cred_acquire_cb )(
151
161
git_cred * * cred ,
@@ -201,6 +211,7 @@ typedef struct {
201
211
unsigned int version ;
202
212
unsigned int pb_parallelism ;
203
213
git_remote_callbacks callbacks ;
214
+ git_strarray custom_headers ;
204
215
} git_push_options ;
205
216
206
217
#define GIT_PUSH_OPTIONS_VERSION ...
@@ -225,6 +236,7 @@ typedef struct {
225
236
git_fetch_prune_t prune ;
226
237
int update_fetchhead ;
227
238
git_remote_autotag_option_t download_tags ;
239
+ git_strarray custom_headers ;
228
240
} git_fetch_options ;
229
241
230
242
#define GIT_FETCH_OPTIONS_VERSION ...
@@ -336,13 +348,20 @@ typedef int (*git_diff_notify_cb)(
336
348
const char * matched_pathspec ,
337
349
void * payload );
338
350
351
+ typedef int (* git_diff_progress_cb )(
352
+ const git_diff * diff_so_far ,
353
+ const char * old_path ,
354
+ const char * new_path ,
355
+ void * payload );
356
+
339
357
typedef struct {
340
358
unsigned int version ;
341
359
uint32_t flags ;
342
360
git_submodule_ignore_t ignore_submodules ;
343
361
git_strarray pathspec ;
344
- git_diff_notify_cb notify_cb ;
345
- void * notify_payload ;
362
+ git_diff_notify_cb notify_cb ;
363
+ git_diff_progress_cb progress_cb ;
364
+ void * payload ;
346
365
uint32_t context_lines ;
347
366
uint32_t interhunk_lines ;
348
367
uint16_t id_abbrev ;
@@ -478,11 +497,12 @@ typedef ... git_config;
478
497
typedef ... git_config_iterator ;
479
498
480
499
typedef enum {
481
- GIT_CONFIG_LEVEL_SYSTEM = 1 ,
482
- GIT_CONFIG_LEVEL_XDG = 2 ,
483
- GIT_CONFIG_LEVEL_GLOBAL = 3 ,
484
- GIT_CONFIG_LEVEL_LOCAL = 4 ,
485
- GIT_CONFIG_LEVEL_APP = 5 ,
500
+ GIT_CONFIG_LEVEL_PROGRAMDATA = 1 ,
501
+ GIT_CONFIG_LEVEL_SYSTEM = 2 ,
502
+ GIT_CONFIG_LEVEL_XDG = 3 ,
503
+ GIT_CONFIG_LEVEL_GLOBAL = 4 ,
504
+ GIT_CONFIG_LEVEL_LOCAL = 5 ,
505
+ GIT_CONFIG_LEVEL_APP = 6 ,
486
506
GIT_CONFIG_HIGHEST_LEVEL = -1 ,
487
507
} git_config_level_t ;
488
508
@@ -671,22 +691,22 @@ typedef struct git_blame_options {
671
691
uint16_t min_match_characters ;
672
692
git_oid newest_commit ;
673
693
git_oid oldest_commit ;
674
- uint32_t min_line ;
675
- uint32_t max_line ;
694
+ size_t min_line ;
695
+ size_t max_line ;
676
696
} git_blame_options ;
677
697
678
698
#define GIT_BLAME_OPTIONS_VERSION ...
679
699
680
700
typedef struct git_blame_hunk {
681
- uint16_t lines_in_hunk ;
701
+ size_t lines_in_hunk ;
682
702
683
703
git_oid final_commit_id ;
684
- uint16_t final_start_line_number ;
704
+ size_t final_start_line_number ;
685
705
git_signature * final_signature ;
686
706
687
707
git_oid orig_commit_id ;
688
708
const char * orig_path ;
689
- uint16_t orig_start_line_number ;
709
+ size_t orig_start_line_number ;
690
710
git_signature * orig_signature ;
691
711
692
712
char boundary ;
@@ -695,15 +715,15 @@ typedef struct git_blame_hunk {
695
715
int git_blame_init_options (git_blame_options * opts , unsigned int version );
696
716
uint32_t git_blame_get_hunk_count (git_blame * blame );
697
717
const git_blame_hunk * git_blame_get_hunk_byindex (git_blame * blame , uint32_t index );
698
- const git_blame_hunk * git_blame_get_hunk_byline (git_blame * blame , uint32_t lineno );
718
+ const git_blame_hunk * git_blame_get_hunk_byline (git_blame * blame , size_t lineno );
699
719
int git_blame_file (git_blame * * out , git_repository * repo , const char * path , git_blame_options * options );
700
720
void git_blame_free (git_blame * blame );
701
721
702
722
/*
703
723
* Merging
704
724
*/
705
725
706
- typedef enum { ... } git_merge_tree_flag_t ;
726
+ typedef enum { ... } git_merge_flag_t ;
707
727
708
728
typedef enum {
709
729
GIT_MERGE_FILE_FAVOR_NORMAL = 0 ,
@@ -714,10 +734,11 @@ typedef enum {
714
734
715
735
typedef struct {
716
736
unsigned int version ;
717
- git_merge_tree_flag_t tree_flags ;
737
+ git_merge_flag_t flags ;
718
738
unsigned int rename_threshold ;
719
739
unsigned int target_limit ;
720
740
git_diff_similarity_metric * metric ;
741
+ unsigned int recursion_limit ;
721
742
git_merge_file_favor_t file_favor ;
722
743
unsigned int file_flags ;
723
744
} git_merge_options ;
@@ -737,15 +758,20 @@ typedef enum {
737
758
GIT_MERGE_FILE_STYLE_MERGE = 1 ,
738
759
GIT_MERGE_FILE_STYLE_DIFF3 = 2 ,
739
760
GIT_MERGE_FILE_SIMPLIFY_ALNUM = 4 ,
740
- } git_merge_file_flags_t ;
761
+ GIT_MERGE_FILE_IGNORE_WHITESPACE = 8 ,
762
+ GIT_MERGE_FILE_IGNORE_WHITESPACE_CHANGE = 16 ,
763
+ GIT_MERGE_FILE_IGNORE_WHITESPACE_EOL = 32 ,
764
+ GIT_MERGE_FILE_DIFF_PATIENCE = 64 ,
765
+ GIT_MERGE_FILE_DIFF_MINIMAL = 128 ,
766
+ } git_merge_file_flag_t ;
741
767
742
768
typedef struct {
743
769
unsigned int version ;
744
770
const char * ancestor_label ;
745
771
const char * our_label ;
746
772
const char * their_label ;
747
773
git_merge_file_favor_t favor ;
748
- git_merge_file_flags_t flags ;
774
+ git_merge_file_flag_t flags ;
749
775
} git_merge_file_options ;
750
776
751
777
#define GIT_MERGE_OPTIONS_VERSION ...
0 commit comments