Code forensics  0.1
Generate historical information about code changes
gitwrap.hpp
Go to the documentation of this file.
1 #pragma once
2 inline void libgit2_version(int *major, int *minor, int *rev) {
3  auto __result = git_libgit2_version(major, minor, rev);
4  if (__result < 0) {
5  __GIT_THROW_EXCEPTION(__result, "git_libgit2_version");
6  }
7 }
8 
9 
10 
11 inline const char *libgit2_prerelease() {
12  auto __result = git_libgit2_prerelease();
13  return __result;
14 }
15 
16 
17 
18 inline int libgit2_features() {
19  auto __result = git_libgit2_features();
20  return __result;
21 }
22 
23 
24 
25 inline void libgit2_opts(int option) {
26  auto __result = git_libgit2_opts(option);
27  if (__result < 0) {
28  __GIT_THROW_EXCEPTION(__result, "git_libgit2_opts");
29  }
30 }
31 
32 
33 
34 inline void buf_dispose(git_buf *buffer) {
35  git_buf_dispose(buffer);
36 }
37 
38 
39 
40 inline git_oid oid_fromstr(const char *str) {
41  git_oid out;
42  auto __result = git_oid_fromstr(&out, str);
43  if (__result < 0) {
44  __GIT_THROW_EXCEPTION(__result, "git_oid_fromstr");
45  } else {
46  return out;
47  }
48 }
49 
50 
51 
52 inline git_oid oid_fromstrp(const char *str) {
53  git_oid out;
54  auto __result = git_oid_fromstrp(&out, str);
55  if (__result < 0) {
56  __GIT_THROW_EXCEPTION(__result, "git_oid_fromstrp");
57  } else {
58  return out;
59  }
60 }
61 
62 
63 
64 inline git_oid oid_fromstrn(const char *str, size_t length) {
65  git_oid out;
66  auto __result = git_oid_fromstrn(&out, str, length);
67  if (__result < 0) {
68  __GIT_THROW_EXCEPTION(__result, "git_oid_fromstrn");
69  } else {
70  return out;
71  }
72 }
73 
74 
75 
76 inline git_oid oid_fromraw(const unsigned char *raw) {
77  git_oid out;
78  auto __result = git_oid_fromraw(&out, raw);
79  if (__result < 0) {
80  __GIT_THROW_EXCEPTION(__result, "git_oid_fromraw");
81  } else {
82  return out;
83  }
84 }
85 
86 
87 
88 inline char oid_fmt(const git_oid *id) {
89  char out;
90  auto __result = git_oid_fmt(&out, id);
91  if (__result < 0) {
92  __GIT_THROW_EXCEPTION(__result, "git_oid_fmt");
93  } else {
94  return out;
95  }
96 }
97 
98 
99 
100 inline char oid_nfmt(size_t n, const git_oid *id) {
101  char out;
102  auto __result = git_oid_nfmt(&out, n, id);
103  if (__result < 0) {
104  __GIT_THROW_EXCEPTION(__result, "git_oid_nfmt");
105  } else {
106  return out;
107  }
108 }
109 
110 
111 
112 inline char oid_pathfmt(const git_oid *id) {
113  char out;
114  auto __result = git_oid_pathfmt(&out, id);
115  if (__result < 0) {
116  __GIT_THROW_EXCEPTION(__result, "git_oid_pathfmt");
117  } else {
118  return out;
119  }
120 }
121 
122 
123 
124 inline char *oid_tostr_s(const git_oid *oid) {
125  auto __result = git_oid_tostr_s(oid);
126  return __result;
127 }
128 
129 
130 
131 inline char *oid_tostr(size_t n, const git_oid *id) {
132  char out;
133  auto __result = git_oid_tostr(&out, n, id);
134  return __result;
135 }
136 
137 
138 
139 inline git_oid oid_cpy(const git_oid *src) {
140  git_oid out;
141  auto __result = git_oid_cpy(&out, src);
142  if (__result < 0) {
143  __GIT_THROW_EXCEPTION(__result, "git_oid_cpy");
144  } else {
145  return out;
146  }
147 }
148 
149 
150 
151 inline int oid_cmp(const git_oid *a, const git_oid *b) {
152  auto __result = git_oid_cmp(a, b);
153  return __result;
154 }
155 
156 
157 
158 inline void oid_equal(const git_oid *a, const git_oid *b) {
159  auto __result = git_oid_equal(a, b);
160  if (__result < 0) {
161  __GIT_THROW_EXCEPTION(__result, "git_oid_equal");
162  }
163 }
164 
165 
166 
167 inline void oid_ncmp(const git_oid *a, const git_oid *b, size_t len) {
168  auto __result = git_oid_ncmp(a, b, len);
169  if (__result < 0) {
170  __GIT_THROW_EXCEPTION(__result, "git_oid_ncmp");
171  }
172 }
173 
174 
175 
176 inline void oid_streq(const git_oid *id, const char *str) {
177  auto __result = git_oid_streq(id, str);
178  if (__result < 0) {
179  __GIT_THROW_EXCEPTION(__result, "git_oid_streq");
180  }
181 }
182 
183 
184 
185 inline void oid_strcmp(const git_oid *id, const char *str) {
186  auto __result = git_oid_strcmp(id, str);
187  if (__result < 0) {
188  __GIT_THROW_EXCEPTION(__result, "git_oid_strcmp");
189  }
190 }
191 
192 
193 
194 inline void oid_is_zero(const git_oid *id) {
195  auto __result = git_oid_is_zero(id);
196  if (__result < 0) {
197  __GIT_THROW_EXCEPTION(__result, "git_oid_is_zero");
198  }
199 }
200 
201 
202 
203 inline git_oid_shorten *oid_shorten_new(size_t min_length) {
204  auto __result = git_oid_shorten_new(min_length);
205  return __result;
206 }
207 
208 
209 
210 inline void oid_shorten_add(git_oid_shorten *os, const char *text_id) {
211  auto __result = git_oid_shorten_add(os, text_id);
212  if (__result < 0) {
213  __GIT_THROW_EXCEPTION(__result, "git_oid_shorten_add");
214  }
215 }
216 
217 
218 
219 inline void oid_shorten_free(git_oid_shorten *os) {
220  git_oid_shorten_free(os);
221 }
222 
223 
224 
225 inline git_repository *repository_open(const char *path) {
226  git_repository *out;
227  auto __result = git_repository_open(&out, path);
228  if (__result < 0) {
229  __GIT_THROW_EXCEPTION(__result, "git_repository_open");
230  } else {
231  return out;
232  }
233 }
234 
235 
236 
237 inline git_repository *repository_open_from_worktree(git_worktree *wt) {
238  git_repository *out;
239  auto __result = git_repository_open_from_worktree(&out, wt);
240  if (__result < 0) {
241  __GIT_THROW_EXCEPTION(__result, "git_repository_open_from_worktree");
242  } else {
243  return out;
244  }
245 }
246 
247 
248 
249 inline git_repository *repository_wrap_odb(git_odb *odb) {
250  git_repository *out;
251  auto __result = git_repository_wrap_odb(&out, odb);
252  if (__result < 0) {
253  __GIT_THROW_EXCEPTION(__result, "git_repository_wrap_odb");
254  } else {
255  return out;
256  }
257 }
258 
259 
260 
261 inline git_buf repository_discover(const char *start_path, int across_fs, const char *ceiling_dirs) {
262  git_buf out;
263  auto __result = git_repository_discover(&out, start_path, across_fs, ceiling_dirs);
264  if (__result < 0) {
265  __GIT_THROW_EXCEPTION(__result, "git_repository_discover");
266  } else {
267  return out;
268  }
269 }
270 
271 
272 
273 inline git_repository *repository_open_ext(const char *path, unsigned int flags, const char *ceiling_dirs) {
274  git_repository *out;
275  auto __result = git_repository_open_ext(&out, path, flags, ceiling_dirs);
276  if (__result < 0) {
277  __GIT_THROW_EXCEPTION(__result, "git_repository_open_ext");
278  } else {
279  return out;
280  }
281 }
282 
283 
284 
285 inline git_repository *repository_open_bare(const char *bare_path) {
286  git_repository *out;
287  auto __result = git_repository_open_bare(&out, bare_path);
288  if (__result < 0) {
289  __GIT_THROW_EXCEPTION(__result, "git_repository_open_bare");
290  } else {
291  return out;
292  }
293 }
294 
295 
296 
297 inline void repository_free(git_repository *repo) {
298  git_repository_free(repo);
299 }
300 
301 
302 
303 inline git_repository *repository_init(const char *path, unsigned int is_bare) {
304  git_repository *out;
305  auto __result = git_repository_init(&out, path, is_bare);
306  if (__result < 0) {
307  __GIT_THROW_EXCEPTION(__result, "git_repository_init");
308  } else {
309  return out;
310  }
311 }
312 
313 
314 
315 inline void repository_init_options_init(git_repository_init_options *opts, unsigned int version) {
316  auto __result = git_repository_init_options_init(opts, version);
317  if (__result < 0) {
318  __GIT_THROW_EXCEPTION(__result, "git_repository_init_options_init");
319  }
320 }
321 
322 
323 
324 inline git_repository *repository_init_ext(const char *repo_path, git_repository_init_options *opts) {
325  git_repository *out;
326  auto __result = git_repository_init_ext(&out, repo_path, opts);
327  if (__result < 0) {
328  __GIT_THROW_EXCEPTION(__result, "git_repository_init_ext");
329  } else {
330  return out;
331  }
332 }
333 
334 
335 
336 inline git_reference *repository_head(git_repository *repo) {
337  git_reference *out;
338  auto __result = git_repository_head(&out, repo);
339  if (__result < 0) {
340  __GIT_THROW_EXCEPTION(__result, "git_repository_head");
341  } else {
342  return out;
343  }
344 }
345 
346 
347 
348 inline git_reference *repository_head_for_worktree(git_repository *repo, const char *name) {
349  git_reference *out;
350  auto __result = git_repository_head_for_worktree(&out, repo, name);
351  if (__result < 0) {
352  __GIT_THROW_EXCEPTION(__result, "git_repository_head_for_worktree");
353  } else {
354  return out;
355  }
356 }
357 
358 
359 
360 inline void repository_head_detached(git_repository *repo) {
361  auto __result = git_repository_head_detached(repo);
362  if (__result < 0) {
363  __GIT_THROW_EXCEPTION(__result, "git_repository_head_detached");
364  }
365 }
366 
367 
368 
369 inline void repository_head_detached_for_worktree(git_repository *repo, const char *name) {
370  auto __result = git_repository_head_detached_for_worktree(repo, name);
371  if (__result < 0) {
372  __GIT_THROW_EXCEPTION(__result, "git_repository_head_detached_for_worktree");
373  }
374 }
375 
376 
377 
378 inline void repository_head_unborn(git_repository *repo) {
379  auto __result = git_repository_head_unborn(repo);
380  if (__result < 0) {
381  __GIT_THROW_EXCEPTION(__result, "git_repository_head_unborn");
382  }
383 }
384 
385 
386 
387 inline void repository_is_empty(git_repository *repo) {
388  auto __result = git_repository_is_empty(repo);
389  if (__result < 0) {
390  __GIT_THROW_EXCEPTION(__result, "git_repository_is_empty");
391  }
392 }
393 
394 
395 
396 inline git_buf repository_item_path(const git_repository *repo, git_repository_item_t item) {
397  git_buf out;
398  auto __result = git_repository_item_path(&out, repo, item);
399  if (__result < 0) {
400  __GIT_THROW_EXCEPTION(__result, "git_repository_item_path");
401  } else {
402  return out;
403  }
404 }
405 
406 
407 
408 inline const char *repository_path(const git_repository *repo) {
409  auto __result = git_repository_path(repo);
410  return __result;
411 }
412 
413 
414 
415 inline const char *repository_workdir(const git_repository *repo) {
416  auto __result = git_repository_workdir(repo);
417  return __result;
418 }
419 
420 
421 
422 inline const char *repository_commondir(const git_repository *repo) {
423  auto __result = git_repository_commondir(repo);
424  return __result;
425 }
426 
427 
428 
429 inline void repository_set_workdir(git_repository *repo, const char *workdir, int update_gitlink) {
430  auto __result = git_repository_set_workdir(repo, workdir, update_gitlink);
431  if (__result < 0) {
432  __GIT_THROW_EXCEPTION(__result, "git_repository_set_workdir");
433  }
434 }
435 
436 
437 
438 inline void repository_is_bare(const git_repository *repo) {
439  auto __result = git_repository_is_bare(repo);
440  if (__result < 0) {
441  __GIT_THROW_EXCEPTION(__result, "git_repository_is_bare");
442  }
443 }
444 
445 
446 
447 inline void repository_is_worktree(const git_repository *repo) {
448  auto __result = git_repository_is_worktree(repo);
449  if (__result < 0) {
450  __GIT_THROW_EXCEPTION(__result, "git_repository_is_worktree");
451  }
452 }
453 
454 
455 
456 inline git_config *repository_config(git_repository *repo) {
457  git_config *out;
458  auto __result = git_repository_config(&out, repo);
459  if (__result < 0) {
460  __GIT_THROW_EXCEPTION(__result, "git_repository_config");
461  } else {
462  return out;
463  }
464 }
465 
466 
467 
468 inline git_config *repository_config_snapshot(git_repository *repo) {
469  git_config *out;
470  auto __result = git_repository_config_snapshot(&out, repo);
471  if (__result < 0) {
472  __GIT_THROW_EXCEPTION(__result, "git_repository_config_snapshot");
473  } else {
474  return out;
475  }
476 }
477 
478 
479 
480 inline git_odb *repository_odb(git_repository *repo) {
481  git_odb *out;
482  auto __result = git_repository_odb(&out, repo);
483  if (__result < 0) {
484  __GIT_THROW_EXCEPTION(__result, "git_repository_odb");
485  } else {
486  return out;
487  }
488 }
489 
490 
491 
492 inline git_refdb *repository_refdb(git_repository *repo) {
493  git_refdb *out;
494  auto __result = git_repository_refdb(&out, repo);
495  if (__result < 0) {
496  __GIT_THROW_EXCEPTION(__result, "git_repository_refdb");
497  } else {
498  return out;
499  }
500 }
501 
502 
503 
504 inline git_index *repository_index(git_repository *repo) {
505  git_index *out;
506  auto __result = git_repository_index(&out, repo);
507  if (__result < 0) {
508  __GIT_THROW_EXCEPTION(__result, "git_repository_index");
509  } else {
510  return out;
511  }
512 }
513 
514 
515 
516 inline git_buf repository_message(git_repository *repo) {
517  git_buf out;
518  auto __result = git_repository_message(&out, repo);
519  if (__result < 0) {
520  __GIT_THROW_EXCEPTION(__result, "git_repository_message");
521  } else {
522  return out;
523  }
524 }
525 
526 
527 
528 inline void repository_message_remove(git_repository *repo) {
529  auto __result = git_repository_message_remove(repo);
530  if (__result < 0) {
531  __GIT_THROW_EXCEPTION(__result, "git_repository_message_remove");
532  }
533 }
534 
535 
536 
537 inline void repository_state_cleanup(git_repository *repo) {
538  auto __result = git_repository_state_cleanup(repo);
539  if (__result < 0) {
540  __GIT_THROW_EXCEPTION(__result, "git_repository_state_cleanup");
541  }
542 }
543 
544 
545 
546 inline void repository_fetchhead_foreach(git_repository *repo, git_repository_fetchhead_foreach_cb callback, void *payload) {
547  auto __result = git_repository_fetchhead_foreach(repo, callback, payload);
548  if (__result < 0) {
549  __GIT_THROW_EXCEPTION(__result, "git_repository_fetchhead_foreach");
550  }
551 }
552 
553 
554 
555 inline void repository_mergehead_foreach(git_repository *repo, git_repository_mergehead_foreach_cb callback, void *payload) {
556  auto __result = git_repository_mergehead_foreach(repo, callback, payload);
557  if (__result < 0) {
558  __GIT_THROW_EXCEPTION(__result, "git_repository_mergehead_foreach");
559  }
560 }
561 
562 
563 
564 inline git_oid repository_hashfile(git_repository *repo, const char *path, git_object_t type, const char *as_path) {
565  git_oid out;
566  auto __result = git_repository_hashfile(&out, repo, path, type, as_path);
567  if (__result < 0) {
568  __GIT_THROW_EXCEPTION(__result, "git_repository_hashfile");
569  } else {
570  return out;
571  }
572 }
573 
574 
575 
576 inline void repository_set_head(git_repository *repo, const char *refname) {
577  auto __result = git_repository_set_head(repo, refname);
578  if (__result < 0) {
579  __GIT_THROW_EXCEPTION(__result, "git_repository_set_head");
580  }
581 }
582 
583 
584 
585 inline void repository_set_head_detached(git_repository *repo, const git_oid *committish) {
586  auto __result = git_repository_set_head_detached(repo, committish);
587  if (__result < 0) {
588  __GIT_THROW_EXCEPTION(__result, "git_repository_set_head_detached");
589  }
590 }
591 
592 
593 
594 inline void repository_set_head_detached_from_annotated(git_repository *repo, const git_annotated_commit *committish) {
595  auto __result = git_repository_set_head_detached_from_annotated(repo, committish);
596  if (__result < 0) {
597  __GIT_THROW_EXCEPTION(__result, "git_repository_set_head_detached_from_annotated");
598  }
599 }
600 
601 
602 
603 inline void repository_detach_head(git_repository *repo) {
604  auto __result = git_repository_detach_head(repo);
605  if (__result < 0) {
606  __GIT_THROW_EXCEPTION(__result, "git_repository_detach_head");
607  }
608 }
609 
610 
611 
612 inline void repository_state(git_repository *repo) {
613  auto __result = git_repository_state(repo);
614  if (__result < 0) {
615  __GIT_THROW_EXCEPTION(__result, "git_repository_state");
616  }
617 }
618 
619 
620 
621 inline void repository_set_namespace(git_repository *repo, const char *nmspace) {
622  auto __result = git_repository_set_namespace(repo, nmspace);
623  if (__result < 0) {
624  __GIT_THROW_EXCEPTION(__result, "git_repository_set_namespace");
625  }
626 }
627 
628 
629 
630 inline const char *repository_get_namespace(git_repository *repo) {
631  auto __result = git_repository_get_namespace(repo);
632  return __result;
633 }
634 
635 
636 
637 inline void repository_is_shallow(git_repository *repo) {
638  auto __result = git_repository_is_shallow(repo);
639  if (__result < 0) {
640  __GIT_THROW_EXCEPTION(__result, "git_repository_is_shallow");
641  }
642 }
643 
644 
645 
646 inline void repository_ident(const char **name, const char **email, const git_repository *repo) {
647  auto __result = git_repository_ident(name, email, repo);
648  if (__result < 0) {
649  __GIT_THROW_EXCEPTION(__result, "git_repository_ident");
650  }
651 }
652 
653 
654 
655 inline void repository_set_ident(git_repository *repo, const char *name, const char *email) {
656  auto __result = git_repository_set_ident(repo, name, email);
657  if (__result < 0) {
658  __GIT_THROW_EXCEPTION(__result, "git_repository_set_ident");
659  }
660 }
661 
662 
663 
664 inline git_annotated_commit *annotated_commit_from_ref(git_repository *repo, const git_reference *ref) {
665  git_annotated_commit *out;
666  auto __result = git_annotated_commit_from_ref(&out, repo, ref);
667  if (__result < 0) {
668  __GIT_THROW_EXCEPTION(__result, "git_annotated_commit_from_ref");
669  } else {
670  return out;
671  }
672 }
673 
674 
675 
676 inline git_annotated_commit *annotated_commit_from_fetchhead(git_repository *repo, const char *branch_name, const char *remote_url, const git_oid *id) {
677  git_annotated_commit *out;
678  auto __result = git_annotated_commit_from_fetchhead(&out, repo, branch_name, remote_url, id);
679  if (__result < 0) {
680  __GIT_THROW_EXCEPTION(__result, "git_annotated_commit_from_fetchhead");
681  } else {
682  return out;
683  }
684 }
685 
686 
687 
688 inline git_annotated_commit *annotated_commit_lookup(git_repository *repo, const git_oid *id) {
689  git_annotated_commit *out;
690  auto __result = git_annotated_commit_lookup(&out, repo, id);
691  if (__result < 0) {
692  __GIT_THROW_EXCEPTION(__result, "git_annotated_commit_lookup");
693  } else {
694  return out;
695  }
696 }
697 
698 
699 
700 inline git_annotated_commit *annotated_commit_from_revspec(git_repository *repo, const char *revspec) {
701  git_annotated_commit *out;
702  auto __result = git_annotated_commit_from_revspec(&out, repo, revspec);
703  if (__result < 0) {
704  __GIT_THROW_EXCEPTION(__result, "git_annotated_commit_from_revspec");
705  } else {
706  return out;
707  }
708 }
709 
710 
711 
712 inline const git_oid *annotated_commit_id(const git_annotated_commit *commit) {
713  auto __result = git_annotated_commit_id(commit);
714  return __result;
715 }
716 
717 
718 
719 inline const char *annotated_commit_ref(const git_annotated_commit *commit) {
720  auto __result = git_annotated_commit_ref(commit);
721  return __result;
722 }
723 
724 
725 
726 inline void annotated_commit_free(git_annotated_commit *commit) {
727  git_annotated_commit_free(commit);
728 }
729 
730 
731 
732 inline void object_lookup(git_object **object, git_repository *repo, const git_oid *id, git_object_t type) {
733  auto __result = git_object_lookup(object, repo, id, type);
734  if (__result < 0) {
735  __GIT_THROW_EXCEPTION(__result, "git_object_lookup");
736  }
737 }
738 
739 
740 
741 inline void object_lookup_prefix(git_object **object_out, git_repository *repo, const git_oid *id, size_t len, git_object_t type) {
742  auto __result = git_object_lookup_prefix(object_out, repo, id, len, type);
743  if (__result < 0) {
744  __GIT_THROW_EXCEPTION(__result, "git_object_lookup_prefix");
745  }
746 }
747 
748 
749 
750 inline git_object *object_lookup_bypath(const git_object *treeish, const char *path, git_object_t type) {
751  git_object *out;
752  auto __result = git_object_lookup_bypath(&out, treeish, path, type);
753  if (__result < 0) {
754  __GIT_THROW_EXCEPTION(__result, "git_object_lookup_bypath");
755  } else {
756  return out;
757  }
758 }
759 
760 
761 
762 inline const git_oid *object_id(const git_object *obj) {
763  auto __result = git_object_id(obj);
764  return __result;
765 }
766 
767 
768 
769 inline git_buf object_short_id(const git_object *obj) {
770  git_buf out;
771  auto __result = git_object_short_id(&out, obj);
772  if (__result < 0) {
773  __GIT_THROW_EXCEPTION(__result, "git_object_short_id");
774  } else {
775  return out;
776  }
777 }
778 
779 
780 
781 inline git_object_t object_type(const git_object *obj) {
782  auto __result = git_object_type(obj);
783  return __result;
784 }
785 
786 
787 
788 inline git_repository *object_owner(const git_object *obj) {
789  auto __result = git_object_owner(obj);
790  return __result;
791 }
792 
793 
794 
795 inline void object_free(git_object *object) {
796  git_object_free(object);
797 }
798 
799 
800 
801 inline const char *object_type2string(git_object_t type) {
802  auto __result = git_object_type2string(type);
803  return __result;
804 }
805 
806 
807 
808 inline git_object_t object_string2type(const char *str) {
809  auto __result = git_object_string2type(str);
810  return __result;
811 }
812 
813 
814 
815 inline void object_typeisloose(git_object_t type) {
816  auto __result = git_object_typeisloose(type);
817  if (__result < 0) {
818  __GIT_THROW_EXCEPTION(__result, "git_object_typeisloose");
819  }
820 }
821 
822 
823 
824 inline void object_peel(git_object **peeled, const git_object *object, git_object_t target_type) {
825  auto __result = git_object_peel(peeled, object, target_type);
826  if (__result < 0) {
827  __GIT_THROW_EXCEPTION(__result, "git_object_peel");
828  }
829 }
830 
831 
832 
833 inline void object_dup(git_object **dest, git_object *source) {
834  auto __result = git_object_dup(dest, source);
835  if (__result < 0) {
836  __GIT_THROW_EXCEPTION(__result, "git_object_dup");
837  }
838 }
839 
840 
841 
842 inline void object_rawcontent_is_valid(int *valid, const char *buf, size_t len, git_object_t type) {
843  auto __result = git_object_rawcontent_is_valid(valid, buf, len, type);
844  if (__result < 0) {
845  __GIT_THROW_EXCEPTION(__result, "git_object_rawcontent_is_valid");
846  }
847 }
848 
849 
850 
851 inline git_tree *tree_lookup(git_repository *repo, const git_oid *id) {
852  git_tree *out;
853  auto __result = git_tree_lookup(&out, repo, id);
854  if (__result < 0) {
855  __GIT_THROW_EXCEPTION(__result, "git_tree_lookup");
856  } else {
857  return out;
858  }
859 }
860 
861 
862 
863 inline git_tree *tree_lookup_prefix(git_repository *repo, const git_oid *id, size_t len) {
864  git_tree *out;
865  auto __result = git_tree_lookup_prefix(&out, repo, id, len);
866  if (__result < 0) {
867  __GIT_THROW_EXCEPTION(__result, "git_tree_lookup_prefix");
868  } else {
869  return out;
870  }
871 }
872 
873 
874 
875 inline void tree_free(git_tree *tree) {
876  git_tree_free(tree);
877 }
878 
879 
880 
881 inline const git_oid *tree_id(const git_tree *tree) {
882  auto __result = git_tree_id(tree);
883  return __result;
884 }
885 
886 
887 
888 inline git_repository *tree_owner(const git_tree *tree) {
889  auto __result = git_tree_owner(tree);
890  return __result;
891 }
892 
893 
894 
895 inline size_t tree_entrycount(const git_tree *tree) {
896  auto __result = git_tree_entrycount(tree);
897  return __result;
898 }
899 
900 
901 
902 inline const git_tree_entry *tree_entry_byname(const git_tree *tree, const char *filename) {
903  auto __result = git_tree_entry_byname(tree, filename);
904  return __result;
905 }
906 
907 
908 
909 inline const git_tree_entry *tree_entry_byindex(const git_tree *tree, size_t idx) {
910  auto __result = git_tree_entry_byindex(tree, idx);
911  return __result;
912 }
913 
914 
915 
916 inline const git_tree_entry *tree_entry_byid(const git_tree *tree, const git_oid *id) {
917  auto __result = git_tree_entry_byid(tree, id);
918  return __result;
919 }
920 
921 
922 
923 inline git_tree_entry *tree_entry_bypath(const git_tree *root, const char *path) {
924  git_tree_entry *out;
925  auto __result = git_tree_entry_bypath(&out, root, path);
926  if (__result < 0) {
927  __GIT_THROW_EXCEPTION(__result, "git_tree_entry_bypath");
928  } else {
929  return out;
930  }
931 }
932 
933 
934 
935 inline git_tree_entry *tree_entry_dup(const git_tree_entry *source) {
936  git_tree_entry *dest;
937  auto __result = git_tree_entry_dup(&dest, source);
938  if (__result < 0) {
939  __GIT_THROW_EXCEPTION(__result, "git_tree_entry_dup");
940  } else {
941  return dest;
942  }
943 }
944 
945 
946 
947 inline void tree_entry_free(git_tree_entry *entry) {
948  git_tree_entry_free(entry);
949 }
950 
951 
952 
953 inline const char *tree_entry_name(const git_tree_entry *entry) {
954  auto __result = git_tree_entry_name(entry);
955  return __result;
956 }
957 
958 
959 
960 inline const git_oid *tree_entry_id(const git_tree_entry *entry) {
961  auto __result = git_tree_entry_id(entry);
962  return __result;
963 }
964 
965 
966 
967 inline git_object_t tree_entry_type(const git_tree_entry *entry) {
968  auto __result = git_tree_entry_type(entry);
969  return __result;
970 }
971 
972 
973 
974 inline git_filemode_t tree_entry_filemode(const git_tree_entry *entry) {
975  auto __result = git_tree_entry_filemode(entry);
976  return __result;
977 }
978 
979 
980 
981 inline git_filemode_t tree_entry_filemode_raw(const git_tree_entry *entry) {
982  auto __result = git_tree_entry_filemode_raw(entry);
983  return __result;
984 }
985 
986 
987 
988 inline void tree_entry_cmp(const git_tree_entry *e1, const git_tree_entry *e2) {
989  auto __result = git_tree_entry_cmp(e1, e2);
990  if (__result < 0) {
991  __GIT_THROW_EXCEPTION(__result, "git_tree_entry_cmp");
992  }
993 }
994 
995 
996 
997 inline git_object *tree_entry_to_object(git_repository *repo, const git_tree_entry *entry) {
998  git_object *object_out;
999  auto __result = git_tree_entry_to_object(&object_out, repo, entry);
1000  if (__result < 0) {
1001  __GIT_THROW_EXCEPTION(__result, "git_tree_entry_to_object");
1002  } else {
1003  return object_out;
1004  }
1005 }
1006 
1007 
1008 
1009 inline git_treebuilder *treebuilder_new(git_repository *repo, const git_tree *source) {
1010  git_treebuilder *out;
1011  auto __result = git_treebuilder_new(&out, repo, source);
1012  if (__result < 0) {
1013  __GIT_THROW_EXCEPTION(__result, "git_treebuilder_new");
1014  } else {
1015  return out;
1016  }
1017 }
1018 
1019 
1020 
1021 inline void treebuilder_clear(git_treebuilder *bld) {
1022  auto __result = git_treebuilder_clear(bld);
1023  if (__result < 0) {
1024  __GIT_THROW_EXCEPTION(__result, "git_treebuilder_clear");
1025  }
1026 }
1027 
1028 
1029 
1030 inline size_t treebuilder_entrycount(git_treebuilder *bld) {
1031  auto __result = git_treebuilder_entrycount(bld);
1032  return __result;
1033 }
1034 
1035 
1036 
1037 inline void treebuilder_free(git_treebuilder *bld) {
1038  git_treebuilder_free(bld);
1039 }
1040 
1041 
1042 
1043 inline const git_tree_entry *treebuilder_get(git_treebuilder *bld, const char *filename) {
1044  auto __result = git_treebuilder_get(bld, filename);
1045  return __result;
1046 }
1047 
1048 
1049 
1050 inline const git_tree_entry *treebuilder_insert(git_treebuilder *bld, const char *filename, const git_oid *id, git_filemode_t filemode) {
1051  const git_tree_entry *out;
1052  auto __result = git_treebuilder_insert(&out, bld, filename, id, filemode);
1053  if (__result < 0) {
1054  __GIT_THROW_EXCEPTION(__result, "git_treebuilder_insert");
1055  } else {
1056  return out;
1057  }
1058 }
1059 
1060 
1061 
1062 inline void treebuilder_remove(git_treebuilder *bld, const char *filename) {
1063  auto __result = git_treebuilder_remove(bld, filename);
1064  if (__result < 0) {
1065  __GIT_THROW_EXCEPTION(__result, "git_treebuilder_remove");
1066  }
1067 }
1068 
1069 
1070 
1071 inline void treebuilder_filter(git_treebuilder *bld, git_treebuilder_filter_cb filter, void *payload) {
1072  auto __result = git_treebuilder_filter(bld, filter, payload);
1073  if (__result < 0) {
1074  __GIT_THROW_EXCEPTION(__result, "git_treebuilder_filter");
1075  }
1076 }
1077 
1078 
1079 
1080 inline void treebuilder_write(git_oid *id, git_treebuilder *bld) {
1081  auto __result = git_treebuilder_write(id, bld);
1082  if (__result < 0) {
1083  __GIT_THROW_EXCEPTION(__result, "git_treebuilder_write");
1084  }
1085 }
1086 
1087 
1088 
1089 inline void tree_walk(const git_tree *tree, git_treewalk_mode mode, git_treewalk_cb callback, void *payload) {
1090  auto __result = git_tree_walk(tree, mode, callback, payload);
1091  if (__result < 0) {
1092  __GIT_THROW_EXCEPTION(__result, "git_tree_walk");
1093  }
1094 }
1095 
1096 
1097 
1098 inline git_tree *tree_dup(git_tree *source) {
1099  git_tree *out;
1100  auto __result = git_tree_dup(&out, source);
1101  if (__result < 0) {
1102  __GIT_THROW_EXCEPTION(__result, "git_tree_dup");
1103  } else {
1104  return out;
1105  }
1106 }
1107 
1108 
1109 
1110 inline git_oid tree_create_updated(git_repository *repo, git_tree *baseline, size_t nupdates, const git_tree_update *updates) {
1111  git_oid out;
1112  auto __result = git_tree_create_updated(&out, repo, baseline, nupdates, updates);
1113  if (__result < 0) {
1114  __GIT_THROW_EXCEPTION(__result, "git_tree_create_updated");
1115  } else {
1116  return out;
1117  }
1118 }
1119 
1120 
1121 
1122 inline void strarray_dispose(git_strarray *array) {
1123  git_strarray_dispose(array);
1124 }
1125 
1126 
1127 
1128 inline void strarray_copy(git_strarray *tgt, const git_strarray *src) {
1129  auto __result = git_strarray_copy(tgt, src);
1130  if (__result < 0) {
1131  __GIT_THROW_EXCEPTION(__result, "git_strarray_copy");
1132  }
1133 }
1134 
1135 
1136 
1137 inline git_reference *reference_lookup(git_repository *repo, const char *name) {
1138  git_reference *out;
1139  auto __result = git_reference_lookup(&out, repo, name);
1140  if (__result < 0) {
1141  __GIT_THROW_EXCEPTION(__result, "git_reference_lookup");
1142  } else {
1143  return out;
1144  }
1145 }
1146 
1147 
1148 
1149 inline git_oid reference_name_to_id(git_repository *repo, const char *name) {
1150  git_oid out;
1151  auto __result = git_reference_name_to_id(&out, repo, name);
1152  if (__result < 0) {
1153  __GIT_THROW_EXCEPTION(__result, "git_reference_name_to_id");
1154  } else {
1155  return out;
1156  }
1157 }
1158 
1159 
1160 
1161 inline git_reference *reference_dwim(git_repository *repo, const char *shorthand) {
1162  git_reference *out;
1163  auto __result = git_reference_dwim(&out, repo, shorthand);
1164  if (__result < 0) {
1165  __GIT_THROW_EXCEPTION(__result, "git_reference_dwim");
1166  } else {
1167  return out;
1168  }
1169 }
1170 
1171 
1172 
1173 inline git_reference *reference_symbolic_create_matching(git_repository *repo, const char *name, const char *target, int force, const char *current_value, const char *log_message) {
1174  git_reference *out;
1175  auto __result = git_reference_symbolic_create_matching(&out, repo, name, target, force, current_value, log_message);
1176  if (__result < 0) {
1177  __GIT_THROW_EXCEPTION(__result, "git_reference_symbolic_create_matching");
1178  } else {
1179  return out;
1180  }
1181 }
1182 
1183 
1184 
1185 inline git_reference *reference_symbolic_create(git_repository *repo, const char *name, const char *target, int force, const char *log_message) {
1186  git_reference *out;
1187  auto __result = git_reference_symbolic_create(&out, repo, name, target, force, log_message);
1188  if (__result < 0) {
1189  __GIT_THROW_EXCEPTION(__result, "git_reference_symbolic_create");
1190  } else {
1191  return out;
1192  }
1193 }
1194 
1195 
1196 
1197 inline git_reference *reference_create(git_repository *repo, const char *name, const git_oid *id, int force, const char *log_message) {
1198  git_reference *out;
1199  auto __result = git_reference_create(&out, repo, name, id, force, log_message);
1200  if (__result < 0) {
1201  __GIT_THROW_EXCEPTION(__result, "git_reference_create");
1202  } else {
1203  return out;
1204  }
1205 }
1206 
1207 
1208 
1209 inline git_reference *reference_create_matching(git_repository *repo, const char *name, const git_oid *id, int force, const git_oid *current_id, const char *log_message) {
1210  git_reference *out;
1211  auto __result = git_reference_create_matching(&out, repo, name, id, force, current_id, log_message);
1212  if (__result < 0) {
1213  __GIT_THROW_EXCEPTION(__result, "git_reference_create_matching");
1214  } else {
1215  return out;
1216  }
1217 }
1218 
1219 
1220 
1221 inline const git_oid *reference_target(const git_reference *ref) {
1222  auto __result = git_reference_target(ref);
1223  return __result;
1224 }
1225 
1226 
1227 
1228 inline const git_oid *reference_target_peel(const git_reference *ref) {
1229  auto __result = git_reference_target_peel(ref);
1230  return __result;
1231 }
1232 
1233 
1234 
1235 inline const char *reference_symbolic_target(const git_reference *ref) {
1236  auto __result = git_reference_symbolic_target(ref);
1237  return __result;
1238 }
1239 
1240 
1241 
1242 inline git_reference_t reference_type(const git_reference *ref) {
1243  auto __result = git_reference_type(ref);
1244  return __result;
1245 }
1246 
1247 
1248 
1249 inline const char *reference_name(const git_reference *ref) {
1250  auto __result = git_reference_name(ref);
1251  return __result;
1252 }
1253 
1254 
1255 
1256 inline git_reference *reference_resolve(const git_reference *ref) {
1257  git_reference *out;
1258  auto __result = git_reference_resolve(&out, ref);
1259  if (__result < 0) {
1260  __GIT_THROW_EXCEPTION(__result, "git_reference_resolve");
1261  } else {
1262  return out;
1263  }
1264 }
1265 
1266 
1267 
1268 inline git_repository *reference_owner(const git_reference *ref) {
1269  auto __result = git_reference_owner(ref);
1270  return __result;
1271 }
1272 
1273 
1274 
1275 inline git_reference *reference_symbolic_set_target(git_reference *ref, const char *target, const char *log_message) {
1276  git_reference *out;
1277  auto __result = git_reference_symbolic_set_target(&out, ref, target, log_message);
1278  if (__result < 0) {
1279  __GIT_THROW_EXCEPTION(__result, "git_reference_symbolic_set_target");
1280  } else {
1281  return out;
1282  }
1283 }
1284 
1285 
1286 
1287 inline git_reference *reference_set_target(git_reference *ref, const git_oid *id, const char *log_message) {
1288  git_reference *out;
1289  auto __result = git_reference_set_target(&out, ref, id, log_message);
1290  if (__result < 0) {
1291  __GIT_THROW_EXCEPTION(__result, "git_reference_set_target");
1292  } else {
1293  return out;
1294  }
1295 }
1296 
1297 
1298 
1299 inline void reference_rename(git_reference **new_ref, git_reference *ref, const char *new_name, int force, const char *log_message) {
1300  auto __result = git_reference_rename(new_ref, ref, new_name, force, log_message);
1301  if (__result < 0) {
1302  __GIT_THROW_EXCEPTION(__result, "git_reference_rename");
1303  }
1304 }
1305 
1306 
1307 
1308 inline void reference_delete(git_reference *ref) {
1309  auto __result = git_reference_delete(ref);
1310  if (__result < 0) {
1311  __GIT_THROW_EXCEPTION(__result, "git_reference_delete");
1312  }
1313 }
1314 
1315 
1316 
1317 inline void reference_remove(git_repository *repo, const char *name) {
1318  auto __result = git_reference_remove(repo, name);
1319  if (__result < 0) {
1320  __GIT_THROW_EXCEPTION(__result, "git_reference_remove");
1321  }
1322 }
1323 
1324 
1325 
1326 inline void reference_list(git_strarray *array, git_repository *repo) {
1327  auto __result = git_reference_list(array, repo);
1328  if (__result < 0) {
1329  __GIT_THROW_EXCEPTION(__result, "git_reference_list");
1330  }
1331 }
1332 
1333 
1334 
1335 inline void reference_foreach(git_repository *repo, git_reference_foreach_cb callback, void *payload) {
1336  auto __result = git_reference_foreach(repo, callback, payload);
1337  if (__result < 0) {
1338  __GIT_THROW_EXCEPTION(__result, "git_reference_foreach");
1339  }
1340 }
1341 
1342 
1343 
1344 inline void reference_foreach_name(git_repository *repo, git_reference_foreach_name_cb callback, void *payload) {
1345  auto __result = git_reference_foreach_name(repo, callback, payload);
1346  if (__result < 0) {
1347  __GIT_THROW_EXCEPTION(__result, "git_reference_foreach_name");
1348  }
1349 }
1350 
1351 
1352 
1353 inline void reference_dup(git_reference **dest, git_reference *source) {
1354  auto __result = git_reference_dup(dest, source);
1355  if (__result < 0) {
1356  __GIT_THROW_EXCEPTION(__result, "git_reference_dup");
1357  }
1358 }
1359 
1360 
1361 
1362 inline void reference_free(git_reference *ref) {
1363  git_reference_free(ref);
1364 }
1365 
1366 
1367 
1368 inline void reference_cmp(const git_reference *ref1, const git_reference *ref2) {
1369  auto __result = git_reference_cmp(ref1, ref2);
1370  if (__result < 0) {
1371  __GIT_THROW_EXCEPTION(__result, "git_reference_cmp");
1372  }
1373 }
1374 
1375 
1376 
1377 inline git_reference_iterator *reference_iterator_new(git_repository *repo) {
1378  git_reference_iterator *out;
1379  auto __result = git_reference_iterator_new(&out, repo);
1380  if (__result < 0) {
1381  __GIT_THROW_EXCEPTION(__result, "git_reference_iterator_new");
1382  } else {
1383  return out;
1384  }
1385 }
1386 
1387 
1388 
1389 inline git_reference_iterator *reference_iterator_glob_new(git_repository *repo, const char *glob) {
1390  git_reference_iterator *out;
1391  auto __result = git_reference_iterator_glob_new(&out, repo, glob);
1392  if (__result < 0) {
1393  __GIT_THROW_EXCEPTION(__result, "git_reference_iterator_glob_new");
1394  } else {
1395  return out;
1396  }
1397 }
1398 
1399 
1400 
1401 inline git_reference *reference_next(git_reference_iterator *iter) {
1402  git_reference *out;
1403  auto __result = git_reference_next(&out, iter);
1404  if (__result < 0) {
1405  __GIT_THROW_EXCEPTION(__result, "git_reference_next");
1406  } else {
1407  return out;
1408  }
1409 }
1410 
1411 
1412 
1413 inline const char *reference_next_name(git_reference_iterator *iter) {
1414  const char *out;
1415  auto __result = git_reference_next_name(&out, iter);
1416  if (__result < 0) {
1417  __GIT_THROW_EXCEPTION(__result, "git_reference_next_name");
1418  } else {
1419  return out;
1420  }
1421 }
1422 
1423 
1424 
1425 inline void reference_iterator_free(git_reference_iterator *iter) {
1426  git_reference_iterator_free(iter);
1427 }
1428 
1429 
1430 
1431 inline void reference_foreach_glob(git_repository *repo, const char *glob, git_reference_foreach_name_cb callback, void *payload) {
1432  auto __result = git_reference_foreach_glob(repo, glob, callback, payload);
1433  if (__result < 0) {
1434  __GIT_THROW_EXCEPTION(__result, "git_reference_foreach_glob");
1435  }
1436 }
1437 
1438 
1439 
1440 inline void reference_has_log(git_repository *repo, const char *refname) {
1441  auto __result = git_reference_has_log(repo, refname);
1442  if (__result < 0) {
1443  __GIT_THROW_EXCEPTION(__result, "git_reference_has_log");
1444  }
1445 }
1446 
1447 
1448 
1449 inline void reference_ensure_log(git_repository *repo, const char *refname) {
1450  auto __result = git_reference_ensure_log(repo, refname);
1451  if (__result < 0) {
1452  __GIT_THROW_EXCEPTION(__result, "git_reference_ensure_log");
1453  }
1454 }
1455 
1456 
1457 
1458 inline void reference_is_branch(const git_reference *ref) {
1459  auto __result = git_reference_is_branch(ref);
1460  if (__result < 0) {
1461  __GIT_THROW_EXCEPTION(__result, "git_reference_is_branch");
1462  }
1463 }
1464 
1465 
1466 
1467 inline void reference_is_remote(const git_reference *ref) {
1468  auto __result = git_reference_is_remote(ref);
1469  if (__result < 0) {
1470  __GIT_THROW_EXCEPTION(__result, "git_reference_is_remote");
1471  }
1472 }
1473 
1474 
1475 
1476 inline void reference_is_tag(const git_reference *ref) {
1477  auto __result = git_reference_is_tag(ref);
1478  if (__result < 0) {
1479  __GIT_THROW_EXCEPTION(__result, "git_reference_is_tag");
1480  }
1481 }
1482 
1483 
1484 
1485 inline void reference_is_note(const git_reference *ref) {
1486  auto __result = git_reference_is_note(ref);
1487  if (__result < 0) {
1488  __GIT_THROW_EXCEPTION(__result, "git_reference_is_note");
1489  }
1490 }
1491 
1492 
1493 
1494 inline void reference_normalize_name(char *buffer_out, size_t buffer_size, const char *name, unsigned int flags) {
1495  auto __result = git_reference_normalize_name(buffer_out, buffer_size, name, flags);
1496  if (__result < 0) {
1497  __GIT_THROW_EXCEPTION(__result, "git_reference_normalize_name");
1498  }
1499 }
1500 
1501 
1502 
1503 inline git_object *reference_peel(const git_reference *ref, git_object_t type) {
1504  git_object *out;
1505  auto __result = git_reference_peel(&out, ref, type);
1506  if (__result < 0) {
1507  __GIT_THROW_EXCEPTION(__result, "git_reference_peel");
1508  } else {
1509  return out;
1510  }
1511 }
1512 
1513 
1514 
1515 inline void reference_name_is_valid(int *valid, const char *refname) {
1516  auto __result = git_reference_name_is_valid(valid, refname);
1517  if (__result < 0) {
1518  __GIT_THROW_EXCEPTION(__result, "git_reference_name_is_valid");
1519  }
1520 }
1521 
1522 
1523 
1524 inline const char *reference_shorthand(const git_reference *ref) {
1525  auto __result = git_reference_shorthand(ref);
1526  return __result;
1527 }
1528 
1529 
1530 
1531 inline void diff_options_init(git_diff_options *opts, unsigned int version) {
1532  auto __result = git_diff_options_init(opts, version);
1533  if (__result < 0) {
1534  __GIT_THROW_EXCEPTION(__result, "git_diff_options_init");
1535  }
1536 }
1537 
1538 
1539 
1540 inline void diff_find_options_init(git_diff_find_options *opts, unsigned int version) {
1541  auto __result = git_diff_find_options_init(opts, version);
1542  if (__result < 0) {
1543  __GIT_THROW_EXCEPTION(__result, "git_diff_find_options_init");
1544  }
1545 }
1546 
1547 
1548 
1549 inline void diff_free(git_diff *diff) {
1550  git_diff_free(diff);
1551 }
1552 
1553 
1554 
1555 inline git_diff *diff_tree_to_tree(git_repository *repo, git_tree *old_tree, git_tree *new_tree, const git_diff_options *opts) {
1556  git_diff *diff;
1557  auto __result = git_diff_tree_to_tree(&diff, repo, old_tree, new_tree, opts);
1558  if (__result < 0) {
1559  __GIT_THROW_EXCEPTION(__result, "git_diff_tree_to_tree");
1560  } else {
1561  return diff;
1562  }
1563 }
1564 
1565 
1566 
1567 inline void diff_tree_to_index(git_diff **diff, git_repository *repo, git_tree *old_tree, git_index *index, const git_diff_options *opts) {
1568  auto __result = git_diff_tree_to_index(diff, repo, old_tree, index, opts);
1569  if (__result < 0) {
1570  __GIT_THROW_EXCEPTION(__result, "git_diff_tree_to_index");
1571  }
1572 }
1573 
1574 
1575 
1576 inline void diff_index_to_workdir(git_diff **diff, git_repository *repo, git_index *index, const git_diff_options *opts) {
1577  auto __result = git_diff_index_to_workdir(diff, repo, index, opts);
1578  if (__result < 0) {
1579  __GIT_THROW_EXCEPTION(__result, "git_diff_index_to_workdir");
1580  }
1581 }
1582 
1583 
1584 
1585 inline void diff_tree_to_workdir(git_diff **diff, git_repository *repo, git_tree *old_tree, const git_diff_options *opts) {
1586  auto __result = git_diff_tree_to_workdir(diff, repo, old_tree, opts);
1587  if (__result < 0) {
1588  __GIT_THROW_EXCEPTION(__result, "git_diff_tree_to_workdir");
1589  }
1590 }
1591 
1592 
1593 
1594 inline void diff_tree_to_workdir_with_index(git_diff **diff, git_repository *repo, git_tree *old_tree, const git_diff_options *opts) {
1595  auto __result = git_diff_tree_to_workdir_with_index(diff, repo, old_tree, opts);
1596  if (__result < 0) {
1597  __GIT_THROW_EXCEPTION(__result, "git_diff_tree_to_workdir_with_index");
1598  }
1599 }
1600 
1601 
1602 
1603 inline void diff_index_to_index(git_diff **diff, git_repository *repo, git_index *old_index, git_index *new_index, const git_diff_options *opts) {
1604  auto __result = git_diff_index_to_index(diff, repo, old_index, new_index, opts);
1605  if (__result < 0) {
1606  __GIT_THROW_EXCEPTION(__result, "git_diff_index_to_index");
1607  }
1608 }
1609 
1610 
1611 
1612 inline void diff_merge(git_diff *onto, const git_diff *from) {
1613  auto __result = git_diff_merge(onto, from);
1614  if (__result < 0) {
1615  __GIT_THROW_EXCEPTION(__result, "git_diff_merge");
1616  }
1617 }
1618 
1619 
1620 
1621 inline void diff_find_similar(git_diff *diff, const git_diff_find_options *options) {
1622  auto __result = git_diff_find_similar(diff, options);
1623  if (__result < 0) {
1624  __GIT_THROW_EXCEPTION(__result, "git_diff_find_similar");
1625  }
1626 }
1627 
1628 
1629 
1630 inline size_t diff_num_deltas(const git_diff *diff) {
1631  auto __result = git_diff_num_deltas(diff);
1632  return __result;
1633 }
1634 
1635 
1636 
1637 inline size_t diff_num_deltas_of_type(const git_diff *diff, git_delta_t type) {
1638  auto __result = git_diff_num_deltas_of_type(diff, type);
1639  return __result;
1640 }
1641 
1642 
1643 
1644 inline const git_diff_delta *diff_get_delta(const git_diff *diff, size_t idx) {
1645  auto __result = git_diff_get_delta(diff, idx);
1646  return __result;
1647 }
1648 
1649 
1650 
1651 inline void diff_is_sorted_icase(const git_diff *diff) {
1652  auto __result = git_diff_is_sorted_icase(diff);
1653  if (__result < 0) {
1654  __GIT_THROW_EXCEPTION(__result, "git_diff_is_sorted_icase");
1655  }
1656 }
1657 
1658 
1659 
1660 inline void diff_foreach(git_diff *diff, git_diff_file_cb file_cb, git_diff_binary_cb binary_cb, git_diff_hunk_cb hunk_cb, git_diff_line_cb line_cb, void *payload) {
1661  auto __result = git_diff_foreach(diff, file_cb, binary_cb, hunk_cb, line_cb, payload);
1662  if (__result < 0) {
1663  __GIT_THROW_EXCEPTION(__result, "git_diff_foreach");
1664  }
1665 }
1666 
1667 
1668 
1669 inline char diff_status_char(git_delta_t status) {
1670  auto __result = git_diff_status_char(status);
1671  return __result;
1672 }
1673 
1674 
1675 
1676 inline void diff_print(git_diff *diff, git_diff_format_t format, git_diff_line_cb print_cb, void *payload) {
1677  auto __result = git_diff_print(diff, format, print_cb, payload);
1678  if (__result < 0) {
1679  __GIT_THROW_EXCEPTION(__result, "git_diff_print");
1680  }
1681 }
1682 
1683 
1684 
1685 inline git_buf diff_to_buf(git_diff *diff, git_diff_format_t format) {
1686  git_buf out;
1687  auto __result = git_diff_to_buf(&out, diff, format);
1688  if (__result < 0) {
1689  __GIT_THROW_EXCEPTION(__result, "git_diff_to_buf");
1690  } else {
1691  return out;
1692  }
1693 }
1694 
1695 
1696 
1697 inline void diff_blobs(const git_blob *old_blob, const char *old_as_path, const git_blob *new_blob, const char *new_as_path, const git_diff_options *options, git_diff_file_cb file_cb, git_diff_binary_cb binary_cb, git_diff_hunk_cb hunk_cb, git_diff_line_cb line_cb, void *payload) {
1698  auto __result = git_diff_blobs(old_blob, old_as_path, new_blob, new_as_path, options, file_cb, binary_cb, hunk_cb, line_cb, payload);
1699  if (__result < 0) {
1700  __GIT_THROW_EXCEPTION(__result, "git_diff_blobs");
1701  }
1702 }
1703 
1704 
1705 
1706 inline void diff_blob_to_buffer(const git_blob *old_blob, const char *old_as_path, const char *buffer, size_t buffer_len, const char *buffer_as_path, const git_diff_options *options, git_diff_file_cb file_cb, git_diff_binary_cb binary_cb, git_diff_hunk_cb hunk_cb, git_diff_line_cb line_cb, void *payload) {
1707  auto __result = git_diff_blob_to_buffer(old_blob, old_as_path, buffer, buffer_len, buffer_as_path, options, file_cb, binary_cb, hunk_cb, line_cb, payload);
1708  if (__result < 0) {
1709  __GIT_THROW_EXCEPTION(__result, "git_diff_blob_to_buffer");
1710  }
1711 }
1712 
1713 
1714 
1715 inline void diff_buffers(const void *old_buffer, size_t old_len, const char *old_as_path, const void *new_buffer, size_t new_len, const char *new_as_path, const git_diff_options *options, git_diff_file_cb file_cb, git_diff_binary_cb binary_cb, git_diff_hunk_cb hunk_cb, git_diff_line_cb line_cb, void *payload) {
1716  auto __result = git_diff_buffers(old_buffer, old_len, old_as_path, new_buffer, new_len, new_as_path, options, file_cb, binary_cb, hunk_cb, line_cb, payload);
1717  if (__result < 0) {
1718  __GIT_THROW_EXCEPTION(__result, "git_diff_buffers");
1719  }
1720 }
1721 
1722 
1723 
1724 inline git_diff *diff_from_buffer(const char *content, size_t content_len) {
1725  git_diff *out;
1726  auto __result = git_diff_from_buffer(&out, content, content_len);
1727  if (__result < 0) {
1728  __GIT_THROW_EXCEPTION(__result, "git_diff_from_buffer");
1729  } else {
1730  return out;
1731  }
1732 }
1733 
1734 
1735 
1736 inline git_diff_stats *diff_get_stats(git_diff *diff) {
1737  git_diff_stats *out;
1738  auto __result = git_diff_get_stats(&out, diff);
1739  if (__result < 0) {
1740  __GIT_THROW_EXCEPTION(__result, "git_diff_get_stats");
1741  } else {
1742  return out;
1743  }
1744 }
1745 
1746 
1747 
1748 inline size_t diff_stats_files_changed(const git_diff_stats *stats) {
1749  auto __result = git_diff_stats_files_changed(stats);
1750  return __result;
1751 }
1752 
1753 
1754 
1755 inline size_t diff_stats_insertions(const git_diff_stats *stats) {
1756  auto __result = git_diff_stats_insertions(stats);
1757  return __result;
1758 }
1759 
1760 
1761 
1762 inline size_t diff_stats_deletions(const git_diff_stats *stats) {
1763  auto __result = git_diff_stats_deletions(stats);
1764  return __result;
1765 }
1766 
1767 
1768 
1769 inline git_buf diff_stats_to_buf(const git_diff_stats *stats, git_diff_stats_format_t format, size_t width) {
1770  git_buf out;
1771  auto __result = git_diff_stats_to_buf(&out, stats, format, width);
1772  if (__result < 0) {
1773  __GIT_THROW_EXCEPTION(__result, "git_diff_stats_to_buf");
1774  } else {
1775  return out;
1776  }
1777 }
1778 
1779 
1780 
1781 inline void diff_stats_free(git_diff_stats *stats) {
1782  git_diff_stats_free(stats);
1783 }
1784 
1785 
1786 
1787 inline void diff_patchid_options_init(git_diff_patchid_options *opts, unsigned int version) {
1788  auto __result = git_diff_patchid_options_init(opts, version);
1789  if (__result < 0) {
1790  __GIT_THROW_EXCEPTION(__result, "git_diff_patchid_options_init");
1791  }
1792 }
1793 
1794 
1795 
1796 inline git_oid diff_patchid(git_diff *diff, git_diff_patchid_options *opts) {
1797  git_oid out;
1798  auto __result = git_diff_patchid(&out, diff, opts);
1799  if (__result < 0) {
1800  __GIT_THROW_EXCEPTION(__result, "git_diff_patchid");
1801  } else {
1802  return out;
1803  }
1804 }
1805 
1806 
1807 
1808 inline void apply_options_init(git_apply_options *opts, unsigned int version) {
1809  auto __result = git_apply_options_init(opts, version);
1810  if (__result < 0) {
1811  __GIT_THROW_EXCEPTION(__result, "git_apply_options_init");
1812  }
1813 }
1814 
1815 
1816 
1817 inline git_index *apply_to_tree(git_repository *repo, git_tree *preimage, git_diff *diff, const git_apply_options *options) {
1818  git_index *out;
1819  auto __result = git_apply_to_tree(&out, repo, preimage, diff, options);
1820  if (__result < 0) {
1821  __GIT_THROW_EXCEPTION(__result, "git_apply_to_tree");
1822  } else {
1823  return out;
1824  }
1825 }
1826 
1827 
1828 
1829 inline void apply(git_repository *repo, git_diff *diff, git_apply_location_t location, const git_apply_options *options) {
1830  auto __result = git_apply(repo, diff, location, options);
1831  if (__result < 0) {
1832  __GIT_THROW_EXCEPTION(__result, "git_apply");
1833  }
1834 }
1835 
1836 
1837 
1838 inline git_attr_value_t attr_value(const char *attr) {
1839  auto __result = git_attr_value(attr);
1840  return __result;
1841 }
1842 
1843 
1844 
1845 inline void attr_get(const char **value_out, git_repository *repo, uint32_t flags, const char *path, const char *name) {
1846  auto __result = git_attr_get(value_out, repo, flags, path, name);
1847  if (__result < 0) {
1848  __GIT_THROW_EXCEPTION(__result, "git_attr_get");
1849  }
1850 }
1851 
1852 
1853 
1854 inline void attr_get_ext(const char **value_out, git_repository *repo, git_attr_options *opts, const char *path, const char *name) {
1855  auto __result = git_attr_get_ext(value_out, repo, opts, path, name);
1856  if (__result < 0) {
1857  __GIT_THROW_EXCEPTION(__result, "git_attr_get_ext");
1858  }
1859 }
1860 
1861 
1862 
1863 inline void attr_get_many(const char **values_out, git_repository *repo, uint32_t flags, const char *path, size_t num_attr, const char **names) {
1864  auto __result = git_attr_get_many(values_out, repo, flags, path, num_attr, names);
1865  if (__result < 0) {
1866  __GIT_THROW_EXCEPTION(__result, "git_attr_get_many");
1867  }
1868 }
1869 
1870 
1871 
1872 inline void attr_get_many_ext(const char **values_out, git_repository *repo, git_attr_options *opts, const char *path, size_t num_attr, const char **names) {
1873  auto __result = git_attr_get_many_ext(values_out, repo, opts, path, num_attr, names);
1874  if (__result < 0) {
1875  __GIT_THROW_EXCEPTION(__result, "git_attr_get_many_ext");
1876  }
1877 }
1878 
1879 
1880 
1881 inline void attr_foreach(git_repository *repo, uint32_t flags, const char *path, git_attr_foreach_cb callback, void *payload) {
1882  auto __result = git_attr_foreach(repo, flags, path, callback, payload);
1883  if (__result < 0) {
1884  __GIT_THROW_EXCEPTION(__result, "git_attr_foreach");
1885  }
1886 }
1887 
1888 
1889 
1890 inline void attr_foreach_ext(git_repository *repo, git_attr_options *opts, const char *path, git_attr_foreach_cb callback, void *payload) {
1891  auto __result = git_attr_foreach_ext(repo, opts, path, callback, payload);
1892  if (__result < 0) {
1893  __GIT_THROW_EXCEPTION(__result, "git_attr_foreach_ext");
1894  }
1895 }
1896 
1897 
1898 
1899 inline void attr_cache_flush(git_repository *repo) {
1900  auto __result = git_attr_cache_flush(repo);
1901  if (__result < 0) {
1902  __GIT_THROW_EXCEPTION(__result, "git_attr_cache_flush");
1903  }
1904 }
1905 
1906 
1907 
1908 inline void attr_add_macro(git_repository *repo, const char *name, const char *values) {
1909  auto __result = git_attr_add_macro(repo, name, values);
1910  if (__result < 0) {
1911  __GIT_THROW_EXCEPTION(__result, "git_attr_add_macro");
1912  }
1913 }
1914 
1915 
1916 
1917 inline void blob_lookup(git_blob **blob, git_repository *repo, const git_oid *id) {
1918  auto __result = git_blob_lookup(blob, repo, id);
1919  if (__result < 0) {
1920  __GIT_THROW_EXCEPTION(__result, "git_blob_lookup");
1921  }
1922 }
1923 
1924 
1925 
1926 inline void blob_lookup_prefix(git_blob **blob, git_repository *repo, const git_oid *id, size_t len) {
1927  auto __result = git_blob_lookup_prefix(blob, repo, id, len);
1928  if (__result < 0) {
1929  __GIT_THROW_EXCEPTION(__result, "git_blob_lookup_prefix");
1930  }
1931 }
1932 
1933 
1934 
1935 inline void blob_free(git_blob *blob) {
1936  git_blob_free(blob);
1937 }
1938 
1939 
1940 
1941 inline const git_oid *blob_id(const git_blob *blob) {
1942  auto __result = git_blob_id(blob);
1943  return __result;
1944 }
1945 
1946 
1947 
1948 inline git_repository *blob_owner(const git_blob *blob) {
1949  auto __result = git_blob_owner(blob);
1950  return __result;
1951 }
1952 
1953 
1954 
1955 inline const void *blob_rawcontent(const git_blob *blob) {
1956  auto __result = git_blob_rawcontent(blob);
1957  return __result;
1958 }
1959 
1960 
1961 
1962 inline git_object_size_t blob_rawsize(const git_blob *blob) {
1963  auto __result = git_blob_rawsize(blob);
1964  return __result;
1965 }
1966 
1967 
1968 
1969 inline void blob_filter_options_init(git_blob_filter_options *opts, unsigned int version) {
1970  auto __result = git_blob_filter_options_init(opts, version);
1971  if (__result < 0) {
1972  __GIT_THROW_EXCEPTION(__result, "git_blob_filter_options_init");
1973  }
1974 }
1975 
1976 
1977 
1978 inline git_buf blob_filter(git_blob *blob, const char *as_path, git_blob_filter_options *opts) {
1979  git_buf out;
1980  auto __result = git_blob_filter(&out, blob, as_path, opts);
1981  if (__result < 0) {
1982  __GIT_THROW_EXCEPTION(__result, "git_blob_filter");
1983  } else {
1984  return out;
1985  }
1986 }
1987 
1988 
1989 
1990 inline void blob_create_from_workdir(git_oid *id, git_repository *repo, const char *relative_path) {
1991  auto __result = git_blob_create_from_workdir(id, repo, relative_path);
1992  if (__result < 0) {
1993  __GIT_THROW_EXCEPTION(__result, "git_blob_create_from_workdir");
1994  }
1995 }
1996 
1997 
1998 
1999 inline void blob_create_from_disk(git_oid *id, git_repository *repo, const char *path) {
2000  auto __result = git_blob_create_from_disk(id, repo, path);
2001  if (__result < 0) {
2002  __GIT_THROW_EXCEPTION(__result, "git_blob_create_from_disk");
2003  }
2004 }
2005 
2006 
2007 
2008 inline git_writestream *blob_create_from_stream(git_repository *repo, const char *hintpath) {
2009  git_writestream *out;
2010  auto __result = git_blob_create_from_stream(&out, repo, hintpath);
2011  if (__result < 0) {
2012  __GIT_THROW_EXCEPTION(__result, "git_blob_create_from_stream");
2013  } else {
2014  return out;
2015  }
2016 }
2017 
2018 
2019 
2020 inline git_oid blob_create_from_stream_commit(git_writestream *stream) {
2021  git_oid out;
2022  auto __result = git_blob_create_from_stream_commit(&out, stream);
2023  if (__result < 0) {
2024  __GIT_THROW_EXCEPTION(__result, "git_blob_create_from_stream_commit");
2025  } else {
2026  return out;
2027  }
2028 }
2029 
2030 
2031 
2032 inline void blob_create_from_buffer(git_oid *id, git_repository *repo, const void *buffer, size_t len) {
2033  auto __result = git_blob_create_from_buffer(id, repo, buffer, len);
2034  if (__result < 0) {
2035  __GIT_THROW_EXCEPTION(__result, "git_blob_create_from_buffer");
2036  }
2037 }
2038 
2039 
2040 
2041 inline void blob_is_binary(const git_blob *blob) {
2042  auto __result = git_blob_is_binary(blob);
2043  if (__result < 0) {
2044  __GIT_THROW_EXCEPTION(__result, "git_blob_is_binary");
2045  }
2046 }
2047 
2048 
2049 
2050 inline void blob_data_is_binary(const char *data, size_t len) {
2051  auto __result = git_blob_data_is_binary(data, len);
2052  if (__result < 0) {
2053  __GIT_THROW_EXCEPTION(__result, "git_blob_data_is_binary");
2054  }
2055 }
2056 
2057 
2058 
2059 inline git_blob *blob_dup(git_blob *source) {
2060  git_blob *out;
2061  auto __result = git_blob_dup(&out, source);
2062  if (__result < 0) {
2063  __GIT_THROW_EXCEPTION(__result, "git_blob_dup");
2064  } else {
2065  return out;
2066  }
2067 }
2068 
2069 
2070 
2071 inline void blame_options_init(git_blame_options *opts, unsigned int version) {
2072  auto __result = git_blame_options_init(opts, version);
2073  if (__result < 0) {
2074  __GIT_THROW_EXCEPTION(__result, "git_blame_options_init");
2075  }
2076 }
2077 
2078 
2079 
2080 inline uint32_t blame_get_hunk_count(git_blame *blame) {
2081  auto __result = git_blame_get_hunk_count(blame);
2082  return __result;
2083 }
2084 
2085 
2086 
2087 inline const git_blame_hunk *blame_get_hunk_byindex(git_blame *blame, uint32_t index) {
2088  auto __result = git_blame_get_hunk_byindex(blame, index);
2089  return __result;
2090 }
2091 
2092 
2093 
2094 inline const git_blame_hunk *blame_get_hunk_byline(git_blame *blame, size_t lineno) {
2095  auto __result = git_blame_get_hunk_byline(blame, lineno);
2096  return __result;
2097 }
2098 
2099 
2100 
2101 inline git_blame *blame_file(git_repository *repo, const char *path, git_blame_options *options) {
2102  git_blame *out;
2103  auto __result = git_blame_file(&out, repo, path, options);
2104  if (__result < 0) {
2105  __GIT_THROW_EXCEPTION(__result, "git_blame_file");
2106  } else {
2107  return out;
2108  }
2109 }
2110 
2111 
2112 
2113 inline git_blame *blame_buffer(git_blame *reference, const char *buffer, size_t buffer_len) {
2114  git_blame *out;
2115  auto __result = git_blame_buffer(&out, reference, buffer, buffer_len);
2116  if (__result < 0) {
2117  __GIT_THROW_EXCEPTION(__result, "git_blame_buffer");
2118  } else {
2119  return out;
2120  }
2121 }
2122 
2123 
2124 
2125 inline void blame_free(git_blame *blame) {
2126  git_blame_free(blame);
2127 }
2128 
2129 
2130 
2131 inline git_reference *branch_create(git_repository *repo, const char *branch_name, const git_commit *target, int force) {
2132  git_reference *out;
2133  auto __result = git_branch_create(&out, repo, branch_name, target, force);
2134  if (__result < 0) {
2135  __GIT_THROW_EXCEPTION(__result, "git_branch_create");
2136  } else {
2137  return out;
2138  }
2139 }
2140 
2141 
2142 
2143 inline void branch_create_from_annotated(git_reference **ref_out, git_repository *repository, const char *branch_name, const git_annotated_commit *commit, int force) {
2144  auto __result = git_branch_create_from_annotated(ref_out, repository, branch_name, commit, force);
2145  if (__result < 0) {
2146  __GIT_THROW_EXCEPTION(__result, "git_branch_create_from_annotated");
2147  }
2148 }
2149 
2150 
2151 
2152 inline void branch_delete(git_reference *branch) {
2153  auto __result = git_branch_delete(branch);
2154  if (__result < 0) {
2155  __GIT_THROW_EXCEPTION(__result, "git_branch_delete");
2156  }
2157 }
2158 
2159 
2160 
2161 inline git_branch_iterator *branch_iterator_new(git_repository *repo, git_branch_t list_flags) {
2162  git_branch_iterator *out;
2163  auto __result = git_branch_iterator_new(&out, repo, list_flags);
2164  if (__result < 0) {
2165  __GIT_THROW_EXCEPTION(__result, "git_branch_iterator_new");
2166  } else {
2167  return out;
2168  }
2169 }
2170 
2171 
2172 
2173 inline git_reference *branch_next(git_branch_t *out_type, git_branch_iterator *iter) {
2174  git_reference *out;
2175  auto __result = git_branch_next(&out, out_type, iter);
2176  if (__result < 0) {
2177  __GIT_THROW_EXCEPTION(__result, "git_branch_next");
2178  } else {
2179  return out;
2180  }
2181 }
2182 
2183 
2184 
2185 inline void branch_iterator_free(git_branch_iterator *iter) {
2186  git_branch_iterator_free(iter);
2187 }
2188 
2189 
2190 
2191 inline git_reference *branch_move(git_reference *branch, const char *new_branch_name, int force) {
2192  git_reference *out;
2193  auto __result = git_branch_move(&out, branch, new_branch_name, force);
2194  if (__result < 0) {
2195  __GIT_THROW_EXCEPTION(__result, "git_branch_move");
2196  } else {
2197  return out;
2198  }
2199 }
2200 
2201 
2202 
2203 inline git_reference *branch_lookup(git_repository *repo, const char *branch_name, git_branch_t branch_type) {
2204  git_reference *out;
2205  auto __result = git_branch_lookup(&out, repo, branch_name, branch_type);
2206  if (__result < 0) {
2207  __GIT_THROW_EXCEPTION(__result, "git_branch_lookup");
2208  } else {
2209  return out;
2210  }
2211 }
2212 
2213 
2214 
2215 inline const char *branch_name(const git_reference *ref) {
2216  const char *out;
2217  auto __result = git_branch_name(&out, ref);
2218  if (__result < 0) {
2219  __GIT_THROW_EXCEPTION(__result, "git_branch_name");
2220  } else {
2221  return out;
2222  }
2223 }
2224 
2225 
2226 
2227 inline git_reference *branch_upstream(const git_reference *branch) {
2228  git_reference *out;
2229  auto __result = git_branch_upstream(&out, branch);
2230  if (__result < 0) {
2231  __GIT_THROW_EXCEPTION(__result, "git_branch_upstream");
2232  } else {
2233  return out;
2234  }
2235 }
2236 
2237 
2238 
2239 inline void branch_set_upstream(git_reference *branch, const char *branch_name) {
2240  auto __result = git_branch_set_upstream(branch, branch_name);
2241  if (__result < 0) {
2242  __GIT_THROW_EXCEPTION(__result, "git_branch_set_upstream");
2243  }
2244 }
2245 
2246 
2247 
2248 inline git_buf branch_upstream_name(git_repository *repo, const char *refname) {
2249  git_buf out;
2250  auto __result = git_branch_upstream_name(&out, repo, refname);
2251  if (__result < 0) {
2252  __GIT_THROW_EXCEPTION(__result, "git_branch_upstream_name");
2253  } else {
2254  return out;
2255  }
2256 }
2257 
2258 
2259 
2260 inline void branch_is_head(const git_reference *branch) {
2261  auto __result = git_branch_is_head(branch);
2262  if (__result < 0) {
2263  __GIT_THROW_EXCEPTION(__result, "git_branch_is_head");
2264  }
2265 }
2266 
2267 
2268 
2269 inline void branch_is_checked_out(const git_reference *branch) {
2270  auto __result = git_branch_is_checked_out(branch);
2271  if (__result < 0) {
2272  __GIT_THROW_EXCEPTION(__result, "git_branch_is_checked_out");
2273  }
2274 }
2275 
2276 
2277 
2278 inline git_buf branch_remote_name(git_repository *repo, const char *refname) {
2279  git_buf out;
2280  auto __result = git_branch_remote_name(&out, repo, refname);
2281  if (__result < 0) {
2282  __GIT_THROW_EXCEPTION(__result, "git_branch_remote_name");
2283  } else {
2284  return out;
2285  }
2286 }
2287 
2288 
2289 
2290 inline void branch_upstream_remote(git_buf *buf, git_repository *repo, const char *refname) {
2291  auto __result = git_branch_upstream_remote(buf, repo, refname);
2292  if (__result < 0) {
2293  __GIT_THROW_EXCEPTION(__result, "git_branch_upstream_remote");
2294  }
2295 }
2296 
2297 
2298 
2299 inline void branch_upstream_merge(git_buf *buf, git_repository *repo, const char *refname) {
2300  auto __result = git_branch_upstream_merge(buf, repo, refname);
2301  if (__result < 0) {
2302  __GIT_THROW_EXCEPTION(__result, "git_branch_upstream_merge");
2303  }
2304 }
2305 
2306 
2307 
2308 inline void branch_name_is_valid(int *valid, const char *name) {
2309  auto __result = git_branch_name_is_valid(valid, name);
2310  if (__result < 0) {
2311  __GIT_THROW_EXCEPTION(__result, "git_branch_name_is_valid");
2312  }
2313 }
2314 
2315 
2316 
2317 inline void checkout_options_init(git_checkout_options *opts, unsigned int version) {
2318  auto __result = git_checkout_options_init(opts, version);
2319  if (__result < 0) {
2320  __GIT_THROW_EXCEPTION(__result, "git_checkout_options_init");
2321  }
2322 }
2323 
2324 
2325 
2326 inline void checkout_head(git_repository *repo, const git_checkout_options *opts) {
2327  auto __result = git_checkout_head(repo, opts);
2328  if (__result < 0) {
2329  __GIT_THROW_EXCEPTION(__result, "git_checkout_head");
2330  }
2331 }
2332 
2333 
2334 
2335 inline void checkout_index(git_repository *repo, git_index *index, const git_checkout_options *opts) {
2336  auto __result = git_checkout_index(repo, index, opts);
2337  if (__result < 0) {
2338  __GIT_THROW_EXCEPTION(__result, "git_checkout_index");
2339  }
2340 }
2341 
2342 
2343 
2344 inline void checkout_tree(git_repository *repo, const git_object *treeish, const git_checkout_options *opts) {
2345  auto __result = git_checkout_tree(repo, treeish, opts);
2346  if (__result < 0) {
2347  __GIT_THROW_EXCEPTION(__result, "git_checkout_tree");
2348  }
2349 }
2350 
2351 
2352 
2353 inline void oidarray_dispose(git_oidarray *array) {
2354  git_oidarray_dispose(array);
2355 }
2356 
2357 
2358 
2359 inline void indexer_options_init(git_indexer_options *opts, unsigned int version) {
2360  auto __result = git_indexer_options_init(opts, version);
2361  if (__result < 0) {
2362  __GIT_THROW_EXCEPTION(__result, "git_indexer_options_init");
2363  }
2364 }
2365 
2366 
2367 
2368 inline git_indexer *indexer_new(const char *path, unsigned int mode, git_odb *odb, git_indexer_options *opts) {
2369  git_indexer *out;
2370  auto __result = git_indexer_new(&out, path, mode, odb, opts);
2371  if (__result < 0) {
2372  __GIT_THROW_EXCEPTION(__result, "git_indexer_new");
2373  } else {
2374  return out;
2375  }
2376 }
2377 
2378 
2379 
2380 inline void indexer_append(git_indexer *idx, const void *data, size_t size, git_indexer_progress *stats) {
2381  auto __result = git_indexer_append(idx, data, size, stats);
2382  if (__result < 0) {
2383  __GIT_THROW_EXCEPTION(__result, "git_indexer_append");
2384  }
2385 }
2386 
2387 
2388 
2389 inline void indexer_commit(git_indexer *idx, git_indexer_progress *stats) {
2390  auto __result = git_indexer_commit(idx, stats);
2391  if (__result < 0) {
2392  __GIT_THROW_EXCEPTION(__result, "git_indexer_commit");
2393  }
2394 }
2395 
2396 
2397 
2398 inline const git_oid *indexer_hash(const git_indexer *idx) {
2399  auto __result = git_indexer_hash(idx);
2400  return __result;
2401 }
2402 
2403 
2404 
2405 inline const char *indexer_name(const git_indexer *idx) {
2406  auto __result = git_indexer_name(idx);
2407  return __result;
2408 }
2409 
2410 
2411 
2412 inline void indexer_free(git_indexer *idx) {
2413  git_indexer_free(idx);
2414 }
2415 
2416 
2417 
2418 inline git_index *index_open(const char *index_path) {
2419  git_index *out;
2420  auto __result = git_index_open(&out, index_path);
2421  if (__result < 0) {
2422  __GIT_THROW_EXCEPTION(__result, "git_index_open");
2423  } else {
2424  return out;
2425  }
2426 }
2427 
2428 
2429 
2430 inline git_index *index_new() {
2431  git_index *out;
2432  auto __result = git_index_new(&out);
2433  if (__result < 0) {
2434  __GIT_THROW_EXCEPTION(__result, "git_index_new");
2435  } else {
2436  return out;
2437  }
2438 }
2439 
2440 
2441 
2442 inline void index_free(git_index *index) {
2443  git_index_free(index);
2444 }
2445 
2446 
2447 
2448 inline git_repository *index_owner(const git_index *index) {
2449  auto __result = git_index_owner(index);
2450  return __result;
2451 }
2452 
2453 
2454 
2455 inline void index_caps(const git_index *index) {
2456  auto __result = git_index_caps(index);
2457  if (__result < 0) {
2458  __GIT_THROW_EXCEPTION(__result, "git_index_caps");
2459  }
2460 }
2461 
2462 
2463 
2464 inline void index_set_caps(git_index *index, int caps) {
2465  auto __result = git_index_set_caps(index, caps);
2466  if (__result < 0) {
2467  __GIT_THROW_EXCEPTION(__result, "git_index_set_caps");
2468  }
2469 }
2470 
2471 
2472 
2473 inline unsigned int index_version(git_index *index) {
2474  auto __result = git_index_version(index);
2475  return __result;
2476 }
2477 
2478 
2479 
2480 inline void index_set_version(git_index *index, unsigned int version) {
2481  auto __result = git_index_set_version(index, version);
2482  if (__result < 0) {
2483  __GIT_THROW_EXCEPTION(__result, "git_index_set_version");
2484  }
2485 }
2486 
2487 
2488 
2489 inline void index_read(git_index *index, int force) {
2490  auto __result = git_index_read(index, force);
2491  if (__result < 0) {
2492  __GIT_THROW_EXCEPTION(__result, "git_index_read");
2493  }
2494 }
2495 
2496 
2497 
2498 inline void index_write(git_index *index) {
2499  auto __result = git_index_write(index);
2500  if (__result < 0) {
2501  __GIT_THROW_EXCEPTION(__result, "git_index_write");
2502  }
2503 }
2504 
2505 
2506 
2507 inline const char *index_path(const git_index *index) {
2508  auto __result = git_index_path(index);
2509  return __result;
2510 }
2511 
2512 
2513 
2514 inline const git_oid *index_checksum(git_index *index) {
2515  auto __result = git_index_checksum(index);
2516  return __result;
2517 }
2518 
2519 
2520 
2521 inline void index_read_tree(git_index *index, const git_tree *tree) {
2522  auto __result = git_index_read_tree(index, tree);
2523  if (__result < 0) {
2524  __GIT_THROW_EXCEPTION(__result, "git_index_read_tree");
2525  }
2526 }
2527 
2528 
2529 
2530 inline git_oid index_write_tree(git_index *index) {
2531  git_oid out;
2532  auto __result = git_index_write_tree(&out, index);
2533  if (__result < 0) {
2534  __GIT_THROW_EXCEPTION(__result, "git_index_write_tree");
2535  } else {
2536  return out;
2537  }
2538 }
2539 
2540 
2541 
2542 inline git_oid index_write_tree_to(git_index *index, git_repository *repo) {
2543  git_oid out;
2544  auto __result = git_index_write_tree_to(&out, index, repo);
2545  if (__result < 0) {
2546  __GIT_THROW_EXCEPTION(__result, "git_index_write_tree_to");
2547  } else {
2548  return out;
2549  }
2550 }
2551 
2552 
2553 
2554 inline size_t index_entrycount(const git_index *index) {
2555  auto __result = git_index_entrycount(index);
2556  return __result;
2557 }
2558 
2559 
2560 
2561 inline void index_clear(git_index *index) {
2562  auto __result = git_index_clear(index);
2563  if (__result < 0) {
2564  __GIT_THROW_EXCEPTION(__result, "git_index_clear");
2565  }
2566 }
2567 
2568 
2569 
2570 inline const git_index_entry *index_get_byindex(git_index *index, size_t n) {
2571  auto __result = git_index_get_byindex(index, n);
2572  return __result;
2573 }
2574 
2575 
2576 
2577 inline const git_index_entry *index_get_bypath(git_index *index, const char *path, int stage) {
2578  auto __result = git_index_get_bypath(index, path, stage);
2579  return __result;
2580 }
2581 
2582 
2583 
2584 inline void index_remove(git_index *index, const char *path, int stage) {
2585  auto __result = git_index_remove(index, path, stage);
2586  if (__result < 0) {
2587  __GIT_THROW_EXCEPTION(__result, "git_index_remove");
2588  }
2589 }
2590 
2591 
2592 
2593 inline void index_remove_directory(git_index *index, const char *dir, int stage) {
2594  auto __result = git_index_remove_directory(index, dir, stage);
2595  if (__result < 0) {
2596  __GIT_THROW_EXCEPTION(__result, "git_index_remove_directory");
2597  }
2598 }
2599 
2600 
2601 
2602 inline void index_add(git_index *index, const git_index_entry *source_entry) {
2603  auto __result = git_index_add(index, source_entry);
2604  if (__result < 0) {
2605  __GIT_THROW_EXCEPTION(__result, "git_index_add");
2606  }
2607 }
2608 
2609 
2610 
2611 inline void index_entry_stage(const git_index_entry *entry) {
2612  auto __result = git_index_entry_stage(entry);
2613  if (__result < 0) {
2614  __GIT_THROW_EXCEPTION(__result, "git_index_entry_stage");
2615  }
2616 }
2617 
2618 
2619 
2620 inline void index_entry_is_conflict(const git_index_entry *entry) {
2621  auto __result = git_index_entry_is_conflict(entry);
2622  if (__result < 0) {
2623  __GIT_THROW_EXCEPTION(__result, "git_index_entry_is_conflict");
2624  }
2625 }
2626 
2627 
2628 
2629 inline void index_iterator_new(git_index_iterator **iterator_out, git_index *index) {
2630  auto __result = git_index_iterator_new(iterator_out, index);
2631  if (__result < 0) {
2632  __GIT_THROW_EXCEPTION(__result, "git_index_iterator_new");
2633  }
2634 }
2635 
2636 
2637 
2638 inline const git_index_entry *index_iterator_next(git_index_iterator *iterator) {
2639  const git_index_entry *out;
2640  auto __result = git_index_iterator_next(&out, iterator);
2641  if (__result < 0) {
2642  __GIT_THROW_EXCEPTION(__result, "git_index_iterator_next");
2643  } else {
2644  return out;
2645  }
2646 }
2647 
2648 
2649 
2650 inline void index_iterator_free(git_index_iterator *iterator) {
2651  git_index_iterator_free(iterator);
2652 }
2653 
2654 
2655 
2656 inline void index_add_bypath(git_index *index, const char *path) {
2657  auto __result = git_index_add_bypath(index, path);
2658  if (__result < 0) {
2659  __GIT_THROW_EXCEPTION(__result, "git_index_add_bypath");
2660  }
2661 }
2662 
2663 
2664 
2665 inline void index_add_from_buffer(git_index *index, const git_index_entry *entry, const void *buffer, size_t len) {
2666  auto __result = git_index_add_from_buffer(index, entry, buffer, len);
2667  if (__result < 0) {
2668  __GIT_THROW_EXCEPTION(__result, "git_index_add_from_buffer");
2669  }
2670 }
2671 
2672 
2673 
2674 inline void index_remove_bypath(git_index *index, const char *path) {
2675  auto __result = git_index_remove_bypath(index, path);
2676  if (__result < 0) {
2677  __GIT_THROW_EXCEPTION(__result, "git_index_remove_bypath");
2678  }
2679 }
2680 
2681 
2682 
2683 inline void index_add_all(git_index *index, const git_strarray *pathspec, unsigned int flags, git_index_matched_path_cb callback, void *payload) {
2684  auto __result = git_index_add_all(index, pathspec, flags, callback, payload);
2685  if (__result < 0) {
2686  __GIT_THROW_EXCEPTION(__result, "git_index_add_all");
2687  }
2688 }
2689 
2690 
2691 
2692 inline void index_remove_all(git_index *index, const git_strarray *pathspec, git_index_matched_path_cb callback, void *payload) {
2693  auto __result = git_index_remove_all(index, pathspec, callback, payload);
2694  if (__result < 0) {
2695  __GIT_THROW_EXCEPTION(__result, "git_index_remove_all");
2696  }
2697 }
2698 
2699 
2700 
2701 inline void index_update_all(git_index *index, const git_strarray *pathspec, git_index_matched_path_cb callback, void *payload) {
2702  auto __result = git_index_update_all(index, pathspec, callback, payload);
2703  if (__result < 0) {
2704  __GIT_THROW_EXCEPTION(__result, "git_index_update_all");
2705  }
2706 }
2707 
2708 
2709 
2710 inline void index_find(size_t *at_pos, git_index *index, const char *path) {
2711  auto __result = git_index_find(at_pos, index, path);
2712  if (__result < 0) {
2713  __GIT_THROW_EXCEPTION(__result, "git_index_find");
2714  }
2715 }
2716 
2717 
2718 
2719 inline void index_find_prefix(size_t *at_pos, git_index *index, const char *prefix) {
2720  auto __result = git_index_find_prefix(at_pos, index, prefix);
2721  if (__result < 0) {
2722  __GIT_THROW_EXCEPTION(__result, "git_index_find_prefix");
2723  }
2724 }
2725 
2726 
2727 
2728 inline void index_conflict_add(git_index *index, const git_index_entry *ancestor_entry, const git_index_entry *our_entry, const git_index_entry *their_entry) {
2729  auto __result = git_index_conflict_add(index, ancestor_entry, our_entry, their_entry);
2730  if (__result < 0) {
2731  __GIT_THROW_EXCEPTION(__result, "git_index_conflict_add");
2732  }
2733 }
2734 
2735 
2736 
2737 inline void index_conflict_get(const git_index_entry **ancestor_out, const git_index_entry **our_out, const git_index_entry **their_out, git_index *index, const char *path) {
2738  auto __result = git_index_conflict_get(ancestor_out, our_out, their_out, index, path);
2739  if (__result < 0) {
2740  __GIT_THROW_EXCEPTION(__result, "git_index_conflict_get");
2741  }
2742 }
2743 
2744 
2745 
2746 inline void index_conflict_remove(git_index *index, const char *path) {
2747  auto __result = git_index_conflict_remove(index, path);
2748  if (__result < 0) {
2749  __GIT_THROW_EXCEPTION(__result, "git_index_conflict_remove");
2750  }
2751 }
2752 
2753 
2754 
2755 inline void index_conflict_cleanup(git_index *index) {
2756  auto __result = git_index_conflict_cleanup(index);
2757  if (__result < 0) {
2758  __GIT_THROW_EXCEPTION(__result, "git_index_conflict_cleanup");
2759  }
2760 }
2761 
2762 
2763 
2764 inline void index_has_conflicts(const git_index *index) {
2765  auto __result = git_index_has_conflicts(index);
2766  if (__result < 0) {
2767  __GIT_THROW_EXCEPTION(__result, "git_index_has_conflicts");
2768  }
2769 }
2770 
2771 
2772 
2773 inline void index_conflict_iterator_new(git_index_conflict_iterator **iterator_out, git_index *index) {
2774  auto __result = git_index_conflict_iterator_new(iterator_out, index);
2775  if (__result < 0) {
2776  __GIT_THROW_EXCEPTION(__result, "git_index_conflict_iterator_new");
2777  }
2778 }
2779 
2780 
2781 
2782 inline void index_conflict_next(const git_index_entry **ancestor_out, const git_index_entry **our_out, const git_index_entry **their_out, git_index_conflict_iterator *iterator) {
2783  auto __result = git_index_conflict_next(ancestor_out, our_out, their_out, iterator);
2784  if (__result < 0) {
2785  __GIT_THROW_EXCEPTION(__result, "git_index_conflict_next");
2786  }
2787 }
2788 
2789 
2790 
2791 inline void index_conflict_iterator_free(git_index_conflict_iterator *iterator) {
2792  git_index_conflict_iterator_free(iterator);
2793 }
2794 
2795 
2796 
2797 inline void merge_file_input_init(git_merge_file_input *opts, unsigned int version) {
2798  auto __result = git_merge_file_input_init(opts, version);
2799  if (__result < 0) {
2800  __GIT_THROW_EXCEPTION(__result, "git_merge_file_input_init");
2801  }
2802 }
2803 
2804 
2805 
2806 inline void merge_file_options_init(git_merge_file_options *opts, unsigned int version) {
2807  auto __result = git_merge_file_options_init(opts, version);
2808  if (__result < 0) {
2809  __GIT_THROW_EXCEPTION(__result, "git_merge_file_options_init");
2810  }
2811 }
2812 
2813 
2814 
2815 inline void merge_options_init(git_merge_options *opts, unsigned int version) {
2816  auto __result = git_merge_options_init(opts, version);
2817  if (__result < 0) {
2818  __GIT_THROW_EXCEPTION(__result, "git_merge_options_init");
2819  }
2820 }
2821 
2822 
2823 
2824 inline void merge_analysis(git_merge_analysis_t *analysis_out, git_merge_preference_t *preference_out, git_repository *repo, const git_annotated_commit **their_heads, size_t their_heads_len) {
2825  auto __result = git_merge_analysis(analysis_out, preference_out, repo, their_heads, their_heads_len);
2826  if (__result < 0) {
2827  __GIT_THROW_EXCEPTION(__result, "git_merge_analysis");
2828  }
2829 }
2830 
2831 
2832 
2833 inline void merge_analysis_for_ref(git_merge_analysis_t *analysis_out, git_merge_preference_t *preference_out, git_repository *repo, git_reference *our_ref, const git_annotated_commit **their_heads, size_t their_heads_len) {
2834  auto __result = git_merge_analysis_for_ref(analysis_out, preference_out, repo, our_ref, their_heads, their_heads_len);
2835  if (__result < 0) {
2836  __GIT_THROW_EXCEPTION(__result, "git_merge_analysis_for_ref");
2837  }
2838 }
2839 
2840 
2841 
2842 inline git_oid merge_base(git_repository *repo, const git_oid *one, const git_oid *two) {
2843  git_oid out;
2844  auto __result = git_merge_base(&out, repo, one, two);
2845  if (__result < 0) {
2846  __GIT_THROW_EXCEPTION(__result, "git_merge_base");
2847  } else {
2848  return out;
2849  }
2850 }
2851 
2852 
2853 
2854 inline git_oidarray merge_bases(git_repository *repo, const git_oid *one, const git_oid *two) {
2855  git_oidarray out;
2856  auto __result = git_merge_bases(&out, repo, one, two);
2857  if (__result < 0) {
2858  __GIT_THROW_EXCEPTION(__result, "git_merge_bases");
2859  } else {
2860  return out;
2861  }
2862 }
2863 
2864 
2865 
2866 inline git_oid merge_base_many(git_repository *repo, size_t length, const git_oid input_array[]) {
2867  git_oid out;
2868  auto __result = git_merge_base_many(&out, repo, length, input_array);
2869  if (__result < 0) {
2870  __GIT_THROW_EXCEPTION(__result, "git_merge_base_many");
2871  } else {
2872  return out;
2873  }
2874 }
2875 
2876 
2877 
2878 inline git_oidarray merge_bases_many(git_repository *repo, size_t length, const git_oid input_array[]) {
2879  git_oidarray out;
2880  auto __result = git_merge_bases_many(&out, repo, length, input_array);
2881  if (__result < 0) {
2882  __GIT_THROW_EXCEPTION(__result, "git_merge_bases_many");
2883  } else {
2884  return out;
2885  }
2886 }
2887 
2888 
2889 
2890 inline git_oid merge_base_octopus(git_repository *repo, size_t length, const git_oid input_array[]) {
2891  git_oid out;
2892  auto __result = git_merge_base_octopus(&out, repo, length, input_array);
2893  if (__result < 0) {
2894  __GIT_THROW_EXCEPTION(__result, "git_merge_base_octopus");
2895  } else {
2896  return out;
2897  }
2898 }
2899 
2900 
2901 
2902 inline git_merge_file_result merge_file(const git_merge_file_input *ancestor, const git_merge_file_input *ours, const git_merge_file_input *theirs, const git_merge_file_options *opts) {
2903  git_merge_file_result out;
2904  auto __result = git_merge_file(&out, ancestor, ours, theirs, opts);
2905  if (__result < 0) {
2906  __GIT_THROW_EXCEPTION(__result, "git_merge_file");
2907  } else {
2908  return out;
2909  }
2910 }
2911 
2912 
2913 
2914 inline git_merge_file_result merge_file_from_index(git_repository *repo, const git_index_entry *ancestor, const git_index_entry *ours, const git_index_entry *theirs, const git_merge_file_options *opts) {
2915  git_merge_file_result out;
2916  auto __result = git_merge_file_from_index(&out, repo, ancestor, ours, theirs, opts);
2917  if (__result < 0) {
2918  __GIT_THROW_EXCEPTION(__result, "git_merge_file_from_index");
2919  } else {
2920  return out;
2921  }
2922 }
2923 
2924 
2925 
2926 inline void merge_file_result_free(git_merge_file_result *result) {
2927  git_merge_file_result_free(result);
2928 }
2929 
2930 
2931 
2932 inline git_index *merge_trees(git_repository *repo, const git_tree *ancestor_tree, const git_tree *our_tree, const git_tree *their_tree, const git_merge_options *opts) {
2933  git_index *out;
2934  auto __result = git_merge_trees(&out, repo, ancestor_tree, our_tree, their_tree, opts);
2935  if (__result < 0) {
2936  __GIT_THROW_EXCEPTION(__result, "git_merge_trees");
2937  } else {
2938  return out;
2939  }
2940 }
2941 
2942 
2943 
2944 inline git_index *merge_commits(git_repository *repo, const git_commit *our_commit, const git_commit *their_commit, const git_merge_options *opts) {
2945  git_index *out;
2946  auto __result = git_merge_commits(&out, repo, our_commit, their_commit, opts);
2947  if (__result < 0) {
2948  __GIT_THROW_EXCEPTION(__result, "git_merge_commits");
2949  } else {
2950  return out;
2951  }
2952 }
2953 
2954 
2955 
2956 inline void merge(git_repository *repo, const git_annotated_commit **their_heads, size_t their_heads_len, const git_merge_options *merge_opts, const git_checkout_options *checkout_opts) {
2957  auto __result = git_merge(repo, their_heads, their_heads_len, merge_opts, checkout_opts);
2958  if (__result < 0) {
2959  __GIT_THROW_EXCEPTION(__result, "git_merge");
2960  }
2961 }
2962 
2963 
2964 
2965 inline void cherrypick_options_init(git_cherrypick_options *opts, unsigned int version) {
2966  auto __result = git_cherrypick_options_init(opts, version);
2967  if (__result < 0) {
2968  __GIT_THROW_EXCEPTION(__result, "git_cherrypick_options_init");
2969  }
2970 }
2971 
2972 
2973 
2974 inline git_index *cherrypick_commit(git_repository *repo, git_commit *cherrypick_commit, git_commit *our_commit, unsigned int mainline, const git_merge_options *merge_options) {
2975  git_index *out;
2976  auto __result = git_cherrypick_commit(&out, repo, cherrypick_commit, our_commit, mainline, merge_options);
2977  if (__result < 0) {
2978  __GIT_THROW_EXCEPTION(__result, "git_cherrypick_commit");
2979  } else {
2980  return out;
2981  }
2982 }
2983 
2984 
2985 
2986 inline void cherrypick(git_repository *repo, git_commit *commit, const git_cherrypick_options *cherrypick_options) {
2987  auto __result = git_cherrypick(repo, commit, cherrypick_options);
2988  if (__result < 0) {
2989  __GIT_THROW_EXCEPTION(__result, "git_cherrypick");
2990  }
2991 }
2992 
2993 
2994 
2995 inline void refspec_parse(git_refspec **refspec, const char *input, int is_fetch) {
2996  auto __result = git_refspec_parse(refspec, input, is_fetch);
2997  if (__result < 0) {
2998  __GIT_THROW_EXCEPTION(__result, "git_refspec_parse");
2999  }
3000 }
3001 
3002 
3003 
3004 inline void refspec_free(git_refspec *refspec) {
3005  git_refspec_free(refspec);
3006 }
3007 
3008 
3009 
3010 inline const char *refspec_src(const git_refspec *refspec) {
3011  auto __result = git_refspec_src(refspec);
3012  return __result;
3013 }
3014 
3015 
3016 
3017 inline const char *refspec_dst(const git_refspec *refspec) {
3018  auto __result = git_refspec_dst(refspec);
3019  return __result;
3020 }
3021 
3022 
3023 
3024 inline const char *refspec_string(const git_refspec *refspec) {
3025  auto __result = git_refspec_string(refspec);
3026  return __result;
3027 }
3028 
3029 
3030 
3031 inline void refspec_force(const git_refspec *refspec) {
3032  auto __result = git_refspec_force(refspec);
3033  if (__result < 0) {
3034  __GIT_THROW_EXCEPTION(__result, "git_refspec_force");
3035  }
3036 }
3037 
3038 
3039 
3040 inline git_direction refspec_direction(const git_refspec *spec) {
3041  auto __result = git_refspec_direction(spec);
3042  return __result;
3043 }
3044 
3045 
3046 
3047 inline void refspec_src_matches(const git_refspec *refspec, const char *refname) {
3048  auto __result = git_refspec_src_matches(refspec, refname);
3049  if (__result < 0) {
3050  __GIT_THROW_EXCEPTION(__result, "git_refspec_src_matches");
3051  }
3052 }
3053 
3054 
3055 
3056 inline void refspec_dst_matches(const git_refspec *refspec, const char *refname) {
3057  auto __result = git_refspec_dst_matches(refspec, refname);
3058  if (__result < 0) {
3059  __GIT_THROW_EXCEPTION(__result, "git_refspec_dst_matches");
3060  }
3061 }
3062 
3063 
3064 
3065 inline git_buf refspec_transform(const git_refspec *spec, const char *name) {
3066  git_buf out;
3067  auto __result = git_refspec_transform(&out, spec, name);
3068  if (__result < 0) {
3069  __GIT_THROW_EXCEPTION(__result, "git_refspec_transform");
3070  } else {
3071  return out;
3072  }
3073 }
3074 
3075 
3076 
3077 inline git_buf refspec_rtransform(const git_refspec *spec, const char *name) {
3078  git_buf out;
3079  auto __result = git_refspec_rtransform(&out, spec, name);
3080  if (__result < 0) {
3081  __GIT_THROW_EXCEPTION(__result, "git_refspec_rtransform");
3082  } else {
3083  return out;
3084  }
3085 }
3086 
3087 
3088 
3089 inline void credential_free(git_credential *cred) {
3090  git_credential_free(cred);
3091 }
3092 
3093 
3094 
3095 inline void credential_has_username(git_credential *cred) {
3096  auto __result = git_credential_has_username(cred);
3097  if (__result < 0) {
3098  __GIT_THROW_EXCEPTION(__result, "git_credential_has_username");
3099  }
3100 }
3101 
3102 
3103 
3104 inline const char *credential_get_username(git_credential *cred) {
3105  auto __result = git_credential_get_username(cred);
3106  return __result;
3107 }
3108 
3109 
3110 
3111 inline git_credential *credential_userpass_plaintext_new(const char *username, const char *password) {
3112  git_credential *out;
3113  auto __result = git_credential_userpass_plaintext_new(&out, username, password);
3114  if (__result < 0) {
3115  __GIT_THROW_EXCEPTION(__result, "git_credential_userpass_plaintext_new");
3116  } else {
3117  return out;
3118  }
3119 }
3120 
3121 
3122 
3123 inline git_credential *credential_default_new() {
3124  git_credential *out;
3125  auto __result = git_credential_default_new(&out);
3126  if (__result < 0) {
3127  __GIT_THROW_EXCEPTION(__result, "git_credential_default_new");
3128  } else {
3129  return out;
3130  }
3131 }
3132 
3133 
3134 
3135 inline git_credential *credential_username_new(const char *username) {
3136  git_credential *out;
3137  auto __result = git_credential_username_new(&out, username);
3138  if (__result < 0) {
3139  __GIT_THROW_EXCEPTION(__result, "git_credential_username_new");
3140  } else {
3141  return out;
3142  }
3143 }
3144 
3145 
3146 
3147 inline git_credential *credential_ssh_key_new(const char *username, const char *publickey, const char *privatekey, const char *passphrase) {
3148  git_credential *out;
3149  auto __result = git_credential_ssh_key_new(&out, username, publickey, privatekey, passphrase);
3150  if (__result < 0) {
3151  __GIT_THROW_EXCEPTION(__result, "git_credential_ssh_key_new");
3152  } else {
3153  return out;
3154  }
3155 }
3156 
3157 
3158 
3159 inline git_credential *credential_ssh_key_memory_new(const char *username, const char *publickey, const char *privatekey, const char *passphrase) {
3160  git_credential *out;
3161  auto __result = git_credential_ssh_key_memory_new(&out, username, publickey, privatekey, passphrase);
3162  if (__result < 0) {
3163  __GIT_THROW_EXCEPTION(__result, "git_credential_ssh_key_memory_new");
3164  } else {
3165  return out;
3166  }
3167 }
3168 
3169 
3170 
3171 inline git_credential *credential_ssh_interactive_new(const char *username, git_credential_ssh_interactive_cb prompt_callback, void *payload) {
3172  git_credential *out;
3173  auto __result = git_credential_ssh_interactive_new(&out, username, prompt_callback, payload);
3174  if (__result < 0) {
3175  __GIT_THROW_EXCEPTION(__result, "git_credential_ssh_interactive_new");
3176  } else {
3177  return out;
3178  }
3179 }
3180 
3181 
3182 
3183 inline git_credential *credential_ssh_key_from_agent(const char *username) {
3184  git_credential *out;
3185  auto __result = git_credential_ssh_key_from_agent(&out, username);
3186  if (__result < 0) {
3187  __GIT_THROW_EXCEPTION(__result, "git_credential_ssh_key_from_agent");
3188  } else {
3189  return out;
3190  }
3191 }
3192 
3193 
3194 
3195 inline git_credential *credential_ssh_custom_new(const char *username, const char *publickey, size_t publickey_len, git_credential_sign_cb sign_callback, void *payload) {
3196  git_credential *out;
3197  auto __result = git_credential_ssh_custom_new(&out, username, publickey, publickey_len, sign_callback, payload);
3198  if (__result < 0) {
3199  __GIT_THROW_EXCEPTION(__result, "git_credential_ssh_custom_new");
3200  } else {
3201  return out;
3202  }
3203 }
3204 
3205 
3206 
3207 inline git_packbuilder *packbuilder_new(git_repository *repo) {
3208  git_packbuilder *out;
3209  auto __result = git_packbuilder_new(&out, repo);
3210  if (__result < 0) {
3211  __GIT_THROW_EXCEPTION(__result, "git_packbuilder_new");
3212  } else {
3213  return out;
3214  }
3215 }
3216 
3217 
3218 
3219 inline unsigned int packbuilder_set_threads(git_packbuilder *pb, unsigned int n) {
3220  auto __result = git_packbuilder_set_threads(pb, n);
3221  return __result;
3222 }
3223 
3224 
3225 
3226 inline void packbuilder_insert(git_packbuilder *pb, const git_oid *id, const char *name) {
3227  auto __result = git_packbuilder_insert(pb, id, name);
3228  if (__result < 0) {
3229  __GIT_THROW_EXCEPTION(__result, "git_packbuilder_insert");
3230  }
3231 }
3232 
3233 
3234 
3235 inline void packbuilder_insert_tree(git_packbuilder *pb, const git_oid *id) {
3236  auto __result = git_packbuilder_insert_tree(pb, id);
3237  if (__result < 0) {
3238  __GIT_THROW_EXCEPTION(__result, "git_packbuilder_insert_tree");
3239  }
3240 }
3241 
3242 
3243 
3244 inline void packbuilder_insert_commit(git_packbuilder *pb, const git_oid *id) {
3245  auto __result = git_packbuilder_insert_commit(pb, id);
3246  if (__result < 0) {
3247  __GIT_THROW_EXCEPTION(__result, "git_packbuilder_insert_commit");
3248  }
3249 }
3250 
3251 
3252 
3253 inline void packbuilder_insert_walk(git_packbuilder *pb, git_revwalk *walk) {
3254  auto __result = git_packbuilder_insert_walk(pb, walk);
3255  if (__result < 0) {
3256  __GIT_THROW_EXCEPTION(__result, "git_packbuilder_insert_walk");
3257  }
3258 }
3259 
3260 
3261 
3262 inline void packbuilder_insert_recur(git_packbuilder *pb, const git_oid *id, const char *name) {
3263  auto __result = git_packbuilder_insert_recur(pb, id, name);
3264  if (__result < 0) {
3265  __GIT_THROW_EXCEPTION(__result, "git_packbuilder_insert_recur");
3266  }
3267 }
3268 
3269 
3270 
3271 inline void packbuilder_write_buf(git_buf *buf, git_packbuilder *pb) {
3272  auto __result = git_packbuilder_write_buf(buf, pb);
3273  if (__result < 0) {
3274  __GIT_THROW_EXCEPTION(__result, "git_packbuilder_write_buf");
3275  }
3276 }
3277 
3278 
3279 
3280 inline void packbuilder_write(git_packbuilder *pb, const char *path, unsigned int mode, git_indexer_progress_cb progress_cb, void *progress_cb_payload) {
3281  auto __result = git_packbuilder_write(pb, path, mode, progress_cb, progress_cb_payload);
3282  if (__result < 0) {
3283  __GIT_THROW_EXCEPTION(__result, "git_packbuilder_write");
3284  }
3285 }
3286 
3287 
3288 
3289 inline const git_oid *packbuilder_hash(git_packbuilder *pb) {
3290  auto __result = git_packbuilder_hash(pb);
3291  return __result;
3292 }
3293 
3294 
3295 
3296 inline const char *packbuilder_name(git_packbuilder *pb) {
3297  auto __result = git_packbuilder_name(pb);
3298  return __result;
3299 }
3300 
3301 
3302 
3303 inline void packbuilder_foreach(git_packbuilder *pb, git_packbuilder_foreach_cb cb, void *payload) {
3304  auto __result = git_packbuilder_foreach(pb, cb, payload);
3305  if (__result < 0) {
3306  __GIT_THROW_EXCEPTION(__result, "git_packbuilder_foreach");
3307  }
3308 }
3309 
3310 
3311 
3312 inline size_t packbuilder_object_count(git_packbuilder *pb) {
3313  auto __result = git_packbuilder_object_count(pb);
3314  return __result;
3315 }
3316 
3317 
3318 
3319 inline size_t packbuilder_written(git_packbuilder *pb) {
3320  auto __result = git_packbuilder_written(pb);
3321  return __result;
3322 }
3323 
3324 
3325 
3326 inline void packbuilder_set_callbacks(git_packbuilder *pb, git_packbuilder_progress progress_cb, void *progress_cb_payload) {
3327  auto __result = git_packbuilder_set_callbacks(pb, progress_cb, progress_cb_payload);
3328  if (__result < 0) {
3329  __GIT_THROW_EXCEPTION(__result, "git_packbuilder_set_callbacks");
3330  }
3331 }
3332 
3333 
3334 
3335 inline void packbuilder_free(git_packbuilder *pb) {
3336  git_packbuilder_free(pb);
3337 }
3338 
3339 
3340 
3341 inline void proxy_options_init(git_proxy_options *opts, unsigned int version) {
3342  auto __result = git_proxy_options_init(opts, version);
3343  if (__result < 0) {
3344  __GIT_THROW_EXCEPTION(__result, "git_proxy_options_init");
3345  }
3346 }
3347 
3348 
3349 
3350 inline git_remote *remote_create(git_repository *repo, const char *name, const char *url) {
3351  git_remote *out;
3352  auto __result = git_remote_create(&out, repo, name, url);
3353  if (__result < 0) {
3354  __GIT_THROW_EXCEPTION(__result, "git_remote_create");
3355  } else {
3356  return out;
3357  }
3358 }
3359 
3360 
3361 
3362 inline void remote_create_options_init(git_remote_create_options *opts, unsigned int version) {
3363  auto __result = git_remote_create_options_init(opts, version);
3364  if (__result < 0) {
3365  __GIT_THROW_EXCEPTION(__result, "git_remote_create_options_init");
3366  }
3367 }
3368 
3369 
3370 
3371 inline git_remote *remote_create_with_opts(const char *url, const git_remote_create_options *opts) {
3372  git_remote *out;
3373  auto __result = git_remote_create_with_opts(&out, url, opts);
3374  if (__result < 0) {
3375  __GIT_THROW_EXCEPTION(__result, "git_remote_create_with_opts");
3376  } else {
3377  return out;
3378  }
3379 }
3380 
3381 
3382 
3383 inline git_remote *remote_create_with_fetchspec(git_repository *repo, const char *name, const char *url, const char *fetch) {
3384  git_remote *out;
3385  auto __result = git_remote_create_with_fetchspec(&out, repo, name, url, fetch);
3386  if (__result < 0) {
3387  __GIT_THROW_EXCEPTION(__result, "git_remote_create_with_fetchspec");
3388  } else {
3389  return out;
3390  }
3391 }
3392 
3393 
3394 
3395 inline git_remote *remote_create_anonymous(git_repository *repo, const char *url) {
3396  git_remote *out;
3397  auto __result = git_remote_create_anonymous(&out, repo, url);
3398  if (__result < 0) {
3399  __GIT_THROW_EXCEPTION(__result, "git_remote_create_anonymous");
3400  } else {
3401  return out;
3402  }
3403 }
3404 
3405 
3406 
3407 inline git_remote *remote_create_detached(const char *url) {
3408  git_remote *out;
3409  auto __result = git_remote_create_detached(&out, url);
3410  if (__result < 0) {
3411  __GIT_THROW_EXCEPTION(__result, "git_remote_create_detached");
3412  } else {
3413  return out;
3414  }
3415 }
3416 
3417 
3418 
3419 inline git_remote *remote_lookup(git_repository *repo, const char *name) {
3420  git_remote *out;
3421  auto __result = git_remote_lookup(&out, repo, name);
3422  if (__result < 0) {
3423  __GIT_THROW_EXCEPTION(__result, "git_remote_lookup");
3424  } else {
3425  return out;
3426  }
3427 }
3428 
3429 
3430 
3431 inline void remote_dup(git_remote **dest, git_remote *source) {
3432  auto __result = git_remote_dup(dest, source);
3433  if (__result < 0) {
3434  __GIT_THROW_EXCEPTION(__result, "git_remote_dup");
3435  }
3436 }
3437 
3438 
3439 
3440 inline git_repository *remote_owner(const git_remote *remote) {
3441  auto __result = git_remote_owner(remote);
3442  return __result;
3443 }
3444 
3445 
3446 
3447 inline const char *remote_name(const git_remote *remote) {
3448  auto __result = git_remote_name(remote);
3449  return __result;
3450 }
3451 
3452 
3453 
3454 inline const char *remote_url(const git_remote *remote) {
3455  auto __result = git_remote_url(remote);
3456  return __result;
3457 }
3458 
3459 
3460 
3461 inline const char *remote_pushurl(const git_remote *remote) {
3462  auto __result = git_remote_pushurl(remote);
3463  return __result;
3464 }
3465 
3466 
3467 
3468 inline void remote_set_url(git_repository *repo, const char *remote, const char *url) {
3469  auto __result = git_remote_set_url(repo, remote, url);
3470  if (__result < 0) {
3471  __GIT_THROW_EXCEPTION(__result, "git_remote_set_url");
3472  }
3473 }
3474 
3475 
3476 
3477 inline void remote_set_pushurl(git_repository *repo, const char *remote, const char *url) {
3478  auto __result = git_remote_set_pushurl(repo, remote, url);
3479  if (__result < 0) {
3480  __GIT_THROW_EXCEPTION(__result, "git_remote_set_pushurl");
3481  }
3482 }
3483 
3484 
3485 
3486 inline void remote_set_instance_url(git_remote *remote, const char *url) {
3487  auto __result = git_remote_set_instance_url(remote, url);
3488  if (__result < 0) {
3489  __GIT_THROW_EXCEPTION(__result, "git_remote_set_instance_url");
3490  }
3491 }
3492 
3493 
3494 
3495 inline void remote_set_instance_pushurl(git_remote *remote, const char *url) {
3496  auto __result = git_remote_set_instance_pushurl(remote, url);
3497  if (__result < 0) {
3498  __GIT_THROW_EXCEPTION(__result, "git_remote_set_instance_pushurl");
3499  }
3500 }
3501 
3502 
3503 
3504 inline void remote_add_fetch(git_repository *repo, const char *remote, const char *refspec) {
3505  auto __result = git_remote_add_fetch(repo, remote, refspec);
3506  if (__result < 0) {
3507  __GIT_THROW_EXCEPTION(__result, "git_remote_add_fetch");
3508  }
3509 }
3510 
3511 
3512 
3513 inline void remote_get_fetch_refspecs(git_strarray *array, const git_remote *remote) {
3514  auto __result = git_remote_get_fetch_refspecs(array, remote);
3515  if (__result < 0) {
3516  __GIT_THROW_EXCEPTION(__result, "git_remote_get_fetch_refspecs");
3517  }
3518 }
3519 
3520 
3521 
3522 inline void remote_add_push(git_repository *repo, const char *remote, const char *refspec) {
3523  auto __result = git_remote_add_push(repo, remote, refspec);
3524  if (__result < 0) {
3525  __GIT_THROW_EXCEPTION(__result, "git_remote_add_push");
3526  }
3527 }
3528 
3529 
3530 
3531 inline void remote_get_push_refspecs(git_strarray *array, const git_remote *remote) {
3532  auto __result = git_remote_get_push_refspecs(array, remote);
3533  if (__result < 0) {
3534  __GIT_THROW_EXCEPTION(__result, "git_remote_get_push_refspecs");
3535  }
3536 }
3537 
3538 
3539 
3540 inline size_t remote_refspec_count(const git_remote *remote) {
3541  auto __result = git_remote_refspec_count(remote);
3542  return __result;
3543 }
3544 
3545 
3546 
3547 inline const git_refspec *remote_get_refspec(const git_remote *remote, size_t n) {
3548  auto __result = git_remote_get_refspec(remote, n);
3549  return __result;
3550 }
3551 
3552 
3553 
3554 inline const git_remote_head **remote_ls(size_t *size, git_remote *remote) {
3555  const git_remote_head **out;
3556  auto __result = git_remote_ls(&out, size, remote);
3557  if (__result < 0) {
3558  __GIT_THROW_EXCEPTION(__result, "git_remote_ls");
3559  } else {
3560  return out;
3561  }
3562 }
3563 
3564 
3565 
3566 inline void remote_connected(const git_remote *remote) {
3567  auto __result = git_remote_connected(remote);
3568  if (__result < 0) {
3569  __GIT_THROW_EXCEPTION(__result, "git_remote_connected");
3570  }
3571 }
3572 
3573 
3574 
3575 inline void remote_stop(git_remote *remote) {
3576  auto __result = git_remote_stop(remote);
3577  if (__result < 0) {
3578  __GIT_THROW_EXCEPTION(__result, "git_remote_stop");
3579  }
3580 }
3581 
3582 
3583 
3584 inline void remote_disconnect(git_remote *remote) {
3585  auto __result = git_remote_disconnect(remote);
3586  if (__result < 0) {
3587  __GIT_THROW_EXCEPTION(__result, "git_remote_disconnect");
3588  }
3589 }
3590 
3591 
3592 
3593 inline void remote_free(git_remote *remote) {
3594  git_remote_free(remote);
3595 }
3596 
3597 
3598 
3599 inline git_strarray remote_list(git_repository *repo) {
3600  git_strarray out;
3601  auto __result = git_remote_list(&out, repo);
3602  if (__result < 0) {
3603  __GIT_THROW_EXCEPTION(__result, "git_remote_list");
3604  } else {
3605  return out;
3606  }
3607 }
3608 
3609 
3610 
3611 inline void remote_init_callbacks(git_remote_callbacks *opts, unsigned int version) {
3612  auto __result = git_remote_init_callbacks(opts, version);
3613  if (__result < 0) {
3614  __GIT_THROW_EXCEPTION(__result, "git_remote_init_callbacks");
3615  }
3616 }
3617 
3618 
3619 
3620 inline void fetch_options_init(git_fetch_options *opts, unsigned int version) {
3621  auto __result = git_fetch_options_init(opts, version);
3622  if (__result < 0) {
3623  __GIT_THROW_EXCEPTION(__result, "git_fetch_options_init");
3624  }
3625 }
3626 
3627 
3628 
3629 inline void push_options_init(git_push_options *opts, unsigned int version) {
3630  auto __result = git_push_options_init(opts, version);
3631  if (__result < 0) {
3632  __GIT_THROW_EXCEPTION(__result, "git_push_options_init");
3633  }
3634 }
3635 
3636 
3637 
3638 inline void remote_connect_options_init(git_remote_connect_options *opts, unsigned int version) {
3639  auto __result = git_remote_connect_options_init(opts, version);
3640  if (__result < 0) {
3641  __GIT_THROW_EXCEPTION(__result, "git_remote_connect_options_init");
3642  }
3643 }
3644 
3645 
3646 
3647 inline void remote_connect(git_remote *remote, git_direction direction, const git_remote_callbacks *callbacks, const git_proxy_options *proxy_opts, const git_strarray *custom_headers) {
3648  auto __result = git_remote_connect(remote, direction, callbacks, proxy_opts, custom_headers);
3649  if (__result < 0) {
3650  __GIT_THROW_EXCEPTION(__result, "git_remote_connect");
3651  }
3652 }
3653 
3654 
3655 
3656 inline void remote_connect_ext(git_remote *remote, git_direction direction, const git_remote_connect_options *opts) {
3657  auto __result = git_remote_connect_ext(remote, direction, opts);
3658  if (__result < 0) {
3659  __GIT_THROW_EXCEPTION(__result, "git_remote_connect_ext");
3660  }
3661 }
3662 
3663 
3664 
3665 inline void remote_download(git_remote *remote, const git_strarray *refspecs, const git_fetch_options *opts) {
3666  auto __result = git_remote_download(remote, refspecs, opts);
3667  if (__result < 0) {
3668  __GIT_THROW_EXCEPTION(__result, "git_remote_download");
3669  }
3670 }
3671 
3672 
3673 
3674 inline void remote_upload(git_remote *remote, const git_strarray *refspecs, const git_push_options *opts) {
3675  auto __result = git_remote_upload(remote, refspecs, opts);
3676  if (__result < 0) {
3677  __GIT_THROW_EXCEPTION(__result, "git_remote_upload");
3678  }
3679 }
3680 
3681 
3682 
3683 inline void remote_update_tips(git_remote *remote, const git_remote_callbacks *callbacks, int update_fetchhead, git_remote_autotag_option_t download_tags, const char *reflog_message) {
3684  auto __result = git_remote_update_tips(remote, callbacks, update_fetchhead, download_tags, reflog_message);
3685  if (__result < 0) {
3686  __GIT_THROW_EXCEPTION(__result, "git_remote_update_tips");
3687  }
3688 }
3689 
3690 
3691 
3692 inline void remote_fetch(git_remote *remote, const git_strarray *refspecs, const git_fetch_options *opts, const char *reflog_message) {
3693  auto __result = git_remote_fetch(remote, refspecs, opts, reflog_message);
3694  if (__result < 0) {
3695  __GIT_THROW_EXCEPTION(__result, "git_remote_fetch");
3696  }
3697 }
3698 
3699 
3700 
3701 inline void remote_prune(git_remote *remote, const git_remote_callbacks *callbacks) {
3702  auto __result = git_remote_prune(remote, callbacks);
3703  if (__result < 0) {
3704  __GIT_THROW_EXCEPTION(__result, "git_remote_prune");
3705  }
3706 }
3707 
3708 
3709 
3710 inline void remote_push(git_remote *remote, const git_strarray *refspecs, const git_push_options *opts) {
3711  auto __result = git_remote_push(remote, refspecs, opts);
3712  if (__result < 0) {
3713  __GIT_THROW_EXCEPTION(__result, "git_remote_push");
3714  }
3715 }
3716 
3717 
3718 
3719 inline const git_indexer_progress *remote_stats(git_remote *remote) {
3720  auto __result = git_remote_stats(remote);
3721  return __result;
3722 }
3723 
3724 
3725 
3726 inline git_remote_autotag_option_t remote_autotag(const git_remote *remote) {
3727  auto __result = git_remote_autotag(remote);
3728  return __result;
3729 }
3730 
3731 
3732 
3733 inline void remote_set_autotag(git_repository *repo, const char *remote, git_remote_autotag_option_t value) {
3734  auto __result = git_remote_set_autotag(repo, remote, value);
3735  if (__result < 0) {
3736  __GIT_THROW_EXCEPTION(__result, "git_remote_set_autotag");
3737  }
3738 }
3739 
3740 
3741 
3742 inline void remote_prune_refs(const git_remote *remote) {
3743  auto __result = git_remote_prune_refs(remote);
3744  if (__result < 0) {
3745  __GIT_THROW_EXCEPTION(__result, "git_remote_prune_refs");
3746  }
3747 }
3748 
3749 
3750 
3751 inline void remote_rename(git_strarray *problems, git_repository *repo, const char *name, const char *new_name) {
3752  auto __result = git_remote_rename(problems, repo, name, new_name);
3753  if (__result < 0) {
3754  __GIT_THROW_EXCEPTION(__result, "git_remote_rename");
3755  }
3756 }
3757 
3758 
3759 
3760 inline void remote_name_is_valid(int *valid, const char *remote_name) {
3761  auto __result = git_remote_name_is_valid(valid, remote_name);
3762  if (__result < 0) {
3763  __GIT_THROW_EXCEPTION(__result, "git_remote_name_is_valid");
3764  }
3765 }
3766 
3767 
3768 
3769 inline void remote_delete(git_repository *repo, const char *name) {
3770  auto __result = git_remote_delete(repo, name);
3771  if (__result < 0) {
3772  __GIT_THROW_EXCEPTION(__result, "git_remote_delete");
3773  }
3774 }
3775 
3776 
3777 
3778 inline git_buf remote_default_branch(git_remote *remote) {
3779  git_buf out;
3780  auto __result = git_remote_default_branch(&out, remote);
3781  if (__result < 0) {
3782  __GIT_THROW_EXCEPTION(__result, "git_remote_default_branch");
3783  } else {
3784  return out;
3785  }
3786 }
3787 
3788 
3789 
3790 inline void clone_options_init(git_clone_options *opts, unsigned int version) {
3791  auto __result = git_clone_options_init(opts, version);
3792  if (__result < 0) {
3793  __GIT_THROW_EXCEPTION(__result, "git_clone_options_init");
3794  }
3795 }
3796 
3797 
3798 
3799 inline git_repository *clone(const char *url, const char *local_path, const git_clone_options *options) {
3800  git_repository *out;
3801  auto __result = git_clone(&out, url, local_path, options);
3802  if (__result < 0) {
3803  __GIT_THROW_EXCEPTION(__result, "git_clone");
3804  } else {
3805  return out;
3806  }
3807 }
3808 
3809 
3810 
3811 inline git_commit *commit_lookup(git_repository *repo, const git_oid *id) {
3812  git_commit *commit;
3813  auto __result = git_commit_lookup(&commit, repo, id);
3814  if (__result < 0) {
3815  __GIT_THROW_EXCEPTION(__result, "git_commit_lookup");
3816  } else {
3817  return commit;
3818  }
3819 }
3820 
3821 
3822 
3823 inline git_commit *commit_lookup_prefix(git_repository *repo, const git_oid *id, size_t len) {
3824  git_commit *commit;
3825  auto __result = git_commit_lookup_prefix(&commit, repo, id, len);
3826  if (__result < 0) {
3827  __GIT_THROW_EXCEPTION(__result, "git_commit_lookup_prefix");
3828  } else {
3829  return commit;
3830  }
3831 }
3832 
3833 
3834 
3835 inline void commit_free(git_commit *commit) {
3836  git_commit_free(commit);
3837 }
3838 
3839 
3840 
3841 inline const git_oid *commit_id(const git_commit *commit) {
3842  auto __result = git_commit_id(commit);
3843  return __result;
3844 }
3845 
3846 
3847 
3848 inline git_repository *commit_owner(const git_commit *commit) {
3849  auto __result = git_commit_owner(commit);
3850  return __result;
3851 }
3852 
3853 
3854 
3855 inline const char *commit_message_encoding(const git_commit *commit) {
3856  auto __result = git_commit_message_encoding(commit);
3857  return __result;
3858 }
3859 
3860 
3861 
3862 inline const char *commit_message(const git_commit *commit) {
3863  auto __result = git_commit_message(commit);
3864  return __result;
3865 }
3866 
3867 
3868 
3869 inline const char *commit_message_raw(const git_commit *commit) {
3870  auto __result = git_commit_message_raw(commit);
3871  return __result;
3872 }
3873 
3874 
3875 
3876 inline const char *commit_summary(git_commit *commit) {
3877  auto __result = git_commit_summary(commit);
3878  return __result;
3879 }
3880 
3881 
3882 
3883 inline const char *commit_body(git_commit *commit) {
3884  auto __result = git_commit_body(commit);
3885  return __result;
3886 }
3887 
3888 
3889 
3890 inline git_time_t commit_time(const git_commit *commit) {
3891  auto __result = git_commit_time(commit);
3892  return __result;
3893 }
3894 
3895 
3896 
3897 inline int commit_time_offset(const git_commit *commit) {
3898  auto __result = git_commit_time_offset(commit);
3899  return __result;
3900 }
3901 
3902 
3903 
3904 inline const git_signature *commit_committer(const git_commit *commit) {
3905  auto __result = git_commit_committer(commit);
3906  return __result;
3907 }
3908 
3909 
3910 
3911 inline const git_signature *commit_author(const git_commit *commit) {
3912  auto __result = git_commit_author(commit);
3913  return __result;
3914 }
3915 
3916 
3917 
3918 inline git_signature *commit_committer_with_mailmap(const git_commit *commit, const git_mailmap *mailmap) {
3919  git_signature *out;
3920  auto __result = git_commit_committer_with_mailmap(&out, commit, mailmap);
3921  if (__result < 0) {
3922  __GIT_THROW_EXCEPTION(__result, "git_commit_committer_with_mailmap");
3923  } else {
3924  return out;
3925  }
3926 }
3927 
3928 
3929 
3930 inline git_signature *commit_author_with_mailmap(const git_commit *commit, const git_mailmap *mailmap) {
3931  git_signature *out;
3932  auto __result = git_commit_author_with_mailmap(&out, commit, mailmap);
3933  if (__result < 0) {
3934  __GIT_THROW_EXCEPTION(__result, "git_commit_author_with_mailmap");
3935  } else {
3936  return out;
3937  }
3938 }
3939 
3940 
3941 
3942 inline const char *commit_raw_header(const git_commit *commit) {
3943  auto __result = git_commit_raw_header(commit);
3944  return __result;
3945 }
3946 
3947 
3948 
3949 inline git_tree *commit_tree(const git_commit *commit) {
3950  git_tree *tree_out;
3951  auto __result = git_commit_tree(&tree_out, commit);
3952  if (__result < 0) {
3953  __GIT_THROW_EXCEPTION(__result, "git_commit_tree");
3954  } else {
3955  return tree_out;
3956  }
3957 }
3958 
3959 
3960 
3961 inline const git_oid *commit_tree_id(const git_commit *commit) {
3962  auto __result = git_commit_tree_id(commit);
3963  return __result;
3964 }
3965 
3966 
3967 
3968 inline unsigned int commit_parentcount(const git_commit *commit) {
3969  auto __result = git_commit_parentcount(commit);
3970  return __result;
3971 }
3972 
3973 
3974 
3975 inline git_commit *commit_parent(const git_commit *commit, unsigned int n) {
3976  git_commit *out;
3977  auto __result = git_commit_parent(&out, commit, n);
3978  if (__result < 0) {
3979  __GIT_THROW_EXCEPTION(__result, "git_commit_parent");
3980  } else {
3981  return out;
3982  }
3983 }
3984 
3985 
3986 
3987 inline const git_oid *commit_parent_id(const git_commit *commit, unsigned int n) {
3988  auto __result = git_commit_parent_id(commit, n);
3989  return __result;
3990 }
3991 
3992 
3993 
3994 inline void commit_nth_gen_ancestor(git_commit **ancestor, const git_commit *commit, unsigned int n) {
3995  auto __result = git_commit_nth_gen_ancestor(ancestor, commit, n);
3996  if (__result < 0) {
3997  __GIT_THROW_EXCEPTION(__result, "git_commit_nth_gen_ancestor");
3998  }
3999 }
4000 
4001 
4002 
4003 inline git_buf commit_header_field(const git_commit *commit, const char *field) {
4004  git_buf out;
4005  auto __result = git_commit_header_field(&out, commit, field);
4006  if (__result < 0) {
4007  __GIT_THROW_EXCEPTION(__result, "git_commit_header_field");
4008  } else {
4009  return out;
4010  }
4011 }
4012 
4013 
4014 
4015 inline void commit_extract_signature(git_buf *signature, git_buf *signed_data, git_repository *repo, git_oid *commit_id, const char *field) {
4016  auto __result = git_commit_extract_signature(signature, signed_data, repo, commit_id, field);
4017  if (__result < 0) {
4018  __GIT_THROW_EXCEPTION(__result, "git_commit_extract_signature");
4019  }
4020 }
4021 
4022 
4023 
4024 inline void commit_create(git_oid *id, git_repository *repo, const char *update_ref, const git_signature *author, const git_signature *committer, const char *message_encoding, const char *message, const git_tree *tree, size_t parent_count, const git_commit *parents[]) {
4025  auto __result = git_commit_create(id, repo, update_ref, author, committer, message_encoding, message, tree, parent_count, parents);
4026  if (__result < 0) {
4027  __GIT_THROW_EXCEPTION(__result, "git_commit_create");
4028  }
4029 }
4030 
4031 
4032 
4033 inline void commit_create_v(git_oid *id, git_repository *repo, const char *update_ref, const git_signature *author, const git_signature *committer, const char *message_encoding, const char *message, const git_tree *tree, size_t parent_count) {
4034  auto __result = git_commit_create_v(id, repo, update_ref, author, committer, message_encoding, message, tree, parent_count);
4035  if (__result < 0) {
4036  __GIT_THROW_EXCEPTION(__result, "git_commit_create_v");
4037  }
4038 }
4039 
4040 
4041 
4042 inline void commit_amend(git_oid *id, const git_commit *commit_to_amend, const char *update_ref, const git_signature *author, const git_signature *committer, const char *message_encoding, const char *message, const git_tree *tree) {
4043  auto __result = git_commit_amend(id, commit_to_amend, update_ref, author, committer, message_encoding, message, tree);
4044  if (__result < 0) {
4045  __GIT_THROW_EXCEPTION(__result, "git_commit_amend");
4046  }
4047 }
4048 
4049 
4050 
4051 inline git_buf commit_create_buffer(git_repository *repo, const git_signature *author, const git_signature *committer, const char *message_encoding, const char *message, const git_tree *tree, size_t parent_count, const git_commit *parents[]) {
4052  git_buf out;
4053  auto __result = git_commit_create_buffer(&out, repo, author, committer, message_encoding, message, tree, parent_count, parents);
4054  if (__result < 0) {
4055  __GIT_THROW_EXCEPTION(__result, "git_commit_create_buffer");
4056  } else {
4057  return out;
4058  }
4059 }
4060 
4061 
4062 
4063 inline git_oid commit_create_with_signature(git_repository *repo, const char *commit_content, const char *signature, const char *signature_field) {
4064  git_oid out;
4065  auto __result = git_commit_create_with_signature(&out, repo, commit_content, signature, signature_field);
4066  if (__result < 0) {
4067  __GIT_THROW_EXCEPTION(__result, "git_commit_create_with_signature");
4068  } else {
4069  return out;
4070  }
4071 }
4072 
4073 
4074 
4075 inline git_commit *commit_dup(git_commit *source) {
4076  git_commit *out;
4077  auto __result = git_commit_dup(&out, source);
4078  if (__result < 0) {
4079  __GIT_THROW_EXCEPTION(__result, "git_commit_dup");
4080  } else {
4081  return out;
4082  }
4083 }
4084 
4085 
4086 
4087 inline void config_entry_free(git_config_entry *entry) {
4088  git_config_entry_free(entry);
4089 }
4090 
4091 
4092 
4093 inline git_buf config_find_global() {
4094  git_buf out;
4095  auto __result = git_config_find_global(&out);
4096  if (__result < 0) {
4097  __GIT_THROW_EXCEPTION(__result, "git_config_find_global");
4098  } else {
4099  return out;
4100  }
4101 }
4102 
4103 
4104 
4105 inline git_buf config_find_xdg() {
4106  git_buf out;
4107  auto __result = git_config_find_xdg(&out);
4108  if (__result < 0) {
4109  __GIT_THROW_EXCEPTION(__result, "git_config_find_xdg");
4110  } else {
4111  return out;
4112  }
4113 }
4114 
4115 
4116 
4117 inline git_buf config_find_system() {
4118  git_buf out;
4119  auto __result = git_config_find_system(&out);
4120  if (__result < 0) {
4121  __GIT_THROW_EXCEPTION(__result, "git_config_find_system");
4122  } else {
4123  return out;
4124  }
4125 }
4126 
4127 
4128 
4129 inline git_buf config_find_programdata() {
4130  git_buf out;
4131  auto __result = git_config_find_programdata(&out);
4132  if (__result < 0) {
4133  __GIT_THROW_EXCEPTION(__result, "git_config_find_programdata");
4134  } else {
4135  return out;
4136  }
4137 }
4138 
4139 
4140 
4141 inline git_config *config_open_default() {
4142  git_config *out;
4143  auto __result = git_config_open_default(&out);
4144  if (__result < 0) {
4145  __GIT_THROW_EXCEPTION(__result, "git_config_open_default");
4146  } else {
4147  return out;
4148  }
4149 }
4150 
4151 
4152 
4153 inline git_config *config_new() {
4154  git_config *out;
4155  auto __result = git_config_new(&out);
4156  if (__result < 0) {
4157  __GIT_THROW_EXCEPTION(__result, "git_config_new");
4158  } else {
4159  return out;
4160  }
4161 }
4162 
4163 
4164 
4165 inline void config_add_file_ondisk(git_config *cfg, const char *path, git_config_level_t level, const git_repository *repo, int force) {
4166  auto __result = git_config_add_file_ondisk(cfg, path, level, repo, force);
4167  if (__result < 0) {
4168  __GIT_THROW_EXCEPTION(__result, "git_config_add_file_ondisk");
4169  }
4170 }
4171 
4172 
4173 
4174 inline git_config *config_open_ondisk(const char *path) {
4175  git_config *out;
4176  auto __result = git_config_open_ondisk(&out, path);
4177  if (__result < 0) {
4178  __GIT_THROW_EXCEPTION(__result, "git_config_open_ondisk");
4179  } else {
4180  return out;
4181  }
4182 }
4183 
4184 
4185 
4186 inline git_config *config_open_level(const git_config *parent, git_config_level_t level) {
4187  git_config *out;
4188  auto __result = git_config_open_level(&out, parent, level);
4189  if (__result < 0) {
4190  __GIT_THROW_EXCEPTION(__result, "git_config_open_level");
4191  } else {
4192  return out;
4193  }
4194 }
4195 
4196 
4197 
4198 inline git_config *config_open_global(git_config *config) {
4199  git_config *out;
4200  auto __result = git_config_open_global(&out, config);
4201  if (__result < 0) {
4202  __GIT_THROW_EXCEPTION(__result, "git_config_open_global");
4203  } else {
4204  return out;
4205  }
4206 }
4207 
4208 
4209 
4210 inline git_config *config_snapshot(git_config *config) {
4211  git_config *out;
4212  auto __result = git_config_snapshot(&out, config);
4213  if (__result < 0) {
4214  __GIT_THROW_EXCEPTION(__result, "git_config_snapshot");
4215  } else {
4216  return out;
4217  }
4218 }
4219 
4220 
4221 
4222 inline void config_free(git_config *cfg) {
4223  git_config_free(cfg);
4224 }
4225 
4226 
4227 
4228 inline git_config_entry *config_get_entry(const git_config *cfg, const char *name) {
4229  git_config_entry *out;
4230  auto __result = git_config_get_entry(&out, cfg, name);
4231  if (__result < 0) {
4232  __GIT_THROW_EXCEPTION(__result, "git_config_get_entry");
4233  } else {
4234  return out;
4235  }
4236 }
4237 
4238 
4239 
4240 inline int32_t config_get_int32(const git_config *cfg, const char *name) {
4241  int32_t out;
4242  auto __result = git_config_get_int32(&out, cfg, name);
4243  if (__result < 0) {
4244  __GIT_THROW_EXCEPTION(__result, "git_config_get_int32");
4245  } else {
4246  return out;
4247  }
4248 }
4249 
4250 
4251 
4252 inline int64_t config_get_int64(const git_config *cfg, const char *name) {
4253  int64_t out;
4254  auto __result = git_config_get_int64(&out, cfg, name);
4255  if (__result < 0) {
4256  __GIT_THROW_EXCEPTION(__result, "git_config_get_int64");
4257  } else {
4258  return out;
4259  }
4260 }
4261 
4262 
4263 
4264 inline int config_get_bool(const git_config *cfg, const char *name) {
4265  int out;
4266  auto __result = git_config_get_bool(&out, cfg, name);
4267  if (__result < 0) {
4268  __GIT_THROW_EXCEPTION(__result, "git_config_get_bool");
4269  } else {
4270  return out;
4271  }
4272 }
4273 
4274 
4275 
4276 inline git_buf config_get_path(const git_config *cfg, const char *name) {
4277  git_buf out;
4278  auto __result = git_config_get_path(&out, cfg, name);
4279  if (__result < 0) {
4280  __GIT_THROW_EXCEPTION(__result, "git_config_get_path");
4281  } else {
4282  return out;
4283  }
4284 }
4285 
4286 
4287 
4288 inline const char *config_get_string(const git_config *cfg, const char *name) {
4289  const char *out;
4290  auto __result = git_config_get_string(&out, cfg, name);
4291  if (__result < 0) {
4292  __GIT_THROW_EXCEPTION(__result, "git_config_get_string");
4293  } else {
4294  return out;
4295  }
4296 }
4297 
4298 
4299 
4300 inline git_buf config_get_string_buf(const git_config *cfg, const char *name) {
4301  git_buf out;
4302  auto __result = git_config_get_string_buf(&out, cfg, name);
4303  if (__result < 0) {
4304  __GIT_THROW_EXCEPTION(__result, "git_config_get_string_buf");
4305  } else {
4306  return out;
4307  }
4308 }
4309 
4310 
4311 
4312 inline void config_get_multivar_foreach(const git_config *cfg, const char *name, const char *regexp, git_config_foreach_cb callback, void *payload) {
4313  auto __result = git_config_get_multivar_foreach(cfg, name, regexp, callback, payload);
4314  if (__result < 0) {
4315  __GIT_THROW_EXCEPTION(__result, "git_config_get_multivar_foreach");
4316  }
4317 }
4318 
4319 
4320 
4321 inline git_config_iterator *config_multivar_iterator_new(const git_config *cfg, const char *name, const char *regexp) {
4322  git_config_iterator *out;
4323  auto __result = git_config_multivar_iterator_new(&out, cfg, name, regexp);
4324  if (__result < 0) {
4325  __GIT_THROW_EXCEPTION(__result, "git_config_multivar_iterator_new");
4326  } else {
4327  return out;
4328  }
4329 }
4330 
4331 
4332 
4333 inline git_config_entry *config_next(git_config_iterator *iter) {
4334  git_config_entry *entry;
4335  auto __result = git_config_next(&entry, iter);
4336  if (__result < 0) {
4337  __GIT_THROW_EXCEPTION(__result, "git_config_next");
4338  } else {
4339  return entry;
4340  }
4341 }
4342 
4343 
4344 
4345 inline void config_iterator_free(git_config_iterator *iter) {
4346  git_config_iterator_free(iter);
4347 }
4348 
4349 
4350 
4351 inline void config_set_int32(git_config *cfg, const char *name, int32_t value) {
4352  auto __result = git_config_set_int32(cfg, name, value);
4353  if (__result < 0) {
4354  __GIT_THROW_EXCEPTION(__result, "git_config_set_int32");
4355  }
4356 }
4357 
4358 
4359 
4360 inline void config_set_int64(git_config *cfg, const char *name, int64_t value) {
4361  auto __result = git_config_set_int64(cfg, name, value);
4362  if (__result < 0) {
4363  __GIT_THROW_EXCEPTION(__result, "git_config_set_int64");
4364  }
4365 }
4366 
4367 
4368 
4369 inline void config_set_bool(git_config *cfg, const char *name, int value) {
4370  auto __result = git_config_set_bool(cfg, name, value);
4371  if (__result < 0) {
4372  __GIT_THROW_EXCEPTION(__result, "git_config_set_bool");
4373  }
4374 }
4375 
4376 
4377 
4378 inline void config_set_string(git_config *cfg, const char *name, const char *value) {
4379  auto __result = git_config_set_string(cfg, name, value);
4380  if (__result < 0) {
4381  __GIT_THROW_EXCEPTION(__result, "git_config_set_string");
4382  }
4383 }
4384 
4385 
4386 
4387 inline void config_set_multivar(git_config *cfg, const char *name, const char *regexp, const char *value) {
4388  auto __result = git_config_set_multivar(cfg, name, regexp, value);
4389  if (__result < 0) {
4390  __GIT_THROW_EXCEPTION(__result, "git_config_set_multivar");
4391  }
4392 }
4393 
4394 
4395 
4396 inline void config_delete_entry(git_config *cfg, const char *name) {
4397  auto __result = git_config_delete_entry(cfg, name);
4398  if (__result < 0) {
4399  __GIT_THROW_EXCEPTION(__result, "git_config_delete_entry");
4400  }
4401 }
4402 
4403 
4404 
4405 inline void config_delete_multivar(git_config *cfg, const char *name, const char *regexp) {
4406  auto __result = git_config_delete_multivar(cfg, name, regexp);
4407  if (__result < 0) {
4408  __GIT_THROW_EXCEPTION(__result, "git_config_delete_multivar");
4409  }
4410 }
4411 
4412 
4413 
4414 inline void config_foreach(const git_config *cfg, git_config_foreach_cb callback, void *payload) {
4415  auto __result = git_config_foreach(cfg, callback, payload);
4416  if (__result < 0) {
4417  __GIT_THROW_EXCEPTION(__result, "git_config_foreach");
4418  }
4419 }
4420 
4421 
4422 
4423 inline git_config_iterator *config_iterator_new(const git_config *cfg) {
4424  git_config_iterator *out;
4425  auto __result = git_config_iterator_new(&out, cfg);
4426  if (__result < 0) {
4427  __GIT_THROW_EXCEPTION(__result, "git_config_iterator_new");
4428  } else {
4429  return out;
4430  }
4431 }
4432 
4433 
4434 
4435 inline git_config_iterator *config_iterator_glob_new(const git_config *cfg, const char *regexp) {
4436  git_config_iterator *out;
4437  auto __result = git_config_iterator_glob_new(&out, cfg, regexp);
4438  if (__result < 0) {
4439  __GIT_THROW_EXCEPTION(__result, "git_config_iterator_glob_new");
4440  } else {
4441  return out;
4442  }
4443 }
4444 
4445 
4446 
4447 inline void config_foreach_match(const git_config *cfg, const char *regexp, git_config_foreach_cb callback, void *payload) {
4448  auto __result = git_config_foreach_match(cfg, regexp, callback, payload);
4449  if (__result < 0) {
4450  __GIT_THROW_EXCEPTION(__result, "git_config_foreach_match");
4451  }
4452 }
4453 
4454 
4455 
4456 inline int config_get_mapped(const git_config *cfg, const char *name, const git_configmap *maps, size_t map_n) {
4457  int out;
4458  auto __result = git_config_get_mapped(&out, cfg, name, maps, map_n);
4459  if (__result < 0) {
4460  __GIT_THROW_EXCEPTION(__result, "git_config_get_mapped");
4461  } else {
4462  return out;
4463  }
4464 }
4465 
4466 
4467 
4468 inline int config_lookup_map_value(const git_configmap *maps, size_t map_n, const char *value) {
4469  int out;
4470  auto __result = git_config_lookup_map_value(&out, maps, map_n, value);
4471  if (__result < 0) {
4472  __GIT_THROW_EXCEPTION(__result, "git_config_lookup_map_value");
4473  } else {
4474  return out;
4475  }
4476 }
4477 
4478 
4479 
4480 inline int config_parse_bool(const char *value) {
4481  int out;
4482  auto __result = git_config_parse_bool(&out, value);
4483  if (__result < 0) {
4484  __GIT_THROW_EXCEPTION(__result, "git_config_parse_bool");
4485  } else {
4486  return out;
4487  }
4488 }
4489 
4490 
4491 
4492 inline int32_t config_parse_int32(const char *value) {
4493  int32_t out;
4494  auto __result = git_config_parse_int32(&out, value);
4495  if (__result < 0) {
4496  __GIT_THROW_EXCEPTION(__result, "git_config_parse_int32");
4497  } else {
4498  return out;
4499  }
4500 }
4501 
4502 
4503 
4504 inline int64_t config_parse_int64(const char *value) {
4505  int64_t out;
4506  auto __result = git_config_parse_int64(&out, value);
4507  if (__result < 0) {
4508  __GIT_THROW_EXCEPTION(__result, "git_config_parse_int64");
4509  } else {
4510  return out;
4511  }
4512 }
4513 
4514 
4515 
4516 inline git_buf config_parse_path(const char *value) {
4517  git_buf out;
4518  auto __result = git_config_parse_path(&out, value);
4519  if (__result < 0) {
4520  __GIT_THROW_EXCEPTION(__result, "git_config_parse_path");
4521  } else {
4522  return out;
4523  }
4524 }
4525 
4526 
4527 
4528 inline void config_backend_foreach_match(git_config_backend *backend, const char *regexp, git_config_foreach_cb callback, void *payload) {
4529  auto __result = git_config_backend_foreach_match(backend, regexp, callback, payload);
4530  if (__result < 0) {
4531  __GIT_THROW_EXCEPTION(__result, "git_config_backend_foreach_match");
4532  }
4533 }
4534 
4535 
4536 
4537 inline void config_lock(git_transaction **tx, git_config *cfg) {
4538  auto __result = git_config_lock(tx, cfg);
4539  if (__result < 0) {
4540  __GIT_THROW_EXCEPTION(__result, "git_config_lock");
4541  }
4542 }
4543 
4544 
4545 
4546 inline void describe_options_init(git_describe_options *opts, unsigned int version) {
4547  auto __result = git_describe_options_init(opts, version);
4548  if (__result < 0) {
4549  __GIT_THROW_EXCEPTION(__result, "git_describe_options_init");
4550  }
4551 }
4552 
4553 
4554 
4555 inline void describe_format_options_init(git_describe_format_options *opts, unsigned int version) {
4556  auto __result = git_describe_format_options_init(opts, version);
4557  if (__result < 0) {
4558  __GIT_THROW_EXCEPTION(__result, "git_describe_format_options_init");
4559  }
4560 }
4561 
4562 
4563 
4564 inline void describe_commit(git_describe_result **result, git_object *committish, git_describe_options *opts) {
4565  auto __result = git_describe_commit(result, committish, opts);
4566  if (__result < 0) {
4567  __GIT_THROW_EXCEPTION(__result, "git_describe_commit");
4568  }
4569 }
4570 
4571 
4572 
4573 inline git_describe_result *describe_workdir(git_repository *repo, git_describe_options *opts) {
4574  git_describe_result *out;
4575  auto __result = git_describe_workdir(&out, repo, opts);
4576  if (__result < 0) {
4577  __GIT_THROW_EXCEPTION(__result, "git_describe_workdir");
4578  } else {
4579  return out;
4580  }
4581 }
4582 
4583 
4584 
4585 inline git_buf describe_format(const git_describe_result *result, const git_describe_format_options *opts) {
4586  git_buf out;
4587  auto __result = git_describe_format(&out, result, opts);
4588  if (__result < 0) {
4589  __GIT_THROW_EXCEPTION(__result, "git_describe_format");
4590  } else {
4591  return out;
4592  }
4593 }
4594 
4595 
4596 
4597 inline void describe_result_free(git_describe_result *result) {
4598  git_describe_result_free(result);
4599 }
4600 
4601 
4602 
4603 inline const git_error *error_last() {
4604  auto __result = git_error_last();
4605  return __result;
4606 }
4607 
4608 
4609 
4610 inline void error_clear() {
4611  git_error_clear();
4612 }
4613 
4614 
4615 
4616 inline void error_set(int error_class, const char *fmt) {
4617  git_error_set(error_class, fmt);
4618 }
4619 
4620 
4621 
4622 inline void error_set_str(int error_class, const char *string) {
4623  auto __result = git_error_set_str(error_class, string);
4624  if (__result < 0) {
4625  __GIT_THROW_EXCEPTION(__result, "git_error_set_str");
4626  }
4627 }
4628 
4629 
4630 
4631 inline void error_set_oom() {
4632  git_error_set_oom();
4633 }
4634 
4635 
4636 
4637 inline void filter_list_load(git_filter_list **filters, git_repository *repo, git_blob *blob, const char *path, git_filter_mode_t mode, uint32_t flags) {
4638  auto __result = git_filter_list_load(filters, repo, blob, path, mode, flags);
4639  if (__result < 0) {
4640  __GIT_THROW_EXCEPTION(__result, "git_filter_list_load");
4641  }
4642 }
4643 
4644 
4645 
4646 inline void filter_list_load_ext(git_filter_list **filters, git_repository *repo, git_blob *blob, const char *path, git_filter_mode_t mode, git_filter_options *opts) {
4647  auto __result = git_filter_list_load_ext(filters, repo, blob, path, mode, opts);
4648  if (__result < 0) {
4649  __GIT_THROW_EXCEPTION(__result, "git_filter_list_load_ext");
4650  }
4651 }
4652 
4653 
4654 
4655 inline void filter_list_contains(git_filter_list *filters, const char *name) {
4656  auto __result = git_filter_list_contains(filters, name);
4657  if (__result < 0) {
4658  __GIT_THROW_EXCEPTION(__result, "git_filter_list_contains");
4659  }
4660 }
4661 
4662 
4663 
4664 inline git_buf filter_list_apply_to_buffer(git_filter_list *filters, const char *in, size_t in_len) {
4665  git_buf out;
4666  auto __result = git_filter_list_apply_to_buffer(&out, filters, in, in_len);
4667  if (__result < 0) {
4668  __GIT_THROW_EXCEPTION(__result, "git_filter_list_apply_to_buffer");
4669  } else {
4670  return out;
4671  }
4672 }
4673 
4674 
4675 
4676 inline git_buf filter_list_apply_to_file(git_filter_list *filters, git_repository *repo, const char *path) {
4677  git_buf out;
4678  auto __result = git_filter_list_apply_to_file(&out, filters, repo, path);
4679  if (__result < 0) {
4680  __GIT_THROW_EXCEPTION(__result, "git_filter_list_apply_to_file");
4681  } else {
4682  return out;
4683  }
4684 }
4685 
4686 
4687 
4688 inline git_buf filter_list_apply_to_blob(git_filter_list *filters, git_blob *blob) {
4689  git_buf out;
4690  auto __result = git_filter_list_apply_to_blob(&out, filters, blob);
4691  if (__result < 0) {
4692  __GIT_THROW_EXCEPTION(__result, "git_filter_list_apply_to_blob");
4693  } else {
4694  return out;
4695  }
4696 }
4697 
4698 
4699 
4700 inline void filter_list_stream_buffer(git_filter_list *filters, const char *buffer, size_t len, git_writestream *target) {
4701  auto __result = git_filter_list_stream_buffer(filters, buffer, len, target);
4702  if (__result < 0) {
4703  __GIT_THROW_EXCEPTION(__result, "git_filter_list_stream_buffer");
4704  }
4705 }
4706 
4707 
4708 
4709 inline void filter_list_stream_file(git_filter_list *filters, git_repository *repo, const char *path, git_writestream *target) {
4710  auto __result = git_filter_list_stream_file(filters, repo, path, target);
4711  if (__result < 0) {
4712  __GIT_THROW_EXCEPTION(__result, "git_filter_list_stream_file");
4713  }
4714 }
4715 
4716 
4717 
4718 inline void filter_list_stream_blob(git_filter_list *filters, git_blob *blob, git_writestream *target) {
4719  auto __result = git_filter_list_stream_blob(filters, blob, target);
4720  if (__result < 0) {
4721  __GIT_THROW_EXCEPTION(__result, "git_filter_list_stream_blob");
4722  }
4723 }
4724 
4725 
4726 
4727 inline void filter_list_free(git_filter_list *filters) {
4728  git_filter_list_free(filters);
4729 }
4730 
4731 
4732 
4733 inline void rebase_options_init(git_rebase_options *opts, unsigned int version) {
4734  auto __result = git_rebase_options_init(opts, version);
4735  if (__result < 0) {
4736  __GIT_THROW_EXCEPTION(__result, "git_rebase_options_init");
4737  }
4738 }
4739 
4740 
4741 
4742 inline git_rebase *rebase_init(git_repository *repo, const git_annotated_commit *branch, const git_annotated_commit *upstream, const git_annotated_commit *onto, const git_rebase_options *opts) {
4743  git_rebase *out;
4744  auto __result = git_rebase_init(&out, repo, branch, upstream, onto, opts);
4745  if (__result < 0) {
4746  __GIT_THROW_EXCEPTION(__result, "git_rebase_init");
4747  } else {
4748  return out;
4749  }
4750 }
4751 
4752 
4753 
4754 inline git_rebase *rebase_open(git_repository *repo, const git_rebase_options *opts) {
4755  git_rebase *out;
4756  auto __result = git_rebase_open(&out, repo, opts);
4757  if (__result < 0) {
4758  __GIT_THROW_EXCEPTION(__result, "git_rebase_open");
4759  } else {
4760  return out;
4761  }
4762 }
4763 
4764 
4765 
4766 inline const char *rebase_orig_head_name(git_rebase *rebase) {
4767  auto __result = git_rebase_orig_head_name(rebase);
4768  return __result;
4769 }
4770 
4771 
4772 
4773 inline const git_oid *rebase_orig_head_id(git_rebase *rebase) {
4774  auto __result = git_rebase_orig_head_id(rebase);
4775  return __result;
4776 }
4777 
4778 
4779 
4780 inline const char *rebase_onto_name(git_rebase *rebase) {
4781  auto __result = git_rebase_onto_name(rebase);
4782  return __result;
4783 }
4784 
4785 
4786 
4787 inline const git_oid *rebase_onto_id(git_rebase *rebase) {
4788  auto __result = git_rebase_onto_id(rebase);
4789  return __result;
4790 }
4791 
4792 
4793 
4794 inline size_t rebase_operation_entrycount(git_rebase *rebase) {
4795  auto __result = git_rebase_operation_entrycount(rebase);
4796  return __result;
4797 }
4798 
4799 
4800 
4801 inline size_t rebase_operation_current(git_rebase *rebase) {
4802  auto __result = git_rebase_operation_current(rebase);
4803  return __result;
4804 }
4805 
4806 
4807 
4808 inline git_rebase_operation *rebase_operation_byindex(git_rebase *rebase, size_t idx) {
4809  auto __result = git_rebase_operation_byindex(rebase, idx);
4810  return __result;
4811 }
4812 
4813 
4814 
4815 inline void rebase_next(git_rebase_operation **operation, git_rebase *rebase) {
4816  auto __result = git_rebase_next(operation, rebase);
4817  if (__result < 0) {
4818  __GIT_THROW_EXCEPTION(__result, "git_rebase_next");
4819  }
4820 }
4821 
4822 
4823 
4824 inline void rebase_inmemory_index(git_index **index, git_rebase *rebase) {
4825  auto __result = git_rebase_inmemory_index(index, rebase);
4826  if (__result < 0) {
4827  __GIT_THROW_EXCEPTION(__result, "git_rebase_inmemory_index");
4828  }
4829 }
4830 
4831 
4832 
4833 inline void rebase_commit(git_oid *id, git_rebase *rebase, const git_signature *author, const git_signature *committer, const char *message_encoding, const char *message) {
4834  auto __result = git_rebase_commit(id, rebase, author, committer, message_encoding, message);
4835  if (__result < 0) {
4836  __GIT_THROW_EXCEPTION(__result, "git_rebase_commit");
4837  }
4838 }
4839 
4840 
4841 
4842 inline void rebase_abort(git_rebase *rebase) {
4843  auto __result = git_rebase_abort(rebase);
4844  if (__result < 0) {
4845  __GIT_THROW_EXCEPTION(__result, "git_rebase_abort");
4846  }
4847 }
4848 
4849 
4850 
4851 inline void rebase_finish(git_rebase *rebase, const git_signature *signature) {
4852  auto __result = git_rebase_finish(rebase, signature);
4853  if (__result < 0) {
4854  __GIT_THROW_EXCEPTION(__result, "git_rebase_finish");
4855  }
4856 }
4857 
4858 
4859 
4860 inline void rebase_free(git_rebase *rebase) {
4861  git_rebase_free(rebase);
4862 }
4863 
4864 
4865 
4866 inline void trace_set(git_trace_level_t level, git_trace_cb cb) {
4867  auto __result = git_trace_set(level, cb);
4868  if (__result < 0) {
4869  __GIT_THROW_EXCEPTION(__result, "git_trace_set");
4870  }
4871 }
4872 
4873 
4874 
4875 inline void revert_options_init(git_revert_options *opts, unsigned int version) {
4876  auto __result = git_revert_options_init(opts, version);
4877  if (__result < 0) {
4878  __GIT_THROW_EXCEPTION(__result, "git_revert_options_init");
4879  }
4880 }
4881 
4882 
4883 
4884 inline git_index *revert_commit(git_repository *repo, git_commit *revert_commit, git_commit *our_commit, unsigned int mainline, const git_merge_options *merge_options) {
4885  git_index *out;
4886  auto __result = git_revert_commit(&out, repo, revert_commit, our_commit, mainline, merge_options);
4887  if (__result < 0) {
4888  __GIT_THROW_EXCEPTION(__result, "git_revert_commit");
4889  } else {
4890  return out;
4891  }
4892 }
4893 
4894 
4895 
4896 inline void revert(git_repository *repo, git_commit *commit, const git_revert_options *given_opts) {
4897  auto __result = git_revert(repo, commit, given_opts);
4898  if (__result < 0) {
4899  __GIT_THROW_EXCEPTION(__result, "git_revert");
4900  }
4901 }
4902 
4903 
4904 
4905 inline git_object *revparse_single(git_repository *repo, const char *spec) {
4906  git_object *out;
4907  auto __result = git_revparse_single(&out, repo, spec);
4908  if (__result < 0) {
4909  __GIT_THROW_EXCEPTION(__result, "git_revparse_single");
4910  } else {
4911  return out;
4912  }
4913 }
4914 
4915 
4916 
4917 inline void revparse_ext(git_object **object_out, git_reference **reference_out, git_repository *repo, const char *spec) {
4918  auto __result = git_revparse_ext(object_out, reference_out, repo, spec);
4919  if (__result < 0) {
4920  __GIT_THROW_EXCEPTION(__result, "git_revparse_ext");
4921  }
4922 }
4923 
4924 
4925 
4926 inline git_revspec revparse(git_repository *repo, const char *spec) {
4927  git_revspec revspec;
4928  auto __result = git_revparse(&revspec, repo, spec);
4929  if (__result < 0) {
4930  __GIT_THROW_EXCEPTION(__result, "git_revparse");
4931  } else {
4932  return revspec;
4933  }
4934 }
4935 
4936 
4937 
4938 inline git_oid stash_save(git_repository *repo, const git_signature *stasher, const char *message, uint32_t flags) {
4939  git_oid out;
4940  auto __result = git_stash_save(&out, repo, stasher, message, flags);
4941  if (__result < 0) {
4942  __GIT_THROW_EXCEPTION(__result, "git_stash_save");
4943  } else {
4944  return out;
4945  }
4946 }
4947 
4948 
4949 
4950 inline void stash_apply_options_init(git_stash_apply_options *opts, unsigned int version) {
4951  auto __result = git_stash_apply_options_init(opts, version);
4952  if (__result < 0) {
4953  __GIT_THROW_EXCEPTION(__result, "git_stash_apply_options_init");
4954  }
4955 }
4956 
4957 
4958 
4959 inline void stash_apply(git_repository *repo, size_t index, const git_stash_apply_options *options) {
4960  auto __result = git_stash_apply(repo, index, options);
4961  if (__result < 0) {
4962  __GIT_THROW_EXCEPTION(__result, "git_stash_apply");
4963  }
4964 }
4965 
4966 
4967 
4968 inline void stash_foreach(git_repository *repo, git_stash_cb callback, void *payload) {
4969  auto __result = git_stash_foreach(repo, callback, payload);
4970  if (__result < 0) {
4971  __GIT_THROW_EXCEPTION(__result, "git_stash_foreach");
4972  }
4973 }
4974 
4975 
4976 
4977 inline void stash_drop(git_repository *repo, size_t index) {
4978  auto __result = git_stash_drop(repo, index);
4979  if (__result < 0) {
4980  __GIT_THROW_EXCEPTION(__result, "git_stash_drop");
4981  }
4982 }
4983 
4984 
4985 
4986 inline void stash_pop(git_repository *repo, size_t index, const git_stash_apply_options *options) {
4987  auto __result = git_stash_pop(repo, index, options);
4988  if (__result < 0) {
4989  __GIT_THROW_EXCEPTION(__result, "git_stash_pop");
4990  }
4991 }
4992 
4993 
4994 
4995 inline void status_options_init(git_status_options *opts, unsigned int version) {
4996  auto __result = git_status_options_init(opts, version);
4997  if (__result < 0) {
4998  __GIT_THROW_EXCEPTION(__result, "git_status_options_init");
4999  }
5000 }
5001 
5002 
5003 
5004 inline void status_foreach(git_repository *repo, git_status_cb callback, void *payload) {
5005  auto __result = git_status_foreach(repo, callback, payload);
5006  if (__result < 0) {
5007  __GIT_THROW_EXCEPTION(__result, "git_status_foreach");
5008  }
5009 }
5010 
5011 
5012 
5013 inline void status_foreach_ext(git_repository *repo, const git_status_options *opts, git_status_cb callback, void *payload) {
5014  auto __result = git_status_foreach_ext(repo, opts, callback, payload);
5015  if (__result < 0) {
5016  __GIT_THROW_EXCEPTION(__result, "git_status_foreach_ext");
5017  }
5018 }
5019 
5020 
5021 
5022 inline void status_file(unsigned int *status_flags, git_repository *repo, const char *path) {
5023  auto __result = git_status_file(status_flags, repo, path);
5024  if (__result < 0) {
5025  __GIT_THROW_EXCEPTION(__result, "git_status_file");
5026  }
5027 }
5028 
5029 
5030 
5031 inline git_status_list *status_list_new(git_repository *repo, const git_status_options *opts) {
5032  git_status_list *out;
5033  auto __result = git_status_list_new(&out, repo, opts);
5034  if (__result < 0) {
5035  __GIT_THROW_EXCEPTION(__result, "git_status_list_new");
5036  } else {
5037  return out;
5038  }
5039 }
5040 
5041 
5042 
5043 inline size_t status_list_entrycount(git_status_list *statuslist) {
5044  auto __result = git_status_list_entrycount(statuslist);
5045  return __result;
5046 }
5047 
5048 
5049 
5050 inline const git_status_entry *status_byindex(git_status_list *statuslist, size_t idx) {
5051  auto __result = git_status_byindex(statuslist, idx);
5052  return __result;
5053 }
5054 
5055 
5056 
5057 inline void status_list_free(git_status_list *statuslist) {
5058  git_status_list_free(statuslist);
5059 }
5060 
5061 
5062 
5063 inline void status_should_ignore(int *ignored, git_repository *repo, const char *path) {
5064  auto __result = git_status_should_ignore(ignored, repo, path);
5065  if (__result < 0) {
5066  __GIT_THROW_EXCEPTION(__result, "git_status_should_ignore");
5067  }
5068 }
5069 
5070 
5071 
5072 inline void submodule_update_options_init(git_submodule_update_options *opts, unsigned int version) {
5073  auto __result = git_submodule_update_options_init(opts, version);
5074  if (__result < 0) {
5075  __GIT_THROW_EXCEPTION(__result, "git_submodule_update_options_init");
5076  }
5077 }
5078 
5079 
5080 
5081 inline void submodule_update(git_submodule *submodule, int init, git_submodule_update_options *options) {
5082  auto __result = git_submodule_update(submodule, init, options);
5083  if (__result < 0) {
5084  __GIT_THROW_EXCEPTION(__result, "git_submodule_update");
5085  }
5086 }
5087 
5088 
5089 
5090 inline git_submodule *submodule_lookup(git_repository *repo, const char *name) {
5091  git_submodule *out;
5092  auto __result = git_submodule_lookup(&out, repo, name);
5093  if (__result < 0) {
5094  __GIT_THROW_EXCEPTION(__result, "git_submodule_lookup");
5095  } else {
5096  return out;
5097  }
5098 }
5099 
5100 
5101 
5102 inline git_submodule *submodule_dup(git_submodule *source) {
5103  git_submodule *out;
5104  auto __result = git_submodule_dup(&out, source);
5105  if (__result < 0) {
5106  __GIT_THROW_EXCEPTION(__result, "git_submodule_dup");
5107  } else {
5108  return out;
5109  }
5110 }
5111 
5112 
5113 
5114 inline void submodule_free(git_submodule *submodule) {
5115  git_submodule_free(submodule);
5116 }
5117 
5118 
5119 
5120 inline void submodule_foreach(git_repository *repo, git_submodule_cb callback, void *payload) {
5121  auto __result = git_submodule_foreach(repo, callback, payload);
5122  if (__result < 0) {
5123  __GIT_THROW_EXCEPTION(__result, "git_submodule_foreach");
5124  }
5125 }
5126 
5127 
5128 
5129 inline git_submodule *submodule_add_setup(git_repository *repo, const char *url, const char *path, int use_gitlink) {
5130  git_submodule *out;
5131  auto __result = git_submodule_add_setup(&out, repo, url, path, use_gitlink);
5132  if (__result < 0) {
5133  __GIT_THROW_EXCEPTION(__result, "git_submodule_add_setup");
5134  } else {
5135  return out;
5136  }
5137 }
5138 
5139 
5140 
5141 inline git_repository *submodule_clone(git_submodule *submodule, const git_submodule_update_options *opts) {
5142  git_repository *out;
5143  auto __result = git_submodule_clone(&out, submodule, opts);
5144  if (__result < 0) {
5145  __GIT_THROW_EXCEPTION(__result, "git_submodule_clone");
5146  } else {
5147  return out;
5148  }
5149 }
5150 
5151 
5152 
5153 inline void submodule_add_finalize(git_submodule *submodule) {
5154  auto __result = git_submodule_add_finalize(submodule);
5155  if (__result < 0) {
5156  __GIT_THROW_EXCEPTION(__result, "git_submodule_add_finalize");
5157  }
5158 }
5159 
5160 
5161 
5162 inline void submodule_add_to_index(git_submodule *submodule, int write_index) {
5163  auto __result = git_submodule_add_to_index(submodule, write_index);
5164  if (__result < 0) {
5165  __GIT_THROW_EXCEPTION(__result, "git_submodule_add_to_index");
5166  }
5167 }
5168 
5169 
5170 
5171 inline git_repository *submodule_owner(git_submodule *submodule) {
5172  auto __result = git_submodule_owner(submodule);
5173  return __result;
5174 }
5175 
5176 
5177 
5178 inline const char *submodule_name(git_submodule *submodule) {
5179  auto __result = git_submodule_name(submodule);
5180  return __result;
5181 }
5182 
5183 
5184 
5185 inline const char *submodule_path(git_submodule *submodule) {
5186  auto __result = git_submodule_path(submodule);
5187  return __result;
5188 }
5189 
5190 
5191 
5192 inline const char *submodule_url(git_submodule *submodule) {
5193  auto __result = git_submodule_url(submodule);
5194  return __result;
5195 }
5196 
5197 
5198 
5199 inline git_buf submodule_resolve_url(git_repository *repo, const char *url) {
5200  git_buf out;
5201  auto __result = git_submodule_resolve_url(&out, repo, url);
5202  if (__result < 0) {
5203  __GIT_THROW_EXCEPTION(__result, "git_submodule_resolve_url");
5204  } else {
5205  return out;
5206  }
5207 }
5208 
5209 
5210 
5211 inline const char *submodule_branch(git_submodule *submodule) {
5212  auto __result = git_submodule_branch(submodule);
5213  return __result;
5214 }
5215 
5216 
5217 
5218 inline void submodule_set_branch(git_repository *repo, const char *name, const char *branch) {
5219  auto __result = git_submodule_set_branch(repo, name, branch);
5220  if (__result < 0) {
5221  __GIT_THROW_EXCEPTION(__result, "git_submodule_set_branch");
5222  }
5223 }
5224 
5225 
5226 
5227 inline void submodule_set_url(git_repository *repo, const char *name, const char *url) {
5228  auto __result = git_submodule_set_url(repo, name, url);
5229  if (__result < 0) {
5230  __GIT_THROW_EXCEPTION(__result, "git_submodule_set_url");
5231  }
5232 }
5233 
5234 
5235 
5236 inline const git_oid *submodule_index_id(git_submodule *submodule) {
5237  auto __result = git_submodule_index_id(submodule);
5238  return __result;
5239 }
5240 
5241 
5242 
5243 inline const git_oid *submodule_head_id(git_submodule *submodule) {
5244  auto __result = git_submodule_head_id(submodule);
5245  return __result;
5246 }
5247 
5248 
5249 
5250 inline const git_oid *submodule_wd_id(git_submodule *submodule) {
5251  auto __result = git_submodule_wd_id(submodule);
5252  return __result;
5253 }
5254 
5255 
5256 
5257 inline git_submodule_ignore_t submodule_ignore(git_submodule *submodule) {
5258  auto __result = git_submodule_ignore(submodule);
5259  return __result;
5260 }
5261 
5262 
5263 
5264 inline void submodule_set_ignore(git_repository *repo, const char *name, git_submodule_ignore_t ignore) {
5265  auto __result = git_submodule_set_ignore(repo, name, ignore);
5266  if (__result < 0) {
5267  __GIT_THROW_EXCEPTION(__result, "git_submodule_set_ignore");
5268  }
5269 }
5270 
5271 
5272 
5273 inline git_submodule_update_t submodule_update_strategy(git_submodule *submodule) {
5274  auto __result = git_submodule_update_strategy(submodule);
5275  return __result;
5276 }
5277 
5278 
5279 
5280 inline void submodule_set_update(git_repository *repo, const char *name, git_submodule_update_t update) {
5281  auto __result = git_submodule_set_update(repo, name, update);
5282  if (__result < 0) {
5283  __GIT_THROW_EXCEPTION(__result, "git_submodule_set_update");
5284  }
5285 }
5286 
5287 
5288 
5289 inline git_submodule_recurse_t submodule_fetch_recurse_submodules(git_submodule *submodule) {
5290  auto __result = git_submodule_fetch_recurse_submodules(submodule);
5291  return __result;
5292 }
5293 
5294 
5295 
5296 inline void submodule_set_fetch_recurse_submodules(git_repository *repo, const char *name, git_submodule_recurse_t fetch_recurse_submodules) {
5297  auto __result = git_submodule_set_fetch_recurse_submodules(repo, name, fetch_recurse_submodules);
5298  if (__result < 0) {
5299  __GIT_THROW_EXCEPTION(__result, "git_submodule_set_fetch_recurse_submodules");
5300  }
5301 }
5302 
5303 
5304 
5305 inline void submodule_init(git_submodule *submodule, int overwrite) {
5306  auto __result = git_submodule_init(submodule, overwrite);
5307  if (__result < 0) {
5308  __GIT_THROW_EXCEPTION(__result, "git_submodule_init");
5309  }
5310 }
5311 
5312 
5313 
5314 inline git_repository *submodule_repo_init(const git_submodule *sm, int use_gitlink) {
5315  git_repository *out;
5316  auto __result = git_submodule_repo_init(&out, sm, use_gitlink);
5317  if (__result < 0) {
5318  __GIT_THROW_EXCEPTION(__result, "git_submodule_repo_init");
5319  } else {
5320  return out;
5321  }
5322 }
5323 
5324 
5325 
5326 inline void submodule_sync(git_submodule *submodule) {
5327  auto __result = git_submodule_sync(submodule);
5328  if (__result < 0) {
5329  __GIT_THROW_EXCEPTION(__result, "git_submodule_sync");
5330  }
5331 }
5332 
5333 
5334 
5335 inline void submodule_open(git_repository **repo, git_submodule *submodule) {
5336  auto __result = git_submodule_open(repo, submodule);
5337  if (__result < 0) {
5338  __GIT_THROW_EXCEPTION(__result, "git_submodule_open");
5339  }
5340 }
5341 
5342 
5343 
5344 inline void submodule_reload(git_submodule *submodule, int force) {
5345  auto __result = git_submodule_reload(submodule, force);
5346  if (__result < 0) {
5347  __GIT_THROW_EXCEPTION(__result, "git_submodule_reload");
5348  }
5349 }
5350 
5351 
5352 
5353 inline void submodule_status(unsigned int *status, git_repository *repo, const char *name, git_submodule_ignore_t ignore) {
5354  auto __result = git_submodule_status(status, repo, name, ignore);
5355  if (__result < 0) {
5356  __GIT_THROW_EXCEPTION(__result, "git_submodule_status");
5357  }
5358 }
5359 
5360 
5361 
5362 inline void submodule_location(unsigned int *location_status, git_submodule *submodule) {
5363  auto __result = git_submodule_location(location_status, submodule);
5364  if (__result < 0) {
5365  __GIT_THROW_EXCEPTION(__result, "git_submodule_location");
5366  }
5367 }
5368 
5369 
5370 
5371 inline git_strarray worktree_list(git_repository *repo) {
5372  git_strarray out;
5373  auto __result = git_worktree_list(&out, repo);
5374  if (__result < 0) {
5375  __GIT_THROW_EXCEPTION(__result, "git_worktree_list");
5376  } else {
5377  return out;
5378  }
5379 }
5380 
5381 
5382 
5383 inline git_worktree *worktree_lookup(git_repository *repo, const char *name) {
5384  git_worktree *out;
5385  auto __result = git_worktree_lookup(&out, repo, name);
5386  if (__result < 0) {
5387  __GIT_THROW_EXCEPTION(__result, "git_worktree_lookup");
5388  } else {
5389  return out;
5390  }
5391 }
5392 
5393 
5394 
5395 inline git_worktree *worktree_open_from_repository(git_repository *repo) {
5396  git_worktree *out;
5397  auto __result = git_worktree_open_from_repository(&out, repo);
5398  if (__result < 0) {
5399  __GIT_THROW_EXCEPTION(__result, "git_worktree_open_from_repository");
5400  } else {
5401  return out;
5402  }
5403 }
5404 
5405 
5406 
5407 inline void worktree_free(git_worktree *wt) {
5408  git_worktree_free(wt);
5409 }
5410 
5411 
5412 
5413 inline void worktree_validate(const git_worktree *wt) {
5414  auto __result = git_worktree_validate(wt);
5415  if (__result < 0) {
5416  __GIT_THROW_EXCEPTION(__result, "git_worktree_validate");
5417  }
5418 }
5419 
5420 
5421 
5422 inline void worktree_add_options_init(git_worktree_add_options *opts, unsigned int version) {
5423  auto __result = git_worktree_add_options_init(opts, version);
5424  if (__result < 0) {
5425  __GIT_THROW_EXCEPTION(__result, "git_worktree_add_options_init");
5426  }
5427 }
5428 
5429 
5430 
5431 inline git_worktree *worktree_add(git_repository *repo, const char *name, const char *path, const git_worktree_add_options *opts) {
5432  git_worktree *out;
5433  auto __result = git_worktree_add(&out, repo, name, path, opts);
5434  if (__result < 0) {
5435  __GIT_THROW_EXCEPTION(__result, "git_worktree_add");
5436  } else {
5437  return out;
5438  }
5439 }
5440 
5441 
5442 
5443 inline void worktree_lock(git_worktree *wt, const char *reason) {
5444  auto __result = git_worktree_lock(wt, reason);
5445  if (__result < 0) {
5446  __GIT_THROW_EXCEPTION(__result, "git_worktree_lock");
5447  }
5448 }
5449 
5450 
5451 
5452 inline void worktree_unlock(git_worktree *wt) {
5453  auto __result = git_worktree_unlock(wt);
5454  if (__result < 0) {
5455  __GIT_THROW_EXCEPTION(__result, "git_worktree_unlock");
5456  }
5457 }
5458 
5459 
5460 
5461 inline void worktree_is_locked(git_buf *reason, const git_worktree *wt) {
5462  auto __result = git_worktree_is_locked(reason, wt);
5463  if (__result < 0) {
5464  __GIT_THROW_EXCEPTION(__result, "git_worktree_is_locked");
5465  }
5466 }
5467 
5468 
5469 
5470 inline const char *worktree_name(const git_worktree *wt) {
5471  auto __result = git_worktree_name(wt);
5472  return __result;
5473 }
5474 
5475 
5476 
5477 inline const char *worktree_path(const git_worktree *wt) {
5478  auto __result = git_worktree_path(wt);
5479  return __result;
5480 }
5481 
5482 
5483 
5484 inline void worktree_prune_options_init(git_worktree_prune_options *opts, unsigned int version) {
5485  auto __result = git_worktree_prune_options_init(opts, version);
5486  if (__result < 0) {
5487  __GIT_THROW_EXCEPTION(__result, "git_worktree_prune_options_init");
5488  }
5489 }
5490 
5491 
5492 
5493 inline void worktree_is_prunable(git_worktree *wt, git_worktree_prune_options *opts) {
5494  auto __result = git_worktree_is_prunable(wt, opts);
5495  if (__result < 0) {
5496  __GIT_THROW_EXCEPTION(__result, "git_worktree_is_prunable");
5497  }
5498 }
5499 
5500 
5501 
5502 inline void worktree_prune(git_worktree *wt, git_worktree_prune_options *opts) {
5503  auto __result = git_worktree_prune(wt, opts);
5504  if (__result < 0) {
5505  __GIT_THROW_EXCEPTION(__result, "git_worktree_prune");
5506  }
5507 }
5508 
5509 
5510 
5511 inline git_credential *credential_userpass(const char *url, const char *user_from_url, unsigned int allowed_types, void *payload) {
5512  git_credential *out;
5513  auto __result = git_credential_userpass(&out, url, user_from_url, allowed_types, payload);
5514  if (__result < 0) {
5515  __GIT_THROW_EXCEPTION(__result, "git_credential_userpass");
5516  } else {
5517  return out;
5518  }
5519 }
5520 
5521 
5522 
5523 inline git_buf email_create_from_diff(git_diff *diff, size_t patch_idx, size_t patch_count, const git_oid *commit_id, const char *summary, const char *body, const git_signature *author, const git_email_create_options *opts) {
5524  git_buf out;
5525  auto __result = git_email_create_from_diff(&out, diff, patch_idx, patch_count, commit_id, summary, body, author, opts);
5526  if (__result < 0) {
5527  __GIT_THROW_EXCEPTION(__result, "git_email_create_from_diff");
5528  } else {
5529  return out;
5530  }
5531 }
5532 
5533 
5534 
5535 inline git_buf email_create_from_commit(git_commit *commit, const git_email_create_options *opts) {
5536  git_buf out;
5537  auto __result = git_email_create_from_commit(&out, commit, opts);
5538  if (__result < 0) {
5539  __GIT_THROW_EXCEPTION(__result, "git_email_create_from_commit");
5540  } else {
5541  return out;
5542  }
5543 }
5544 
5545 
5546 
5547 inline void libgit2_init() {
5548  auto __result = git_libgit2_init();
5549  if (__result < 0) {
5550  __GIT_THROW_EXCEPTION(__result, "git_libgit2_init");
5551  }
5552 }
5553 
5554 
5555 
5556 inline void libgit2_shutdown() {
5557  auto __result = git_libgit2_shutdown();
5558  if (__result < 0) {
5559  __GIT_THROW_EXCEPTION(__result, "git_libgit2_shutdown");
5560  }
5561 }
5562 
5563 
5564 
5565 inline void graph_ahead_behind(size_t *ahead, size_t *behind, git_repository *repo, const git_oid *local, const git_oid *upstream) {
5566  auto __result = git_graph_ahead_behind(ahead, behind, repo, local, upstream);
5567  if (__result < 0) {
5568  __GIT_THROW_EXCEPTION(__result, "git_graph_ahead_behind");
5569  }
5570 }
5571 
5572 
5573 
5574 inline void graph_descendant_of(git_repository *repo, const git_oid *commit, const git_oid *ancestor) {
5575  auto __result = git_graph_descendant_of(repo, commit, ancestor);
5576  if (__result < 0) {
5577  __GIT_THROW_EXCEPTION(__result, "git_graph_descendant_of");
5578  }
5579 }
5580 
5581 
5582 
5583 inline void graph_reachable_from_any(git_repository *repo, const git_oid *commit, const git_oid descendant_array[], size_t length) {
5584  auto __result = git_graph_reachable_from_any(repo, commit, descendant_array, length);
5585  if (__result < 0) {
5586  __GIT_THROW_EXCEPTION(__result, "git_graph_reachable_from_any");
5587  }
5588 }
5589 
5590 
5591 
5592 inline void ignore_add_rule(git_repository *repo, const char *rules) {
5593  auto __result = git_ignore_add_rule(repo, rules);
5594  if (__result < 0) {
5595  __GIT_THROW_EXCEPTION(__result, "git_ignore_add_rule");
5596  }
5597 }
5598 
5599 
5600 
5601 inline void ignore_clear_internal_rules(git_repository *repo) {
5602  auto __result = git_ignore_clear_internal_rules(repo);
5603  if (__result < 0) {
5604  __GIT_THROW_EXCEPTION(__result, "git_ignore_clear_internal_rules");
5605  }
5606 }
5607 
5608 
5609 
5610 inline void ignore_path_is_ignored(int *ignored, git_repository *repo, const char *path) {
5611  auto __result = git_ignore_path_is_ignored(ignored, repo, path);
5612  if (__result < 0) {
5613  __GIT_THROW_EXCEPTION(__result, "git_ignore_path_is_ignored");
5614  }
5615 }
5616 
5617 
5618 
5619 inline git_mailmap *mailmap_new() {
5620  git_mailmap *out;
5621  auto __result = git_mailmap_new(&out);
5622  if (__result < 0) {
5623  __GIT_THROW_EXCEPTION(__result, "git_mailmap_new");
5624  } else {
5625  return out;
5626  }
5627 }
5628 
5629 
5630 
5631 inline void mailmap_free(git_mailmap *mm) {
5632  git_mailmap_free(mm);
5633 }
5634 
5635 
5636 
5637 inline void mailmap_add_entry(git_mailmap *mm, const char *real_name, const char *real_email, const char *replace_name, const char *replace_email) {
5638  auto __result = git_mailmap_add_entry(mm, real_name, real_email, replace_name, replace_email);
5639  if (__result < 0) {
5640  __GIT_THROW_EXCEPTION(__result, "git_mailmap_add_entry");
5641  }
5642 }
5643 
5644 
5645 
5646 inline git_mailmap *mailmap_from_buffer(const char *buf, size_t len) {
5647  git_mailmap *out;
5648  auto __result = git_mailmap_from_buffer(&out, buf, len);
5649  if (__result < 0) {
5650  __GIT_THROW_EXCEPTION(__result, "git_mailmap_from_buffer");
5651  } else {
5652  return out;
5653  }
5654 }
5655 
5656 
5657 
5658 inline git_mailmap *mailmap_from_repository(git_repository *repo) {
5659  git_mailmap *out;
5660  auto __result = git_mailmap_from_repository(&out, repo);
5661  if (__result < 0) {
5662  __GIT_THROW_EXCEPTION(__result, "git_mailmap_from_repository");
5663  } else {
5664  return out;
5665  }
5666 }
5667 
5668 
5669 
5670 inline void mailmap_resolve(const char **real_name, const char **real_email, const git_mailmap *mm, const char *name, const char *email) {
5671  auto __result = git_mailmap_resolve(real_name, real_email, mm, name, email);
5672  if (__result < 0) {
5673  __GIT_THROW_EXCEPTION(__result, "git_mailmap_resolve");
5674  }
5675 }
5676 
5677 
5678 
5679 inline git_signature *mailmap_resolve_signature(const git_mailmap *mm, const git_signature *sig) {
5680  git_signature *out;
5681  auto __result = git_mailmap_resolve_signature(&out, mm, sig);
5682  if (__result < 0) {
5683  __GIT_THROW_EXCEPTION(__result, "git_mailmap_resolve_signature");
5684  } else {
5685  return out;
5686  }
5687 }
5688 
5689 
5690 
5691 inline git_buf message_prettify(const char *message, int strip_comments, char comment_char) {
5692  git_buf out;
5693  auto __result = git_message_prettify(&out, message, strip_comments, comment_char);
5694  if (__result < 0) {
5695  __GIT_THROW_EXCEPTION(__result, "git_message_prettify");
5696  } else {
5697  return out;
5698  }
5699 }
5700 
5701 
5702 
5703 inline void message_trailers(git_message_trailer_array *arr, const char *message) {
5704  auto __result = git_message_trailers(arr, message);
5705  if (__result < 0) {
5706  __GIT_THROW_EXCEPTION(__result, "git_message_trailers");
5707  }
5708 }
5709 
5710 
5711 
5712 inline void message_trailer_array_free(git_message_trailer_array *arr) {
5713  git_message_trailer_array_free(arr);
5714 }
5715 
5716 
5717 
5718 inline git_note_iterator *note_iterator_new(git_repository *repo, const char *notes_ref) {
5719  git_note_iterator *out;
5720  auto __result = git_note_iterator_new(&out, repo, notes_ref);
5721  if (__result < 0) {
5722  __GIT_THROW_EXCEPTION(__result, "git_note_iterator_new");
5723  } else {
5724  return out;
5725  }
5726 }
5727 
5728 
5729 
5730 inline git_note_iterator *note_commit_iterator_new(git_commit *notes_commit) {
5731  git_note_iterator *out;
5732  auto __result = git_note_commit_iterator_new(&out, notes_commit);
5733  if (__result < 0) {
5734  __GIT_THROW_EXCEPTION(__result, "git_note_commit_iterator_new");
5735  } else {
5736  return out;
5737  }
5738 }
5739 
5740 
5741 
5742 inline void note_iterator_free(git_note_iterator *it) {
5743  git_note_iterator_free(it);
5744 }
5745 
5746 
5747 
5748 inline void note_next(git_oid *note_id, git_oid *annotated_id, git_note_iterator *it) {
5749  auto __result = git_note_next(note_id, annotated_id, it);
5750  if (__result < 0) {
5751  __GIT_THROW_EXCEPTION(__result, "git_note_next");
5752  }
5753 }
5754 
5755 
5756 
5757 inline git_note *note_read(git_repository *repo, const char *notes_ref, const git_oid *oid) {
5758  git_note *out;
5759  auto __result = git_note_read(&out, repo, notes_ref, oid);
5760  if (__result < 0) {
5761  __GIT_THROW_EXCEPTION(__result, "git_note_read");
5762  } else {
5763  return out;
5764  }
5765 }
5766 
5767 
5768 
5769 inline git_note *note_commit_read(git_repository *repo, git_commit *notes_commit, const git_oid *oid) {
5770  git_note *out;
5771  auto __result = git_note_commit_read(&out, repo, notes_commit, oid);
5772  if (__result < 0) {
5773  __GIT_THROW_EXCEPTION(__result, "git_note_commit_read");
5774  } else {
5775  return out;
5776  }
5777 }
5778 
5779 
5780 
5781 inline const git_signature *note_author(const git_note *note) {
5782  auto __result = git_note_author(note);
5783  return __result;
5784 }
5785 
5786 
5787 
5788 inline const git_signature *note_committer(const git_note *note) {
5789  auto __result = git_note_committer(note);
5790  return __result;
5791 }
5792 
5793 
5794 
5795 inline const char *note_message(const git_note *note) {
5796  auto __result = git_note_message(note);
5797  return __result;
5798 }
5799 
5800 
5801 
5802 inline const git_oid *note_id(const git_note *note) {
5803  auto __result = git_note_id(note);
5804  return __result;
5805 }
5806 
5807 
5808 
5809 inline git_oid note_create(git_repository *repo, const char *notes_ref, const git_signature *author, const git_signature *committer, const git_oid *oid, const char *note, int force) {
5810  git_oid out;
5811  auto __result = git_note_create(&out, repo, notes_ref, author, committer, oid, note, force);
5812  if (__result < 0) {
5813  __GIT_THROW_EXCEPTION(__result, "git_note_create");
5814  } else {
5815  return out;
5816  }
5817 }
5818 
5819 
5820 
5821 inline void note_commit_create(git_oid *notes_commit_out, git_oid *notes_blob_out, git_repository *repo, git_commit *parent, const git_signature *author, const git_signature *committer, const git_oid *oid, const char *note, int allow_note_overwrite) {
5822  auto __result = git_note_commit_create(notes_commit_out, notes_blob_out, repo, parent, author, committer, oid, note, allow_note_overwrite);
5823  if (__result < 0) {
5824  __GIT_THROW_EXCEPTION(__result, "git_note_commit_create");
5825  }
5826 }
5827 
5828 
5829 
5830 inline void note_remove(git_repository *repo, const char *notes_ref, const git_signature *author, const git_signature *committer, const git_oid *oid) {
5831  auto __result = git_note_remove(repo, notes_ref, author, committer, oid);
5832  if (__result < 0) {
5833  __GIT_THROW_EXCEPTION(__result, "git_note_remove");
5834  }
5835 }
5836 
5837 
5838 
5839 inline void note_commit_remove(git_oid *notes_commit_out, git_repository *repo, git_commit *notes_commit, const git_signature *author, const git_signature *committer, const git_oid *oid) {
5840  auto __result = git_note_commit_remove(notes_commit_out, repo, notes_commit, author, committer, oid);
5841  if (__result < 0) {
5842  __GIT_THROW_EXCEPTION(__result, "git_note_commit_remove");
5843  }
5844 }
5845 
5846 
5847 
5848 inline void note_free(git_note *note) {
5849  git_note_free(note);
5850 }
5851 
5852 
5853 
5854 inline git_buf note_default_ref(git_repository *repo) {
5855  git_buf out;
5856  auto __result = git_note_default_ref(&out, repo);
5857  if (__result < 0) {
5858  __GIT_THROW_EXCEPTION(__result, "git_note_default_ref");
5859  } else {
5860  return out;
5861  }
5862 }
5863 
5864 
5865 
5866 inline void note_foreach(git_repository *repo, const char *notes_ref, git_note_foreach_cb note_cb, void *payload) {
5867  auto __result = git_note_foreach(repo, notes_ref, note_cb, payload);
5868  if (__result < 0) {
5869  __GIT_THROW_EXCEPTION(__result, "git_note_foreach");
5870  }
5871 }
5872 
5873 
5874 
5875 inline git_odb *odb_new() {
5876  git_odb *out;
5877  auto __result = git_odb_new(&out);
5878  if (__result < 0) {
5879  __GIT_THROW_EXCEPTION(__result, "git_odb_new");
5880  } else {
5881  return out;
5882  }
5883 }
5884 
5885 
5886 
5887 inline git_odb *odb_open(const char *objects_dir) {
5888  git_odb *out;
5889  auto __result = git_odb_open(&out, objects_dir);
5890  if (__result < 0) {
5891  __GIT_THROW_EXCEPTION(__result, "git_odb_open");
5892  } else {
5893  return out;
5894  }
5895 }
5896 
5897 
5898 
5899 inline void odb_add_disk_alternate(git_odb *odb, const char *path) {
5900  auto __result = git_odb_add_disk_alternate(odb, path);
5901  if (__result < 0) {
5902  __GIT_THROW_EXCEPTION(__result, "git_odb_add_disk_alternate");
5903  }
5904 }
5905 
5906 
5907 
5908 inline void odb_free(git_odb *db) {
5909  git_odb_free(db);
5910 }
5911 
5912 
5913 
5914 inline git_odb_object *odb_read(git_odb *db, const git_oid *id) {
5915  git_odb_object *out;
5916  auto __result = git_odb_read(&out, db, id);
5917  if (__result < 0) {
5918  __GIT_THROW_EXCEPTION(__result, "git_odb_read");
5919  } else {
5920  return out;
5921  }
5922 }
5923 
5924 
5925 
5926 inline git_odb_object *odb_read_prefix(git_odb *db, const git_oid *short_id, size_t len) {
5927  git_odb_object *out;
5928  auto __result = git_odb_read_prefix(&out, db, short_id, len);
5929  if (__result < 0) {
5930  __GIT_THROW_EXCEPTION(__result, "git_odb_read_prefix");
5931  } else {
5932  return out;
5933  }
5934 }
5935 
5936 
5937 
5938 inline void odb_read_header(size_t *len_out, git_object_t *type_out, git_odb *db, const git_oid *id) {
5939  auto __result = git_odb_read_header(len_out, type_out, db, id);
5940  if (__result < 0) {
5941  __GIT_THROW_EXCEPTION(__result, "git_odb_read_header");
5942  }
5943 }
5944 
5945 
5946 
5947 inline void odb_exists(git_odb *db, const git_oid *id) {
5948  auto __result = git_odb_exists(db, id);
5949  if (__result < 0) {
5950  __GIT_THROW_EXCEPTION(__result, "git_odb_exists");
5951  }
5952 }
5953 
5954 
5955 
5956 inline void odb_exists_ext(git_odb *db, const git_oid *id, unsigned int flags) {
5957  auto __result = git_odb_exists_ext(db, id, flags);
5958  if (__result < 0) {
5959  __GIT_THROW_EXCEPTION(__result, "git_odb_exists_ext");
5960  }
5961 }
5962 
5963 
5964 
5965 inline git_oid odb_exists_prefix(git_odb *db, const git_oid *short_id, size_t len) {
5966  git_oid out;
5967  auto __result = git_odb_exists_prefix(&out, db, short_id, len);
5968  if (__result < 0) {
5969  __GIT_THROW_EXCEPTION(__result, "git_odb_exists_prefix");
5970  } else {
5971  return out;
5972  }
5973 }
5974 
5975 
5976 
5977 inline void odb_expand_ids(git_odb *db, git_odb_expand_id *ids, size_t count) {
5978  auto __result = git_odb_expand_ids(db, ids, count);
5979  if (__result < 0) {
5980  __GIT_THROW_EXCEPTION(__result, "git_odb_expand_ids");
5981  }
5982 }
5983 
5984 
5985 
5986 inline void odb_refresh(struct git_odb *db) {
5987  auto __result = git_odb_refresh(db);
5988  if (__result < 0) {
5989  __GIT_THROW_EXCEPTION(__result, "git_odb_refresh");
5990  }
5991 }
5992 
5993 
5994 
5995 inline void odb_foreach(git_odb *db, git_odb_foreach_cb cb, void *payload) {
5996  auto __result = git_odb_foreach(db, cb, payload);
5997  if (__result < 0) {
5998  __GIT_THROW_EXCEPTION(__result, "git_odb_foreach");
5999  }
6000 }
6001 
6002 
6003 
6004 inline git_oid odb_write(git_odb *odb, const void *data, size_t len, git_object_t type) {
6005  git_oid out;
6006  auto __result = git_odb_write(&out, odb, data, len, type);
6007  if (__result < 0) {
6008  __GIT_THROW_EXCEPTION(__result, "git_odb_write");
6009  } else {
6010  return out;
6011  }
6012 }
6013 
6014 
6015 
6016 inline git_odb_stream *odb_open_wstream(git_odb *db, git_object_size_t size, git_object_t type) {
6017  git_odb_stream *out;
6018  auto __result = git_odb_open_wstream(&out, db, size, type);
6019  if (__result < 0) {
6020  __GIT_THROW_EXCEPTION(__result, "git_odb_open_wstream");
6021  } else {
6022  return out;
6023  }
6024 }
6025 
6026 
6027 
6028 inline void odb_stream_write(git_odb_stream *stream, const char *buffer, size_t len) {
6029  auto __result = git_odb_stream_write(stream, buffer, len);
6030  if (__result < 0) {
6031  __GIT_THROW_EXCEPTION(__result, "git_odb_stream_write");
6032  }
6033 }
6034 
6035 
6036 
6037 inline git_oid odb_stream_finalize_write(git_odb_stream *stream) {
6038  git_oid out;
6039  auto __result = git_odb_stream_finalize_write(&out, stream);
6040  if (__result < 0) {
6041  __GIT_THROW_EXCEPTION(__result, "git_odb_stream_finalize_write");
6042  } else {
6043  return out;
6044  }
6045 }
6046 
6047 
6048 
6049 inline void odb_stream_read(git_odb_stream *stream, char *buffer, size_t len) {
6050  auto __result = git_odb_stream_read(stream, buffer, len);
6051  if (__result < 0) {
6052  __GIT_THROW_EXCEPTION(__result, "git_odb_stream_read");
6053  }
6054 }
6055 
6056 
6057 
6058 inline void odb_stream_free(git_odb_stream *stream) {
6059  git_odb_stream_free(stream);
6060 }
6061 
6062 
6063 
6064 inline git_odb_stream *odb_open_rstream(size_t *len, git_object_t *type, git_odb *db, const git_oid *oid) {
6065  git_odb_stream *out;
6066  auto __result = git_odb_open_rstream(&out, len, type, db, oid);
6067  if (__result < 0) {
6068  __GIT_THROW_EXCEPTION(__result, "git_odb_open_rstream");
6069  } else {
6070  return out;
6071  }
6072 }
6073 
6074 
6075 
6076 inline git_odb_writepack *odb_write_pack(git_odb *db, git_indexer_progress_cb progress_cb, void *progress_payload) {
6077  git_odb_writepack *out;
6078  auto __result = git_odb_write_pack(&out, db, progress_cb, progress_payload);
6079  if (__result < 0) {
6080  __GIT_THROW_EXCEPTION(__result, "git_odb_write_pack");
6081  } else {
6082  return out;
6083  }
6084 }
6085 
6086 
6087 
6088 inline void odb_write_multi_pack_index(git_odb *db) {
6089  auto __result = git_odb_write_multi_pack_index(db);
6090  if (__result < 0) {
6091  __GIT_THROW_EXCEPTION(__result, "git_odb_write_multi_pack_index");
6092  }
6093 }
6094 
6095 
6096 
6097 inline git_oid odb_hash(const void *data, size_t len, git_object_t type) {
6098  git_oid out;
6099  auto __result = git_odb_hash(&out, data, len, type);
6100  if (__result < 0) {
6101  __GIT_THROW_EXCEPTION(__result, "git_odb_hash");
6102  } else {
6103  return out;
6104  }
6105 }
6106 
6107 
6108 
6109 inline git_oid odb_hashfile(const char *path, git_object_t type) {
6110  git_oid out;
6111  auto __result = git_odb_hashfile(&out, path, type);
6112  if (__result < 0) {
6113  __GIT_THROW_EXCEPTION(__result, "git_odb_hashfile");
6114  } else {
6115  return out;
6116  }
6117 }
6118 
6119 
6120 
6121 inline void odb_object_dup(git_odb_object **dest, git_odb_object *source) {
6122  auto __result = git_odb_object_dup(dest, source);
6123  if (__result < 0) {
6124  __GIT_THROW_EXCEPTION(__result, "git_odb_object_dup");
6125  }
6126 }
6127 
6128 
6129 
6130 inline void odb_object_free(git_odb_object *object) {
6131  git_odb_object_free(object);
6132 }
6133 
6134 
6135 
6136 inline const git_oid *odb_object_id(git_odb_object *object) {
6137  auto __result = git_odb_object_id(object);
6138  return __result;
6139 }
6140 
6141 
6142 
6143 inline const void *odb_object_data(git_odb_object *object) {
6144  auto __result = git_odb_object_data(object);
6145  return __result;
6146 }
6147 
6148 
6149 
6150 inline size_t odb_object_size(git_odb_object *object) {
6151  auto __result = git_odb_object_size(object);
6152  return __result;
6153 }
6154 
6155 
6156 
6157 inline git_object_t odb_object_type(git_odb_object *object) {
6158  auto __result = git_odb_object_type(object);
6159  return __result;
6160 }
6161 
6162 
6163 
6164 inline void odb_add_backend(git_odb *odb, git_odb_backend *backend, int priority) {
6165  auto __result = git_odb_add_backend(odb, backend, priority);
6166  if (__result < 0) {
6167  __GIT_THROW_EXCEPTION(__result, "git_odb_add_backend");
6168  }
6169 }
6170 
6171 
6172 
6173 inline void odb_add_alternate(git_odb *odb, git_odb_backend *backend, int priority) {
6174  auto __result = git_odb_add_alternate(odb, backend, priority);
6175  if (__result < 0) {
6176  __GIT_THROW_EXCEPTION(__result, "git_odb_add_alternate");
6177  }
6178 }
6179 
6180 
6181 
6182 inline size_t odb_num_backends(git_odb *odb) {
6183  auto __result = git_odb_num_backends(odb);
6184  return __result;
6185 }
6186 
6187 
6188 
6189 inline git_odb_backend *odb_get_backend(git_odb *odb, size_t pos) {
6190  git_odb_backend *out;
6191  auto __result = git_odb_get_backend(&out, odb, pos);
6192  if (__result < 0) {
6193  __GIT_THROW_EXCEPTION(__result, "git_odb_get_backend");
6194  } else {
6195  return out;
6196  }
6197 }
6198 
6199 
6200 
6201 inline void odb_set_commit_graph(git_odb *odb, git_commit_graph *cgraph) {
6202  auto __result = git_odb_set_commit_graph(odb, cgraph);
6203  if (__result < 0) {
6204  __GIT_THROW_EXCEPTION(__result, "git_odb_set_commit_graph");
6205  }
6206 }
6207 
6208 
6209 
6210 inline git_odb_backend *odb_backend_pack(const char *objects_dir) {
6211  git_odb_backend *out;
6212  auto __result = git_odb_backend_pack(&out, objects_dir);
6213  if (__result < 0) {
6214  __GIT_THROW_EXCEPTION(__result, "git_odb_backend_pack");
6215  } else {
6216  return out;
6217  }
6218 }
6219 
6220 
6221 
6222 inline git_odb_backend *odb_backend_loose(const char *objects_dir, int compression_level, int do_fsync, unsigned int dir_mode, unsigned int file_mode) {
6223  git_odb_backend *out;
6224  auto __result = git_odb_backend_loose(&out, objects_dir, compression_level, do_fsync, dir_mode, file_mode);
6225  if (__result < 0) {
6226  __GIT_THROW_EXCEPTION(__result, "git_odb_backend_loose");
6227  } else {
6228  return out;
6229  }
6230 }
6231 
6232 
6233 
6234 inline git_odb_backend *odb_backend_one_pack(const char *index_file) {
6235  git_odb_backend *out;
6236  auto __result = git_odb_backend_one_pack(&out, index_file);
6237  if (__result < 0) {
6238  __GIT_THROW_EXCEPTION(__result, "git_odb_backend_one_pack");
6239  } else {
6240  return out;
6241  }
6242 }
6243 
6244 
6245 
6246 inline git_repository *patch_owner(const git_patch *patch) {
6247  auto __result = git_patch_owner(patch);
6248  return __result;
6249 }
6250 
6251 
6252 
6253 inline git_patch *patch_from_diff(git_diff *diff, size_t idx) {
6254  git_patch *out;
6255  auto __result = git_patch_from_diff(&out, diff, idx);
6256  if (__result < 0) {
6257  __GIT_THROW_EXCEPTION(__result, "git_patch_from_diff");
6258  } else {
6259  return out;
6260  }
6261 }
6262 
6263 
6264 
6265 inline git_patch *patch_from_blobs(const git_blob *old_blob, const char *old_as_path, const git_blob *new_blob, const char *new_as_path, const git_diff_options *opts) {
6266  git_patch *out;
6267  auto __result = git_patch_from_blobs(&out, old_blob, old_as_path, new_blob, new_as_path, opts);
6268  if (__result < 0) {
6269  __GIT_THROW_EXCEPTION(__result, "git_patch_from_blobs");
6270  } else {
6271  return out;
6272  }
6273 }
6274 
6275 
6276 
6277 inline git_patch *patch_from_blob_and_buffer(const git_blob *old_blob, const char *old_as_path, const void *buffer, size_t buffer_len, const char *buffer_as_path, const git_diff_options *opts) {
6278  git_patch *out;
6279  auto __result = git_patch_from_blob_and_buffer(&out, old_blob, old_as_path, buffer, buffer_len, buffer_as_path, opts);
6280  if (__result < 0) {
6281  __GIT_THROW_EXCEPTION(__result, "git_patch_from_blob_and_buffer");
6282  } else {
6283  return out;
6284  }
6285 }
6286 
6287 
6288 
6289 inline git_patch *patch_from_buffers(const void *old_buffer, size_t old_len, const char *old_as_path, const void *new_buffer, size_t new_len, const char *new_as_path, const git_diff_options *opts) {
6290  git_patch *out;
6291  auto __result = git_patch_from_buffers(&out, old_buffer, old_len, old_as_path, new_buffer, new_len, new_as_path, opts);
6292  if (__result < 0) {
6293  __GIT_THROW_EXCEPTION(__result, "git_patch_from_buffers");
6294  } else {
6295  return out;
6296  }
6297 }
6298 
6299 
6300 
6301 inline void patch_free(git_patch *patch) {
6302  git_patch_free(patch);
6303 }
6304 
6305 
6306 
6307 inline const git_diff_delta *patch_get_delta(const git_patch *patch) {
6308  auto __result = git_patch_get_delta(patch);
6309  return __result;
6310 }
6311 
6312 
6313 
6314 inline size_t patch_num_hunks(const git_patch *patch) {
6315  auto __result = git_patch_num_hunks(patch);
6316  return __result;
6317 }
6318 
6319 
6320 
6321 inline void patch_line_stats(size_t *total_context, size_t *total_additions, size_t *total_deletions, const git_patch *patch) {
6322  auto __result = git_patch_line_stats(total_context, total_additions, total_deletions, patch);
6323  if (__result < 0) {
6324  __GIT_THROW_EXCEPTION(__result, "git_patch_line_stats");
6325  }
6326 }
6327 
6328 
6329 
6330 inline const git_diff_hunk *patch_get_hunk(size_t *lines_in_hunk, git_patch *patch, size_t hunk_idx) {
6331  const git_diff_hunk *out;
6332  auto __result = git_patch_get_hunk(&out, lines_in_hunk, patch, hunk_idx);
6333  if (__result < 0) {
6334  __GIT_THROW_EXCEPTION(__result, "git_patch_get_hunk");
6335  } else {
6336  return out;
6337  }
6338 }
6339 
6340 
6341 
6342 inline void patch_num_lines_in_hunk(const git_patch *patch, size_t hunk_idx) {
6343  auto __result = git_patch_num_lines_in_hunk(patch, hunk_idx);
6344  if (__result < 0) {
6345  __GIT_THROW_EXCEPTION(__result, "git_patch_num_lines_in_hunk");
6346  }
6347 }
6348 
6349 
6350 
6351 inline const git_diff_line *patch_get_line_in_hunk(git_patch *patch, size_t hunk_idx, size_t line_of_hunk) {
6352  const git_diff_line *out;
6353  auto __result = git_patch_get_line_in_hunk(&out, patch, hunk_idx, line_of_hunk);
6354  if (__result < 0) {
6355  __GIT_THROW_EXCEPTION(__result, "git_patch_get_line_in_hunk");
6356  } else {
6357  return out;
6358  }
6359 }
6360 
6361 
6362 
6363 inline size_t patch_size(git_patch *patch, int include_context, int include_hunk_headers, int include_file_headers) {
6364  auto __result = git_patch_size(patch, include_context, include_hunk_headers, include_file_headers);
6365  return __result;
6366 }
6367 
6368 
6369 
6370 inline void patch_print(git_patch *patch, git_diff_line_cb print_cb, void *payload) {
6371  auto __result = git_patch_print(patch, print_cb, payload);
6372  if (__result < 0) {
6373  __GIT_THROW_EXCEPTION(__result, "git_patch_print");
6374  }
6375 }
6376 
6377 
6378 
6379 inline git_buf patch_to_buf(git_patch *patch) {
6380  git_buf out;
6381  auto __result = git_patch_to_buf(&out, patch);
6382  if (__result < 0) {
6383  __GIT_THROW_EXCEPTION(__result, "git_patch_to_buf");
6384  } else {
6385  return out;
6386  }
6387 }
6388 
6389 
6390 
6391 inline git_pathspec *pathspec_new(const git_strarray *pathspec) {
6392  git_pathspec *out;
6393  auto __result = git_pathspec_new(&out, pathspec);
6394  if (__result < 0) {
6395  __GIT_THROW_EXCEPTION(__result, "git_pathspec_new");
6396  } else {
6397  return out;
6398  }
6399 }
6400 
6401 
6402 
6403 inline void pathspec_free(git_pathspec *ps) {
6404  git_pathspec_free(ps);
6405 }
6406 
6407 
6408 
6409 inline void pathspec_matches_path(const git_pathspec *ps, uint32_t flags, const char *path) {
6410  auto __result = git_pathspec_matches_path(ps, flags, path);
6411  if (__result < 0) {
6412  __GIT_THROW_EXCEPTION(__result, "git_pathspec_matches_path");
6413  }
6414 }
6415 
6416 
6417 
6418 inline git_pathspec_match_list *pathspec_match_workdir(git_repository *repo, uint32_t flags, git_pathspec *ps) {
6419  git_pathspec_match_list *out;
6420  auto __result = git_pathspec_match_workdir(&out, repo, flags, ps);
6421  if (__result < 0) {
6422  __GIT_THROW_EXCEPTION(__result, "git_pathspec_match_workdir");
6423  } else {
6424  return out;
6425  }
6426 }
6427 
6428 
6429 
6430 inline git_pathspec_match_list *pathspec_match_index(git_index *index, uint32_t flags, git_pathspec *ps) {
6431  git_pathspec_match_list *out;
6432  auto __result = git_pathspec_match_index(&out, index, flags, ps);
6433  if (__result < 0) {
6434  __GIT_THROW_EXCEPTION(__result, "git_pathspec_match_index");
6435  } else {
6436  return out;
6437  }
6438 }
6439 
6440 
6441 
6442 inline git_pathspec_match_list *pathspec_match_tree(git_tree *tree, uint32_t flags, git_pathspec *ps) {
6443  git_pathspec_match_list *out;
6444  auto __result = git_pathspec_match_tree(&out, tree, flags, ps);
6445  if (__result < 0) {
6446  __GIT_THROW_EXCEPTION(__result, "git_pathspec_match_tree");
6447  } else {
6448  return out;
6449  }
6450 }
6451 
6452 
6453 
6454 inline git_pathspec_match_list *pathspec_match_diff(git_diff *diff, uint32_t flags, git_pathspec *ps) {
6455  git_pathspec_match_list *out;
6456  auto __result = git_pathspec_match_diff(&out, diff, flags, ps);
6457  if (__result < 0) {
6458  __GIT_THROW_EXCEPTION(__result, "git_pathspec_match_diff");
6459  } else {
6460  return out;
6461  }
6462 }
6463 
6464 
6465 
6466 inline void pathspec_match_list_free(git_pathspec_match_list *m) {
6467  git_pathspec_match_list_free(m);
6468 }
6469 
6470 
6471 
6472 inline size_t pathspec_match_list_entrycount(const git_pathspec_match_list *m) {
6473  auto __result = git_pathspec_match_list_entrycount(m);
6474  return __result;
6475 }
6476 
6477 
6478 
6479 inline const char *pathspec_match_list_entry(const git_pathspec_match_list *m, size_t pos) {
6480  auto __result = git_pathspec_match_list_entry(m, pos);
6481  return __result;
6482 }
6483 
6484 
6485 
6486 inline const git_diff_delta *pathspec_match_list_diff_entry(const git_pathspec_match_list *m, size_t pos) {
6487  auto __result = git_pathspec_match_list_diff_entry(m, pos);
6488  return __result;
6489 }
6490 
6491 
6492 
6493 inline size_t pathspec_match_list_failed_entrycount(const git_pathspec_match_list *m) {
6494  auto __result = git_pathspec_match_list_failed_entrycount(m);
6495  return __result;
6496 }
6497 
6498 
6499 
6500 inline const char *pathspec_match_list_failed_entry(const git_pathspec_match_list *m, size_t pos) {
6501  auto __result = git_pathspec_match_list_failed_entry(m, pos);
6502  return __result;
6503 }
6504 
6505 
6506 
6507 inline git_refdb *refdb_new(git_repository *repo) {
6508  git_refdb *out;
6509  auto __result = git_refdb_new(&out, repo);
6510  if (__result < 0) {
6511  __GIT_THROW_EXCEPTION(__result, "git_refdb_new");
6512  } else {
6513  return out;
6514  }
6515 }
6516 
6517 
6518 
6519 inline git_refdb *refdb_open(git_repository *repo) {
6520  git_refdb *out;
6521  auto __result = git_refdb_open(&out, repo);
6522  if (__result < 0) {
6523  __GIT_THROW_EXCEPTION(__result, "git_refdb_open");
6524  } else {
6525  return out;
6526  }
6527 }
6528 
6529 
6530 
6531 inline void refdb_compress(git_refdb *refdb) {
6532  auto __result = git_refdb_compress(refdb);
6533  if (__result < 0) {
6534  __GIT_THROW_EXCEPTION(__result, "git_refdb_compress");
6535  }
6536 }
6537 
6538 
6539 
6540 inline void refdb_free(git_refdb *refdb) {
6541  git_refdb_free(refdb);
6542 }
6543 
6544 
6545 
6546 inline git_reflog *reflog_read(git_repository *repo, const char *name) {
6547  git_reflog *out;
6548  auto __result = git_reflog_read(&out, repo, name);
6549  if (__result < 0) {
6550  __GIT_THROW_EXCEPTION(__result, "git_reflog_read");
6551  } else {
6552  return out;
6553  }
6554 }
6555 
6556 
6557 
6558 inline void reflog_write(git_reflog *reflog) {
6559  auto __result = git_reflog_write(reflog);
6560  if (__result < 0) {
6561  __GIT_THROW_EXCEPTION(__result, "git_reflog_write");
6562  }
6563 }
6564 
6565 
6566 
6567 inline void reflog_append(git_reflog *reflog, const git_oid *id, const git_signature *committer, const char *msg) {
6568  auto __result = git_reflog_append(reflog, id, committer, msg);
6569  if (__result < 0) {
6570  __GIT_THROW_EXCEPTION(__result, "git_reflog_append");
6571  }
6572 }
6573 
6574 
6575 
6576 inline void reflog_rename(git_repository *repo, const char *old_name, const char *name) {
6577  auto __result = git_reflog_rename(repo, old_name, name);
6578  if (__result < 0) {
6579  __GIT_THROW_EXCEPTION(__result, "git_reflog_rename");
6580  }
6581 }
6582 
6583 
6584 
6585 inline void reflog_delete(git_repository *repo, const char *name) {
6586  auto __result = git_reflog_delete(repo, name);
6587  if (__result < 0) {
6588  __GIT_THROW_EXCEPTION(__result, "git_reflog_delete");
6589  }
6590 }
6591 
6592 
6593 
6594 inline size_t reflog_entrycount(git_reflog *reflog) {
6595  auto __result = git_reflog_entrycount(reflog);
6596  return __result;
6597 }
6598 
6599 
6600 
6601 inline const git_reflog_entry *reflog_entry_byindex(const git_reflog *reflog, size_t idx) {
6602  auto __result = git_reflog_entry_byindex(reflog, idx);
6603  return __result;
6604 }
6605 
6606 
6607 
6608 inline void reflog_drop(git_reflog *reflog, size_t idx, int rewrite_previous_entry) {
6609  auto __result = git_reflog_drop(reflog, idx, rewrite_previous_entry);
6610  if (__result < 0) {
6611  __GIT_THROW_EXCEPTION(__result, "git_reflog_drop");
6612  }
6613 }
6614 
6615 
6616 
6617 inline const git_oid *reflog_entry_id_old(const git_reflog_entry *entry) {
6618  auto __result = git_reflog_entry_id_old(entry);
6619  return __result;
6620 }
6621 
6622 
6623 
6624 inline const git_oid *reflog_entry_id_new(const git_reflog_entry *entry) {
6625  auto __result = git_reflog_entry_id_new(entry);
6626  return __result;
6627 }
6628 
6629 
6630 
6631 inline const git_signature *reflog_entry_committer(const git_reflog_entry *entry) {
6632  auto __result = git_reflog_entry_committer(entry);
6633  return __result;
6634 }
6635 
6636 
6637 
6638 inline const char *reflog_entry_message(const git_reflog_entry *entry) {
6639  auto __result = git_reflog_entry_message(entry);
6640  return __result;
6641 }
6642 
6643 
6644 
6645 inline void reflog_free(git_reflog *reflog) {
6646  git_reflog_free(reflog);
6647 }
6648 
6649 
6650 
6651 inline void reset(git_repository *repo, const git_object *target, git_reset_t reset_type, const git_checkout_options *checkout_opts) {
6652  auto __result = git_reset(repo, target, reset_type, checkout_opts);
6653  if (__result < 0) {
6654  __GIT_THROW_EXCEPTION(__result, "git_reset");
6655  }
6656 }
6657 
6658 
6659 
6660 inline void reset_from_annotated(git_repository *repo, const git_annotated_commit *commit, git_reset_t reset_type, const git_checkout_options *checkout_opts) {
6661  auto __result = git_reset_from_annotated(repo, commit, reset_type, checkout_opts);
6662  if (__result < 0) {
6663  __GIT_THROW_EXCEPTION(__result, "git_reset_from_annotated");
6664  }
6665 }
6666 
6667 
6668 
6669 inline void reset_default(git_repository *repo, const git_object *target, const git_strarray *pathspecs) {
6670  auto __result = git_reset_default(repo, target, pathspecs);
6671  if (__result < 0) {
6672  __GIT_THROW_EXCEPTION(__result, "git_reset_default");
6673  }
6674 }
6675 
6676 
6677 
6678 inline git_revwalk *revwalk_new(git_repository *repo) {
6679  git_revwalk *out;
6680  auto __result = git_revwalk_new(&out, repo);
6681  if (__result < 0) {
6682  __GIT_THROW_EXCEPTION(__result, "git_revwalk_new");
6683  } else {
6684  return out;
6685  }
6686 }
6687 
6688 
6689 
6690 inline void revwalk_reset(git_revwalk *walker) {
6691  auto __result = git_revwalk_reset(walker);
6692  if (__result < 0) {
6693  __GIT_THROW_EXCEPTION(__result, "git_revwalk_reset");
6694  }
6695 }
6696 
6697 
6698 
6699 inline void revwalk_push(git_revwalk *walk, const git_oid *id) {
6700  auto __result = git_revwalk_push(walk, id);
6701  if (__result < 0) {
6702  __GIT_THROW_EXCEPTION(__result, "git_revwalk_push");
6703  }
6704 }
6705 
6706 
6707 
6708 inline void revwalk_push_glob(git_revwalk *walk, const char *glob) {
6709  auto __result = git_revwalk_push_glob(walk, glob);
6710  if (__result < 0) {
6711  __GIT_THROW_EXCEPTION(__result, "git_revwalk_push_glob");
6712  }
6713 }
6714 
6715 
6716 
6717 inline void revwalk_push_head(git_revwalk *walk) {
6718  auto __result = git_revwalk_push_head(walk);
6719  if (__result < 0) {
6720  __GIT_THROW_EXCEPTION(__result, "git_revwalk_push_head");
6721  }
6722 }
6723 
6724 
6725 
6726 inline void revwalk_hide(git_revwalk *walk, const git_oid *commit_id) {
6727  auto __result = git_revwalk_hide(walk, commit_id);
6728  if (__result < 0) {
6729  __GIT_THROW_EXCEPTION(__result, "git_revwalk_hide");
6730  }
6731 }
6732 
6733 
6734 
6735 inline void revwalk_hide_glob(git_revwalk *walk, const char *glob) {
6736  auto __result = git_revwalk_hide_glob(walk, glob);
6737  if (__result < 0) {
6738  __GIT_THROW_EXCEPTION(__result, "git_revwalk_hide_glob");
6739  }
6740 }
6741 
6742 
6743 
6744 inline void revwalk_hide_head(git_revwalk *walk) {
6745  auto __result = git_revwalk_hide_head(walk);
6746  if (__result < 0) {
6747  __GIT_THROW_EXCEPTION(__result, "git_revwalk_hide_head");
6748  }
6749 }
6750 
6751 
6752 
6753 inline void revwalk_push_ref(git_revwalk *walk, const char *refname) {
6754  auto __result = git_revwalk_push_ref(walk, refname);
6755  if (__result < 0) {
6756  __GIT_THROW_EXCEPTION(__result, "git_revwalk_push_ref");
6757  }
6758 }
6759 
6760 
6761 
6762 inline void revwalk_hide_ref(git_revwalk *walk, const char *refname) {
6763  auto __result = git_revwalk_hide_ref(walk, refname);
6764  if (__result < 0) {
6765  __GIT_THROW_EXCEPTION(__result, "git_revwalk_hide_ref");
6766  }
6767 }
6768 
6769 
6770 
6771 inline int revwalk_next(git_oid *out, git_revwalk *walk) {
6772  auto __result = git_revwalk_next(out, walk);
6773  return __result;
6774 }
6775 
6776 
6777 
6778 inline void revwalk_sorting(git_revwalk *walk, unsigned int sort_mode) {
6779  auto __result = git_revwalk_sorting(walk, sort_mode);
6780  if (__result < 0) {
6781  __GIT_THROW_EXCEPTION(__result, "git_revwalk_sorting");
6782  }
6783 }
6784 
6785 
6786 
6787 inline void revwalk_push_range(git_revwalk *walk, const char *range) {
6788  auto __result = git_revwalk_push_range(walk, range);
6789  if (__result < 0) {
6790  __GIT_THROW_EXCEPTION(__result, "git_revwalk_push_range");
6791  }
6792 }
6793 
6794 
6795 
6796 inline void revwalk_simplify_first_parent(git_revwalk *walk) {
6797  auto __result = git_revwalk_simplify_first_parent(walk);
6798  if (__result < 0) {
6799  __GIT_THROW_EXCEPTION(__result, "git_revwalk_simplify_first_parent");
6800  }
6801 }
6802 
6803 
6804 
6805 inline void revwalk_free(git_revwalk *walk) {
6806  git_revwalk_free(walk);
6807 }
6808 
6809 
6810 
6811 inline git_repository *revwalk_repository(git_revwalk *walk) {
6812  auto __result = git_revwalk_repository(walk);
6813  return __result;
6814 }
6815 
6816 
6817 
6818 inline void revwalk_add_hide_cb(git_revwalk *walk, git_revwalk_hide_cb hide_cb, void *payload) {
6819  auto __result = git_revwalk_add_hide_cb(walk, hide_cb, payload);
6820  if (__result < 0) {
6821  __GIT_THROW_EXCEPTION(__result, "git_revwalk_add_hide_cb");
6822  }
6823 }
6824 
6825 
6826 
6827 inline git_signature *signature_new(const char *name, const char *email, git_time_t time, int offset) {
6828  git_signature *out;
6829  auto __result = git_signature_new(&out, name, email, time, offset);
6830  if (__result < 0) {
6831  __GIT_THROW_EXCEPTION(__result, "git_signature_new");
6832  } else {
6833  return out;
6834  }
6835 }
6836 
6837 
6838 
6839 inline git_signature *signature_now(const char *name, const char *email) {
6840  git_signature *out;
6841  auto __result = git_signature_now(&out, name, email);
6842  if (__result < 0) {
6843  __GIT_THROW_EXCEPTION(__result, "git_signature_now");
6844  } else {
6845  return out;
6846  }
6847 }
6848 
6849 
6850 
6851 inline git_signature *signature_default(git_repository *repo) {
6852  git_signature *out;
6853  auto __result = git_signature_default(&out, repo);
6854  if (__result < 0) {
6855  __GIT_THROW_EXCEPTION(__result, "git_signature_default");
6856  } else {
6857  return out;
6858  }
6859 }
6860 
6861 
6862 
6863 inline git_signature *signature_from_buffer(const char *buf) {
6864  git_signature *out;
6865  auto __result = git_signature_from_buffer(&out, buf);
6866  if (__result < 0) {
6867  __GIT_THROW_EXCEPTION(__result, "git_signature_from_buffer");
6868  } else {
6869  return out;
6870  }
6871 }
6872 
6873 
6874 
6875 inline void signature_dup(git_signature **dest, const git_signature *sig) {
6876  auto __result = git_signature_dup(dest, sig);
6877  if (__result < 0) {
6878  __GIT_THROW_EXCEPTION(__result, "git_signature_dup");
6879  }
6880 }
6881 
6882 
6883 
6884 inline void signature_free(git_signature *sig) {
6885  git_signature_free(sig);
6886 }
6887 
6888 
6889 
6890 inline git_tag *tag_lookup(git_repository *repo, const git_oid *id) {
6891  git_tag *out;
6892  auto __result = git_tag_lookup(&out, repo, id);
6893  if (__result < 0) {
6894  __GIT_THROW_EXCEPTION(__result, "git_tag_lookup");
6895  } else {
6896  return out;
6897  }
6898 }
6899 
6900 
6901 
6902 inline git_tag *tag_lookup_prefix(git_repository *repo, const git_oid *id, size_t len) {
6903  git_tag *out;
6904  auto __result = git_tag_lookup_prefix(&out, repo, id, len);
6905  if (__result < 0) {
6906  __GIT_THROW_EXCEPTION(__result, "git_tag_lookup_prefix");
6907  } else {
6908  return out;
6909  }
6910 }
6911 
6912 
6913 
6914 inline void tag_free(git_tag *tag) {
6915  git_tag_free(tag);
6916 }
6917 
6918 
6919 
6920 inline const git_oid *tag_id(const git_tag *tag) {
6921  auto __result = git_tag_id(tag);
6922  return __result;
6923 }
6924 
6925 
6926 
6927 inline git_repository *tag_owner(const git_tag *tag) {
6928  auto __result = git_tag_owner(tag);
6929  return __result;
6930 }
6931 
6932 
6933 
6934 inline void tag_target(git_object **target_out, const git_tag *tag) {
6935  auto __result = git_tag_target(target_out, tag);
6936  if (__result < 0) {
6937  __GIT_THROW_EXCEPTION(__result, "git_tag_target");
6938  }
6939 }
6940 
6941 
6942 
6943 inline const git_oid *tag_target_id(const git_tag *tag) {
6944  auto __result = git_tag_target_id(tag);
6945  return __result;
6946 }
6947 
6948 
6949 
6950 inline git_object_t tag_target_type(const git_tag *tag) {
6951  auto __result = git_tag_target_type(tag);
6952  return __result;
6953 }
6954 
6955 
6956 
6957 inline const char *tag_name(const git_tag *tag) {
6958  auto __result = git_tag_name(tag);
6959  return __result;
6960 }
6961 
6962 
6963 
6964 inline const git_signature *tag_tagger(const git_tag *tag) {
6965  auto __result = git_tag_tagger(tag);
6966  return __result;
6967 }
6968 
6969 
6970 
6971 inline const char *tag_message(const git_tag *tag) {
6972  auto __result = git_tag_message(tag);
6973  return __result;
6974 }
6975 
6976 
6977 
6978 inline void tag_create(git_oid *oid, git_repository *repo, const char *tag_name, const git_object *target, const git_signature *tagger, const char *message, int force) {
6979  auto __result = git_tag_create(oid, repo, tag_name, target, tagger, message, force);
6980  if (__result < 0) {
6981  __GIT_THROW_EXCEPTION(__result, "git_tag_create");
6982  }
6983 }
6984 
6985 
6986 
6987 inline void tag_annotation_create(git_oid *oid, git_repository *repo, const char *tag_name, const git_object *target, const git_signature *tagger, const char *message) {
6988  auto __result = git_tag_annotation_create(oid, repo, tag_name, target, tagger, message);
6989  if (__result < 0) {
6990  __GIT_THROW_EXCEPTION(__result, "git_tag_annotation_create");
6991  }
6992 }
6993 
6994 
6995 
6996 inline void tag_create_from_buffer(git_oid *oid, git_repository *repo, const char *buffer, int force) {
6997  auto __result = git_tag_create_from_buffer(oid, repo, buffer, force);
6998  if (__result < 0) {
6999  __GIT_THROW_EXCEPTION(__result, "git_tag_create_from_buffer");
7000  }
7001 }
7002 
7003 
7004 
7005 inline void tag_create_lightweight(git_oid *oid, git_repository *repo, const char *tag_name, const git_object *target, int force) {
7006  auto __result = git_tag_create_lightweight(oid, repo, tag_name, target, force);
7007  if (__result < 0) {
7008  __GIT_THROW_EXCEPTION(__result, "git_tag_create_lightweight");
7009  }
7010 }
7011 
7012 
7013 
7014 inline void tag_delete(git_repository *repo, const char *tag_name) {
7015  auto __result = git_tag_delete(repo, tag_name);
7016  if (__result < 0) {
7017  __GIT_THROW_EXCEPTION(__result, "git_tag_delete");
7018  }
7019 }
7020 
7021 
7022 
7023 inline void tag_list(git_strarray *tag_names, git_repository *repo) {
7024  auto __result = git_tag_list(tag_names, repo);
7025  if (__result < 0) {
7026  __GIT_THROW_EXCEPTION(__result, "git_tag_list");
7027  }
7028 }
7029 
7030 
7031 
7032 inline void tag_list_match(git_strarray *tag_names, const char *pattern, git_repository *repo) {
7033  auto __result = git_tag_list_match(tag_names, pattern, repo);
7034  if (__result < 0) {
7035  __GIT_THROW_EXCEPTION(__result, "git_tag_list_match");
7036  }
7037 }
7038 
7039 
7040 
7041 inline void tag_foreach(git_repository *repo, git_tag_foreach_cb callback, void *payload) {
7042  auto __result = git_tag_foreach(repo, callback, payload);
7043  if (__result < 0) {
7044  __GIT_THROW_EXCEPTION(__result, "git_tag_foreach");
7045  }
7046 }
7047 
7048 
7049 
7050 inline void tag_peel(git_object **tag_target_out, const git_tag *tag) {
7051  auto __result = git_tag_peel(tag_target_out, tag);
7052  if (__result < 0) {
7053  __GIT_THROW_EXCEPTION(__result, "git_tag_peel");
7054  }
7055 }
7056 
7057 
7058 
7059 inline git_tag *tag_dup(git_tag *source) {
7060  git_tag *out;
7061  auto __result = git_tag_dup(&out, source);
7062  if (__result < 0) {
7063  __GIT_THROW_EXCEPTION(__result, "git_tag_dup");
7064  } else {
7065  return out;
7066  }
7067 }
7068 
7069 
7070 
7071 inline void tag_name_is_valid(int *valid, const char *name) {
7072  auto __result = git_tag_name_is_valid(valid, name);
7073  if (__result < 0) {
7074  __GIT_THROW_EXCEPTION(__result, "git_tag_name_is_valid");
7075  }
7076 }
7077 
7078 
7079 
7080 inline git_transaction *transaction_new(git_repository *repo) {
7081  git_transaction *out;
7082  auto __result = git_transaction_new(&out, repo);
7083  if (__result < 0) {
7084  __GIT_THROW_EXCEPTION(__result, "git_transaction_new");
7085  } else {
7086  return out;
7087  }
7088 }
7089 
7090 
7091 
7092 inline void transaction_lock_ref(git_transaction *tx, const char *refname) {
7093  auto __result = git_transaction_lock_ref(tx, refname);
7094  if (__result < 0) {
7095  __GIT_THROW_EXCEPTION(__result, "git_transaction_lock_ref");
7096  }
7097 }
7098 
7099 
7100 
7101 inline void transaction_set_target(git_transaction *tx, const char *refname, const git_oid *target, const git_signature *sig, const char *msg) {
7102  auto __result = git_transaction_set_target(tx, refname, target, sig, msg);
7103  if (__result < 0) {
7104  __GIT_THROW_EXCEPTION(__result, "git_transaction_set_target");
7105  }
7106 }
7107 
7108 
7109 
7110 inline void transaction_set_symbolic_target(git_transaction *tx, const char *refname, const char *target, const git_signature *sig, const char *msg) {
7111  auto __result = git_transaction_set_symbolic_target(tx, refname, target, sig, msg);
7112  if (__result < 0) {
7113  __GIT_THROW_EXCEPTION(__result, "git_transaction_set_symbolic_target");
7114  }
7115 }
7116 
7117 
7118 
7119 inline void transaction_set_reflog(git_transaction *tx, const char *refname, const git_reflog *reflog) {
7120  auto __result = git_transaction_set_reflog(tx, refname, reflog);
7121  if (__result < 0) {
7122  __GIT_THROW_EXCEPTION(__result, "git_transaction_set_reflog");
7123  }
7124 }
7125 
7126 
7127 
7128 inline void transaction_remove(git_transaction *tx, const char *refname) {
7129  auto __result = git_transaction_remove(tx, refname);
7130  if (__result < 0) {
7131  __GIT_THROW_EXCEPTION(__result, "git_transaction_remove");
7132  }
7133 }
7134 
7135 
7136 
7137 inline void transaction_commit(git_transaction *tx) {
7138  auto __result = git_transaction_commit(tx);
7139  if (__result < 0) {
7140  __GIT_THROW_EXCEPTION(__result, "git_transaction_commit");
7141  }
7142 }
7143 
7144 
7145 
7146 inline void transaction_free(git_transaction *tx) {
7147  git_transaction_free(tx);
7148 }
7149 
7150 
7151 
note_remove
void note_remove(git_repository *repo, const char *notes_ref, const git_signature *author, const git_signature *committer, const git_oid *oid)
Definition: gitwrap.hpp:5830
repository_open_from_worktree
git_repository * repository_open_from_worktree(git_worktree *wt)
Definition: gitwrap.hpp:237
describe_format_options_init
void describe_format_options_init(git_describe_format_options *opts, unsigned int version)
Definition: gitwrap.hpp:4555
tree_entry_byid
const git_tree_entry * tree_entry_byid(const git_tree *tree, const git_oid *id)
Definition: gitwrap.hpp:916
config_find_system
git_buf config_find_system()
Definition: gitwrap.hpp:4117
packbuilder_set_threads
unsigned int packbuilder_set_threads(git_packbuilder *pb, unsigned int n)
Definition: gitwrap.hpp:3219
reflog_entrycount
size_t reflog_entrycount(git_reflog *reflog)
Definition: gitwrap.hpp:6594
diff_buffers
void diff_buffers(const void *old_buffer, size_t old_len, const char *old_as_path, const void *new_buffer, size_t new_len, const char *new_as_path, const git_diff_options *options, git_diff_file_cb file_cb, git_diff_binary_cb binary_cb, git_diff_hunk_cb hunk_cb, git_diff_line_cb line_cb, void *payload)
Definition: gitwrap.hpp:1715
remote_lookup
git_remote * remote_lookup(git_repository *repo, const char *name)
Definition: gitwrap.hpp:3419
odb_backend_pack
git_odb_backend * odb_backend_pack(const char *objects_dir)
Definition: gitwrap.hpp:6210
config_set_int32
void config_set_int32(git_config *cfg, const char *name, int32_t value)
Definition: gitwrap.hpp:4351
repository_open_ext
git_repository * repository_open_ext(const char *path, unsigned int flags, const char *ceiling_dirs)
Definition: gitwrap.hpp:273
note_free
void note_free(git_note *note)
Definition: gitwrap.hpp:5848
remote_rename
void remote_rename(git_strarray *problems, git_repository *repo, const char *name, const char *new_name)
Definition: gitwrap.hpp:3751
config_entry_free
void config_entry_free(git_config_entry *entry)
Definition: gitwrap.hpp:4087
worktree_path
const char * worktree_path(const git_worktree *wt)
Definition: gitwrap.hpp:5477
filter_list_contains
void filter_list_contains(git_filter_list *filters, const char *name)
Definition: gitwrap.hpp:4655
checkout_index
void checkout_index(git_repository *repo, git_index *index, const git_checkout_options *opts)
Definition: gitwrap.hpp:2335
odb_stream_write
void odb_stream_write(git_odb_stream *stream, const char *buffer, size_t len)
Definition: gitwrap.hpp:6028
pathspec_match_tree
git_pathspec_match_list * pathspec_match_tree(git_tree *tree, uint32_t flags, git_pathspec *ps)
Definition: gitwrap.hpp:6442
reference_set_target
git_reference * reference_set_target(git_reference *ref, const git_oid *id, const char *log_message)
Definition: gitwrap.hpp:1287
config_get_int64
int64_t config_get_int64(const git_config *cfg, const char *name)
Definition: gitwrap.hpp:4252
odb_new
git_odb * odb_new()
Definition: gitwrap.hpp:5875
object_owner
git_repository * object_owner(const git_object *obj)
Definition: gitwrap.hpp:788
repository_set_workdir
void repository_set_workdir(git_repository *repo, const char *workdir, int update_gitlink)
Definition: gitwrap.hpp:429
odb_hashfile
git_oid odb_hashfile(const char *path, git_object_t type)
Definition: gitwrap.hpp:6109
repository_state
void repository_state(git_repository *repo)
Definition: gitwrap.hpp:612
remote_set_instance_url
void remote_set_instance_url(git_remote *remote, const char *url)
Definition: gitwrap.hpp:3486
worktree_validate
void worktree_validate(const git_worktree *wt)
Definition: gitwrap.hpp:5413
graph_reachable_from_any
void graph_reachable_from_any(git_repository *repo, const git_oid *commit, const git_oid descendant_array[], size_t length)
Definition: gitwrap.hpp:5583
remote_update_tips
void remote_update_tips(git_remote *remote, const git_remote_callbacks *callbacks, int update_fetchhead, git_remote_autotag_option_t download_tags, const char *reflog_message)
Definition: gitwrap.hpp:3683
note_default_ref
git_buf note_default_ref(git_repository *repo)
Definition: gitwrap.hpp:5854
packbuilder_new
git_packbuilder * packbuilder_new(git_repository *repo)
Definition: gitwrap.hpp:3207
note_author
const git_signature * note_author(const git_note *note)
Definition: gitwrap.hpp:5781
stash_apply
void stash_apply(git_repository *repo, size_t index, const git_stash_apply_options *options)
Definition: gitwrap.hpp:4959
patch_print
void patch_print(git_patch *patch, git_diff_line_cb print_cb, void *payload)
Definition: gitwrap.hpp:6370
submodule_update
void submodule_update(git_submodule *submodule, int init, git_submodule_update_options *options)
Definition: gitwrap.hpp:5081
odb_object_free
void odb_object_free(git_odb_object *object)
Definition: gitwrap.hpp:6130
filter_list_stream_file
void filter_list_stream_file(git_filter_list *filters, git_repository *repo, const char *path, git_writestream *target)
Definition: gitwrap.hpp:4709
tag_free
void tag_free(git_tag *tag)
Definition: gitwrap.hpp:6914
config_parse_bool
int config_parse_bool(const char *value)
Definition: gitwrap.hpp:4480
reflog_entry_message
const char * reflog_entry_message(const git_reflog_entry *entry)
Definition: gitwrap.hpp:6638
config_open_global
git_config * config_open_global(git_config *config)
Definition: gitwrap.hpp:4198
blob_create_from_disk
void blob_create_from_disk(git_oid *id, git_repository *repo, const char *path)
Definition: gitwrap.hpp:1999
packbuilder_foreach
void packbuilder_foreach(git_packbuilder *pb, git_packbuilder_foreach_cb cb, void *payload)
Definition: gitwrap.hpp:3303
odb_stream_finalize_write
git_oid odb_stream_finalize_write(git_odb_stream *stream)
Definition: gitwrap.hpp:6037
patch_num_lines_in_hunk
void patch_num_lines_in_hunk(const git_patch *patch, size_t hunk_idx)
Definition: gitwrap.hpp:6342
reference_create_matching
git_reference * reference_create_matching(git_repository *repo, const char *name, const git_oid *id, int force, const git_oid *current_id, const char *log_message)
Definition: gitwrap.hpp:1209
cherrypick_options_init
void cherrypick_options_init(git_cherrypick_options *opts, unsigned int version)
Definition: gitwrap.hpp:2965
annotated_commit_free
void annotated_commit_free(git_annotated_commit *commit)
Definition: gitwrap.hpp:726
describe_workdir
git_describe_result * describe_workdir(git_repository *repo, git_describe_options *opts)
Definition: gitwrap.hpp:4573
submodule_add_finalize
void submodule_add_finalize(git_submodule *submodule)
Definition: gitwrap.hpp:5153
commit_parent_id
const git_oid * commit_parent_id(const git_commit *commit, unsigned int n)
Definition: gitwrap.hpp:3987
diff_tree_to_index
void diff_tree_to_index(git_diff **diff, git_repository *repo, git_tree *old_tree, git_index *index, const git_diff_options *opts)
Definition: gitwrap.hpp:1567
credential_free
void credential_free(git_credential *cred)
Definition: gitwrap.hpp:3089
annotated_commit_id
const git_oid * annotated_commit_id(const git_annotated_commit *commit)
Definition: gitwrap.hpp:712
pathspec_match_list_entrycount
size_t pathspec_match_list_entrycount(const git_pathspec_match_list *m)
Definition: gitwrap.hpp:6472
cherrypick_commit
git_index * cherrypick_commit(git_repository *repo, git_commit *cherrypick_commit, git_commit *our_commit, unsigned int mainline, const git_merge_options *merge_options)
Definition: gitwrap.hpp:2974
worktree_prune
void worktree_prune(git_worktree *wt, git_worktree_prune_options *opts)
Definition: gitwrap.hpp:5502
status_byindex
const git_status_entry * status_byindex(git_status_list *statuslist, size_t idx)
Definition: gitwrap.hpp:5050
odb_open
git_odb * odb_open(const char *objects_dir)
Definition: gitwrap.hpp:5887
object_short_id
git_buf object_short_id(const git_object *obj)
Definition: gitwrap.hpp:769
tag_target
void tag_target(git_object **target_out, const git_tag *tag)
Definition: gitwrap.hpp:6934
submodule_name
const char * submodule_name(git_submodule *submodule)
Definition: gitwrap.hpp:5178
rebase_options_init
void rebase_options_init(git_rebase_options *opts, unsigned int version)
Definition: gitwrap.hpp:4733
odb_get_backend
git_odb_backend * odb_get_backend(git_odb *odb, size_t pos)
Definition: gitwrap.hpp:6189
odb_exists
void odb_exists(git_odb *db, const git_oid *id)
Definition: gitwrap.hpp:5947
config_get_entry
git_config_entry * config_get_entry(const git_config *cfg, const char *name)
Definition: gitwrap.hpp:4228
graph_descendant_of
void graph_descendant_of(git_repository *repo, const git_oid *commit, const git_oid *ancestor)
Definition: gitwrap.hpp:5574
oidarray_dispose
void oidarray_dispose(git_oidarray *array)
Definition: gitwrap.hpp:2353
reference_peel
git_object * reference_peel(const git_reference *ref, git_object_t type)
Definition: gitwrap.hpp:1503
odb_stream_read
void odb_stream_read(git_odb_stream *stream, char *buffer, size_t len)
Definition: gitwrap.hpp:6049
odb_read_prefix
git_odb_object * odb_read_prefix(git_odb *db, const git_oid *short_id, size_t len)
Definition: gitwrap.hpp:5926
blob_lookup_prefix
void blob_lookup_prefix(git_blob **blob, git_repository *repo, const git_oid *id, size_t len)
Definition: gitwrap.hpp:1926
stash_save
git_oid stash_save(git_repository *repo, const git_signature *stasher, const char *message, uint32_t flags)
Definition: gitwrap.hpp:4938
object_lookup_bypath
git_object * object_lookup_bypath(const git_object *treeish, const char *path, git_object_t type)
Definition: gitwrap.hpp:750
patch_line_stats
void patch_line_stats(size_t *total_context, size_t *total_additions, size_t *total_deletions, const git_patch *patch)
Definition: gitwrap.hpp:6321
repository_index
git_index * repository_index(git_repository *repo)
Definition: gitwrap.hpp:504
config_get_string_buf
git_buf config_get_string_buf(const git_config *cfg, const char *name)
Definition: gitwrap.hpp:4300
diff_find_similar
void diff_find_similar(git_diff *diff, const git_diff_find_options *options)
Definition: gitwrap.hpp:1621
tag_create
void tag_create(git_oid *oid, git_repository *repo, const char *tag_name, const git_object *target, const git_signature *tagger, const char *message, int force)
Definition: gitwrap.hpp:6978
diff_tree_to_workdir_with_index
void diff_tree_to_workdir_with_index(git_diff **diff, git_repository *repo, git_tree *old_tree, const git_diff_options *opts)
Definition: gitwrap.hpp:1594
blame_get_hunk_count
uint32_t blame_get_hunk_count(git_blame *blame)
Definition: gitwrap.hpp:2080
commit_committer_with_mailmap
git_signature * commit_committer_with_mailmap(const git_commit *commit, const git_mailmap *mailmap)
Definition: gitwrap.hpp:3918
indexer_append
void indexer_append(git_indexer *idx, const void *data, size_t size, git_indexer_progress *stats)
Definition: gitwrap.hpp:2380
odb_refresh
void odb_refresh(struct git_odb *db)
Definition: gitwrap.hpp:5986
ignore_path_is_ignored
void ignore_path_is_ignored(int *ignored, git_repository *repo, const char *path)
Definition: gitwrap.hpp:5610
revparse_ext
void revparse_ext(git_object **object_out, git_reference **reference_out, git_repository *repo, const char *spec)
Definition: gitwrap.hpp:4917
commit_author_with_mailmap
git_signature * commit_author_with_mailmap(const git_commit *commit, const git_mailmap *mailmap)
Definition: gitwrap.hpp:3930
odb_object_data
const void * odb_object_data(git_odb_object *object)
Definition: gitwrap.hpp:6143
config_open_level
git_config * config_open_level(const git_config *parent, git_config_level_t level)
Definition: gitwrap.hpp:4186
repository_state_cleanup
void repository_state_cleanup(git_repository *repo)
Definition: gitwrap.hpp:537
repository_workdir
const char * repository_workdir(const git_repository *repo)
Definition: gitwrap.hpp:415
worktree_unlock
void worktree_unlock(git_worktree *wt)
Definition: gitwrap.hpp:5452
config_backend_foreach_match
void config_backend_foreach_match(git_config_backend *backend, const char *regexp, git_config_foreach_cb callback, void *payload)
Definition: gitwrap.hpp:4528
remote_set_instance_pushurl
void remote_set_instance_pushurl(git_remote *remote, const char *url)
Definition: gitwrap.hpp:3495
odb_read_header
void odb_read_header(size_t *len_out, git_object_t *type_out, git_odb *db, const git_oid *id)
Definition: gitwrap.hpp:5938
reference_foreach_name
void reference_foreach_name(git_repository *repo, git_reference_foreach_name_cb callback, void *payload)
Definition: gitwrap.hpp:1344
reference_free
void reference_free(git_reference *ref)
Definition: gitwrap.hpp:1362
rebase_abort
void rebase_abort(git_rebase *rebase)
Definition: gitwrap.hpp:4842
rebase_free
void rebase_free(git_rebase *rebase)
Definition: gitwrap.hpp:4860
blob_filter
git_buf blob_filter(git_blob *blob, const char *as_path, git_blob_filter_options *opts)
Definition: gitwrap.hpp:1978
oid_fromraw
git_oid oid_fromraw(const unsigned char *raw)
Definition: gitwrap.hpp:76
tree_entry_id
const git_oid * tree_entry_id(const git_tree_entry *entry)
Definition: gitwrap.hpp:960
commit_message_raw
const char * commit_message_raw(const git_commit *commit)
Definition: gitwrap.hpp:3869
attr_add_macro
void attr_add_macro(git_repository *repo, const char *name, const char *values)
Definition: gitwrap.hpp:1908
status_foreach_ext
void status_foreach_ext(git_repository *repo, const git_status_options *opts, git_status_cb callback, void *payload)
Definition: gitwrap.hpp:5013
submodule_index_id
const git_oid * submodule_index_id(git_submodule *submodule)
Definition: gitwrap.hpp:5236
indexer_free
void indexer_free(git_indexer *idx)
Definition: gitwrap.hpp:2412
patch_from_diff
git_patch * patch_from_diff(git_diff *diff, size_t idx)
Definition: gitwrap.hpp:6253
reference_symbolic_create_matching
git_reference * reference_symbolic_create_matching(git_repository *repo, const char *name, const char *target, int force, const char *current_value, const char *log_message)
Definition: gitwrap.hpp:1173
index_read
void index_read(git_index *index, int force)
Definition: gitwrap.hpp:2489
packbuilder_set_callbacks
void packbuilder_set_callbacks(git_packbuilder *pb, git_packbuilder_progress progress_cb, void *progress_cb_payload)
Definition: gitwrap.hpp:3326
annotated_commit_lookup
git_annotated_commit * annotated_commit_lookup(git_repository *repo, const git_oid *id)
Definition: gitwrap.hpp:688
rebase_onto_name
const char * rebase_onto_name(git_rebase *rebase)
Definition: gitwrap.hpp:4780
revwalk_sorting
void revwalk_sorting(git_revwalk *walk, unsigned int sort_mode)
Definition: gitwrap.hpp:6778
reference_symbolic_create
git_reference * reference_symbolic_create(git_repository *repo, const char *name, const char *target, int force, const char *log_message)
Definition: gitwrap.hpp:1185
patch_from_blobs
git_patch * patch_from_blobs(const git_blob *old_blob, const char *old_as_path, const git_blob *new_blob, const char *new_as_path, const git_diff_options *opts)
Definition: gitwrap.hpp:6265
config_get_mapped
int config_get_mapped(const git_config *cfg, const char *name, const git_configmap *maps, size_t map_n)
Definition: gitwrap.hpp:4456
indexer_name
const char * indexer_name(const git_indexer *idx)
Definition: gitwrap.hpp:2405
refspec_free
void refspec_free(git_refspec *refspec)
Definition: gitwrap.hpp:3004
revwalk_push_range
void revwalk_push_range(git_revwalk *walk, const char *range)
Definition: gitwrap.hpp:6787
refdb_compress
void refdb_compress(git_refdb *refdb)
Definition: gitwrap.hpp:6531
remote_fetch
void remote_fetch(git_remote *remote, const git_strarray *refspecs, const git_fetch_options *opts, const char *reflog_message)
Definition: gitwrap.hpp:3692
merge_trees
git_index * merge_trees(git_repository *repo, const git_tree *ancestor_tree, const git_tree *our_tree, const git_tree *their_tree, const git_merge_options *opts)
Definition: gitwrap.hpp:2932
__GIT_THROW_EXCEPTION
#define __GIT_THROW_EXCEPTION(code, function)
Definition: git_interface.hpp:32
reference_foreach
void reference_foreach(git_repository *repo, git_reference_foreach_cb callback, void *payload)
Definition: gitwrap.hpp:1335
repository_open_bare
git_repository * repository_open_bare(const char *bare_path)
Definition: gitwrap.hpp:285
trace_set
void trace_set(git_trace_level_t level, git_trace_cb cb)
Definition: gitwrap.hpp:4866
revwalk_new
git_revwalk * revwalk_new(git_repository *repo)
Definition: gitwrap.hpp:6678
treebuilder_new
git_treebuilder * treebuilder_new(git_repository *repo, const git_tree *source)
Definition: gitwrap.hpp:1009
packbuilder_write
void packbuilder_write(git_packbuilder *pb, const char *path, unsigned int mode, git_indexer_progress_cb progress_cb, void *progress_cb_payload)
Definition: gitwrap.hpp:3280
pathspec_match_list_free
void pathspec_match_list_free(git_pathspec_match_list *m)
Definition: gitwrap.hpp:6466
reference_is_branch
void reference_is_branch(const git_reference *ref)
Definition: gitwrap.hpp:1458
odb_object_dup
void odb_object_dup(git_odb_object **dest, git_odb_object *source)
Definition: gitwrap.hpp:6121
blob_rawsize
git_object_size_t blob_rawsize(const git_blob *blob)
Definition: gitwrap.hpp:1962
revwalk_push_head
void revwalk_push_head(git_revwalk *walk)
Definition: gitwrap.hpp:6717
config_next
git_config_entry * config_next(git_config_iterator *iter)
Definition: gitwrap.hpp:4333
repository_item_path
git_buf repository_item_path(const git_repository *repo, git_repository_item_t item)
Definition: gitwrap.hpp:396
config_set_bool
void config_set_bool(git_config *cfg, const char *name, int value)
Definition: gitwrap.hpp:4369
blob_create_from_stream_commit
git_oid blob_create_from_stream_commit(git_writestream *stream)
Definition: gitwrap.hpp:2020
object_lookup_prefix
void object_lookup_prefix(git_object **object_out, git_repository *repo, const git_oid *id, size_t len, git_object_t type)
Definition: gitwrap.hpp:741
oid_shorten_new
git_oid_shorten * oid_shorten_new(size_t min_length)
Definition: gitwrap.hpp:203
repository_init_ext
git_repository * repository_init_ext(const char *repo_path, git_repository_init_options *opts)
Definition: gitwrap.hpp:324
branch_upstream_name
git_buf branch_upstream_name(git_repository *repo, const char *refname)
Definition: gitwrap.hpp:2248
index_read_tree
void index_read_tree(git_index *index, const git_tree *tree)
Definition: gitwrap.hpp:2521
diff_stats_to_buf
git_buf diff_stats_to_buf(const git_diff_stats *stats, git_diff_stats_format_t format, size_t width)
Definition: gitwrap.hpp:1769
transaction_remove
void transaction_remove(git_transaction *tx, const char *refname)
Definition: gitwrap.hpp:7128
worktree_name
const char * worktree_name(const git_worktree *wt)
Definition: gitwrap.hpp:5470
remote_default_branch
git_buf remote_default_branch(git_remote *remote)
Definition: gitwrap.hpp:3778
note_committer
const git_signature * note_committer(const git_note *note)
Definition: gitwrap.hpp:5788
repository_message
git_buf repository_message(git_repository *repo)
Definition: gitwrap.hpp:516
config_iterator_free
void config_iterator_free(git_config_iterator *iter)
Definition: gitwrap.hpp:4345
index_path
const char * index_path(const git_index *index)
Definition: gitwrap.hpp:2507
remote_get_push_refspecs
void remote_get_push_refspecs(git_strarray *array, const git_remote *remote)
Definition: gitwrap.hpp:3531
packbuilder_free
void packbuilder_free(git_packbuilder *pb)
Definition: gitwrap.hpp:3335
submodule_update_strategy
git_submodule_update_t submodule_update_strategy(git_submodule *submodule)
Definition: gitwrap.hpp:5273
repository_hashfile
git_oid repository_hashfile(git_repository *repo, const char *path, git_object_t type, const char *as_path)
Definition: gitwrap.hpp:564
worktree_is_locked
void worktree_is_locked(git_buf *reason, const git_worktree *wt)
Definition: gitwrap.hpp:5461
repository_fetchhead_foreach
void repository_fetchhead_foreach(git_repository *repo, git_repository_fetchhead_foreach_cb callback, void *payload)
Definition: gitwrap.hpp:546
index_owner
git_repository * index_owner(const git_index *index)
Definition: gitwrap.hpp:2448
signature_free
void signature_free(git_signature *sig)
Definition: gitwrap.hpp:6884
rebase_orig_head_id
const git_oid * rebase_orig_head_id(git_rebase *rebase)
Definition: gitwrap.hpp:4773
strarray_copy
void strarray_copy(git_strarray *tgt, const git_strarray *src)
Definition: gitwrap.hpp:1128
tree_entry_type
git_object_t tree_entry_type(const git_tree_entry *entry)
Definition: gitwrap.hpp:967
mailmap_from_buffer
git_mailmap * mailmap_from_buffer(const char *buf, size_t len)
Definition: gitwrap.hpp:5646
credential_userpass
git_credential * credential_userpass(const char *url, const char *user_from_url, unsigned int allowed_types, void *payload)
Definition: gitwrap.hpp:5511
odb_write
git_oid odb_write(git_odb *odb, const void *data, size_t len, git_object_t type)
Definition: gitwrap.hpp:6004
reference_is_tag
void reference_is_tag(const git_reference *ref)
Definition: gitwrap.hpp:1476
config_iterator_glob_new
git_config_iterator * config_iterator_glob_new(const git_config *cfg, const char *regexp)
Definition: gitwrap.hpp:4435
oid_is_zero
void oid_is_zero(const git_oid *id)
Definition: gitwrap.hpp:194
index_conflict_get
void index_conflict_get(const git_index_entry **ancestor_out, const git_index_entry **our_out, const git_index_entry **their_out, git_index *index, const char *path)
Definition: gitwrap.hpp:2737
transaction_new
git_transaction * transaction_new(git_repository *repo)
Definition: gitwrap.hpp:7080
index_update_all
void index_update_all(git_index *index, const git_strarray *pathspec, git_index_matched_path_cb callback, void *payload)
Definition: gitwrap.hpp:2701
filter_list_free
void filter_list_free(git_filter_list *filters)
Definition: gitwrap.hpp:4727
remote_stats
const git_indexer_progress * remote_stats(git_remote *remote)
Definition: gitwrap.hpp:3719
commit_lookup
git_commit * commit_lookup(git_repository *repo, const git_oid *id)
Definition: gitwrap.hpp:3811
odb_object_type
git_object_t odb_object_type(git_odb_object *object)
Definition: gitwrap.hpp:6157
reference_name
const char * reference_name(const git_reference *ref)
Definition: gitwrap.hpp:1249
index_write_tree
git_oid index_write_tree(git_index *index)
Definition: gitwrap.hpp:2530
submodule_ignore
git_submodule_ignore_t submodule_ignore(git_submodule *submodule)
Definition: gitwrap.hpp:5257
index_add_all
void index_add_all(git_index *index, const git_strarray *pathspec, unsigned int flags, git_index_matched_path_cb callback, void *payload)
Definition: gitwrap.hpp:2683
commit_header_field
git_buf commit_header_field(const git_commit *commit, const char *field)
Definition: gitwrap.hpp:4003
repository_config_snapshot
git_config * repository_config_snapshot(git_repository *repo)
Definition: gitwrap.hpp:468
commit_tree
git_tree * commit_tree(const git_commit *commit)
Definition: gitwrap.hpp:3949
refdb_open
git_refdb * refdb_open(git_repository *repo)
Definition: gitwrap.hpp:6519
config_free
void config_free(git_config *cfg)
Definition: gitwrap.hpp:4222
blob_data_is_binary
void blob_data_is_binary(const char *data, size_t len)
Definition: gitwrap.hpp:2050
commit_parentcount
unsigned int commit_parentcount(const git_commit *commit)
Definition: gitwrap.hpp:3968
index_checksum
const git_oid * index_checksum(git_index *index)
Definition: gitwrap.hpp:2514
config_get_int32
int32_t config_get_int32(const git_config *cfg, const char *name)
Definition: gitwrap.hpp:4240
filter_list_stream_buffer
void filter_list_stream_buffer(git_filter_list *filters, const char *buffer, size_t len, git_writestream *target)
Definition: gitwrap.hpp:4700
diff_index_to_index
void diff_index_to_index(git_diff **diff, git_repository *repo, git_index *old_index, git_index *new_index, const git_diff_options *opts)
Definition: gitwrap.hpp:1603
index_remove_bypath
void index_remove_bypath(git_index *index, const char *path)
Definition: gitwrap.hpp:2674
status_options_init
void status_options_init(git_status_options *opts, unsigned int version)
Definition: gitwrap.hpp:4995
treebuilder_remove
void treebuilder_remove(git_treebuilder *bld, const char *filename)
Definition: gitwrap.hpp:1062
repository_head_unborn
void repository_head_unborn(git_repository *repo)
Definition: gitwrap.hpp:378
commit_create
void commit_create(git_oid *id, git_repository *repo, const char *update_ref, const git_signature *author, const git_signature *committer, const char *message_encoding, const char *message, const git_tree *tree, size_t parent_count, const git_commit *parents[])
Definition: gitwrap.hpp:4024
indexer_options_init
void indexer_options_init(git_indexer_options *opts, unsigned int version)
Definition: gitwrap.hpp:2359
odb_add_backend
void odb_add_backend(git_odb *odb, git_odb_backend *backend, int priority)
Definition: gitwrap.hpp:6164
index_get_bypath
const git_index_entry * index_get_bypath(git_index *index, const char *path, int stage)
Definition: gitwrap.hpp:2577
repository_head_for_worktree
git_reference * repository_head_for_worktree(git_repository *repo, const char *name)
Definition: gitwrap.hpp:348
config_get_bool
int config_get_bool(const git_config *cfg, const char *name)
Definition: gitwrap.hpp:4264
signature_dup
void signature_dup(git_signature **dest, const git_signature *sig)
Definition: gitwrap.hpp:6875
pathspec_free
void pathspec_free(git_pathspec *ps)
Definition: gitwrap.hpp:6403
index_find_prefix
void index_find_prefix(size_t *at_pos, git_index *index, const char *prefix)
Definition: gitwrap.hpp:2719
note_create
git_oid note_create(git_repository *repo, const char *notes_ref, const git_signature *author, const git_signature *committer, const git_oid *oid, const char *note, int force)
Definition: gitwrap.hpp:5809
commit_body
const char * commit_body(git_commit *commit)
Definition: gitwrap.hpp:3883
error_set_str
void error_set_str(int error_class, const char *string)
Definition: gitwrap.hpp:4622
submodule_dup
git_submodule * submodule_dup(git_submodule *source)
Definition: gitwrap.hpp:5102
remote_prune_refs
void remote_prune_refs(const git_remote *remote)
Definition: gitwrap.hpp:3742
revwalk_reset
void revwalk_reset(git_revwalk *walker)
Definition: gitwrap.hpp:6690
reflog_drop
void reflog_drop(git_reflog *reflog, size_t idx, int rewrite_previous_entry)
Definition: gitwrap.hpp:6608
blob_create_from_buffer
void blob_create_from_buffer(git_oid *id, git_repository *repo, const void *buffer, size_t len)
Definition: gitwrap.hpp:2032
pathspec_match_list_entry
const char * pathspec_match_list_entry(const git_pathspec_match_list *m, size_t pos)
Definition: gitwrap.hpp:6479
diff_blob_to_buffer
void diff_blob_to_buffer(const git_blob *old_blob, const char *old_as_path, const char *buffer, size_t buffer_len, const char *buffer_as_path, const git_diff_options *options, git_diff_file_cb file_cb, git_diff_binary_cb binary_cb, git_diff_hunk_cb hunk_cb, git_diff_line_cb line_cb, void *payload)
Definition: gitwrap.hpp:1706
commit_parent
git_commit * commit_parent(const git_commit *commit, unsigned int n)
Definition: gitwrap.hpp:3975
oid_tostr_s
char * oid_tostr_s(const git_oid *oid)
Definition: gitwrap.hpp:124
worktree_is_prunable
void worktree_is_prunable(git_worktree *wt, git_worktree_prune_options *opts)
Definition: gitwrap.hpp:5493
commit_raw_header
const char * commit_raw_header(const git_commit *commit)
Definition: gitwrap.hpp:3942
merge
void merge(git_repository *repo, const git_annotated_commit **their_heads, size_t their_heads_len, const git_merge_options *merge_opts, const git_checkout_options *checkout_opts)
Definition: gitwrap.hpp:2956
remote_connect
void remote_connect(git_remote *remote, git_direction direction, const git_remote_callbacks *callbacks, const git_proxy_options *proxy_opts, const git_strarray *custom_headers)
Definition: gitwrap.hpp:3647
blob_rawcontent
const void * blob_rawcontent(const git_blob *blob)
Definition: gitwrap.hpp:1955
diff_find_options_init
void diff_find_options_init(git_diff_find_options *opts, unsigned int version)
Definition: gitwrap.hpp:1540
tag_lookup_prefix
git_tag * tag_lookup_prefix(git_repository *repo, const git_oid *id, size_t len)
Definition: gitwrap.hpp:6902
error_set
void error_set(int error_class, const char *fmt)
Definition: gitwrap.hpp:4616
note_message
const char * note_message(const git_note *note)
Definition: gitwrap.hpp:5795
branch_upstream
git_reference * branch_upstream(const git_reference *branch)
Definition: gitwrap.hpp:2227
packbuilder_insert_walk
void packbuilder_insert_walk(git_packbuilder *pb, git_revwalk *walk)
Definition: gitwrap.hpp:3253
index_caps
void index_caps(const git_index *index)
Definition: gitwrap.hpp:2455
object_type2string
const char * object_type2string(git_object_t type)
Definition: gitwrap.hpp:801
commit_create_v
void commit_create_v(git_oid *id, git_repository *repo, const char *update_ref, const git_signature *author, const git_signature *committer, const char *message_encoding, const char *message, const git_tree *tree, size_t parent_count)
Definition: gitwrap.hpp:4033
pathspec_match_list_failed_entry
const char * pathspec_match_list_failed_entry(const git_pathspec_match_list *m, size_t pos)
Definition: gitwrap.hpp:6500
index_write_tree_to
git_oid index_write_tree_to(git_index *index, git_repository *repo)
Definition: gitwrap.hpp:2542
commit_amend
void commit_amend(git_oid *id, const git_commit *commit_to_amend, const char *update_ref, const git_signature *author, const git_signature *committer, const char *message_encoding, const char *message, const git_tree *tree)
Definition: gitwrap.hpp:4042
filter_list_apply_to_blob
git_buf filter_list_apply_to_blob(git_filter_list *filters, git_blob *blob)
Definition: gitwrap.hpp:4688
submodule_head_id
const git_oid * submodule_head_id(git_submodule *submodule)
Definition: gitwrap.hpp:5243
message_prettify
git_buf message_prettify(const char *message, int strip_comments, char comment_char)
Definition: gitwrap.hpp:5691
transaction_set_target
void transaction_set_target(git_transaction *tx, const char *refname, const git_oid *target, const git_signature *sig, const char *msg)
Definition: gitwrap.hpp:7101
patch_get_delta
const git_diff_delta * patch_get_delta(const git_patch *patch)
Definition: gitwrap.hpp:6307
index_open
git_index * index_open(const char *index_path)
Definition: gitwrap.hpp:2418
index_conflict_iterator_new
void index_conflict_iterator_new(git_index_conflict_iterator **iterator_out, git_index *index)
Definition: gitwrap.hpp:2773
reference_iterator_glob_new
git_reference_iterator * reference_iterator_glob_new(git_repository *repo, const char *glob)
Definition: gitwrap.hpp:1389
reference_symbolic_set_target
git_reference * reference_symbolic_set_target(git_reference *ref, const char *target, const char *log_message)
Definition: gitwrap.hpp:1275
commit_free
void commit_free(git_commit *commit)
Definition: gitwrap.hpp:3835
rebase_finish
void rebase_finish(git_rebase *rebase, const git_signature *signature)
Definition: gitwrap.hpp:4851
pathspec_match_index
git_pathspec_match_list * pathspec_match_index(git_index *index, uint32_t flags, git_pathspec *ps)
Definition: gitwrap.hpp:6430
proxy_options_init
void proxy_options_init(git_proxy_options *opts, unsigned int version)
Definition: gitwrap.hpp:3341
diff_num_deltas_of_type
size_t diff_num_deltas_of_type(const git_diff *diff, git_delta_t type)
Definition: gitwrap.hpp:1637
reference_dup
void reference_dup(git_reference **dest, git_reference *source)
Definition: gitwrap.hpp:1353
rebase_inmemory_index
void rebase_inmemory_index(git_index **index, git_rebase *rebase)
Definition: gitwrap.hpp:4824
graph_ahead_behind
void graph_ahead_behind(size_t *ahead, size_t *behind, git_repository *repo, const git_oid *local, const git_oid *upstream)
Definition: gitwrap.hpp:5565
revparse_single
git_object * revparse_single(git_repository *repo, const char *spec)
Definition: gitwrap.hpp:4905
blame_buffer
git_blame * blame_buffer(git_blame *reference, const char *buffer, size_t buffer_len)
Definition: gitwrap.hpp:2113
odb_backend_loose
git_odb_backend * odb_backend_loose(const char *objects_dir, int compression_level, int do_fsync, unsigned int dir_mode, unsigned int file_mode)
Definition: gitwrap.hpp:6222
config_parse_int32
int32_t config_parse_int32(const char *value)
Definition: gitwrap.hpp:4492
submodule_branch
const char * submodule_branch(git_submodule *submodule)
Definition: gitwrap.hpp:5211
rebase_open
git_rebase * rebase_open(git_repository *repo, const git_rebase_options *opts)
Definition: gitwrap.hpp:4754
filter_list_load_ext
void filter_list_load_ext(git_filter_list **filters, git_repository *repo, git_blob *blob, const char *path, git_filter_mode_t mode, git_filter_options *opts)
Definition: gitwrap.hpp:4646
email_create_from_commit
git_buf email_create_from_commit(git_commit *commit, const git_email_create_options *opts)
Definition: gitwrap.hpp:5535
libgit2_features
int libgit2_features()
Definition: gitwrap.hpp:18
revwalk_add_hide_cb
void revwalk_add_hide_cb(git_revwalk *walk, git_revwalk_hide_cb hide_cb, void *payload)
Definition: gitwrap.hpp:6818
repository_set_head_detached_from_annotated
void repository_set_head_detached_from_annotated(git_repository *repo, const git_annotated_commit *committish)
Definition: gitwrap.hpp:594
remote_download
void remote_download(git_remote *remote, const git_strarray *refspecs, const git_fetch_options *opts)
Definition: gitwrap.hpp:3665
reference_resolve
git_reference * reference_resolve(const git_reference *ref)
Definition: gitwrap.hpp:1256
submodule_open
void submodule_open(git_repository **repo, git_submodule *submodule)
Definition: gitwrap.hpp:5335
blame_get_hunk_byline
const git_blame_hunk * blame_get_hunk_byline(git_blame *blame, size_t lineno)
Definition: gitwrap.hpp:2094
submodule_update_options_init
void submodule_update_options_init(git_submodule_update_options *opts, unsigned int version)
Definition: gitwrap.hpp:5072
repository_head_detached_for_worktree
void repository_head_detached_for_worktree(git_repository *repo, const char *name)
Definition: gitwrap.hpp:369
object_type
git_object_t object_type(const git_object *obj)
Definition: gitwrap.hpp:781
reference_has_log
void reference_has_log(git_repository *repo, const char *refname)
Definition: gitwrap.hpp:1440
tree_lookup_prefix
git_tree * tree_lookup_prefix(git_repository *repo, const git_oid *id, size_t len)
Definition: gitwrap.hpp:863
remote_add_push
void remote_add_push(git_repository *repo, const char *remote, const char *refspec)
Definition: gitwrap.hpp:3522
submodule_sync
void submodule_sync(git_submodule *submodule)
Definition: gitwrap.hpp:5326
submodule_add_setup
git_submodule * submodule_add_setup(git_repository *repo, const char *url, const char *path, int use_gitlink)
Definition: gitwrap.hpp:5129
config_new
git_config * config_new()
Definition: gitwrap.hpp:4153
diff_status_char
char diff_status_char(git_delta_t status)
Definition: gitwrap.hpp:1669
revwalk_push
void revwalk_push(git_revwalk *walk, const git_oid *id)
Definition: gitwrap.hpp:6699
mailmap_add_entry
void mailmap_add_entry(git_mailmap *mm, const char *real_name, const char *real_email, const char *replace_name, const char *replace_email)
Definition: gitwrap.hpp:5637
config_find_xdg
git_buf config_find_xdg()
Definition: gitwrap.hpp:4105
repository_head
git_reference * repository_head(git_repository *repo)
Definition: gitwrap.hpp:336
odb_write_multi_pack_index
void odb_write_multi_pack_index(git_odb *db)
Definition: gitwrap.hpp:6088
tree_entry_bypath
git_tree_entry * tree_entry_bypath(const git_tree *root, const char *path)
Definition: gitwrap.hpp:923
tree_entry_dup
git_tree_entry * tree_entry_dup(const git_tree_entry *source)
Definition: gitwrap.hpp:935
diff_index_to_workdir
void diff_index_to_workdir(git_diff **diff, git_repository *repo, git_index *index, const git_diff_options *opts)
Definition: gitwrap.hpp:1576
reference_is_note
void reference_is_note(const git_reference *ref)
Definition: gitwrap.hpp:1485
note_commit_create
void note_commit_create(git_oid *notes_commit_out, git_oid *notes_blob_out, git_repository *repo, git_commit *parent, const git_signature *author, const git_signature *committer, const git_oid *oid, const char *note, int allow_note_overwrite)
Definition: gitwrap.hpp:5821
tag_list_match
void tag_list_match(git_strarray *tag_names, const char *pattern, git_repository *repo)
Definition: gitwrap.hpp:7032
blob_dup
git_blob * blob_dup(git_blob *source)
Definition: gitwrap.hpp:2059
email_create_from_diff
git_buf email_create_from_diff(git_diff *diff, size_t patch_idx, size_t patch_count, const git_oid *commit_id, const char *summary, const char *body, const git_signature *author, const git_email_create_options *opts)
Definition: gitwrap.hpp:5523
remote_set_url
void remote_set_url(git_repository *repo, const char *remote, const char *url)
Definition: gitwrap.hpp:3468
oid_fmt
char oid_fmt(const git_oid *id)
Definition: gitwrap.hpp:88
oid_cpy
git_oid oid_cpy(const git_oid *src)
Definition: gitwrap.hpp:139
signature_from_buffer
git_signature * signature_from_buffer(const char *buf)
Definition: gitwrap.hpp:6863
credential_ssh_custom_new
git_credential * credential_ssh_custom_new(const char *username, const char *publickey, size_t publickey_len, git_credential_sign_cb sign_callback, void *payload)
Definition: gitwrap.hpp:3195
diff_from_buffer
git_diff * diff_from_buffer(const char *content, size_t content_len)
Definition: gitwrap.hpp:1724
index_conflict_next
void index_conflict_next(const git_index_entry **ancestor_out, const git_index_entry **our_out, const git_index_entry **their_out, git_index_conflict_iterator *iterator)
Definition: gitwrap.hpp:2782
remote_create_detached
git_remote * remote_create_detached(const char *url)
Definition: gitwrap.hpp:3407
commit_message_encoding
const char * commit_message_encoding(const git_commit *commit)
Definition: gitwrap.hpp:3855
branch_move
git_reference * branch_move(git_reference *branch, const char *new_branch_name, int force)
Definition: gitwrap.hpp:2191
mailmap_from_repository
git_mailmap * mailmap_from_repository(git_repository *repo)
Definition: gitwrap.hpp:5658
index_clear
void index_clear(git_index *index)
Definition: gitwrap.hpp:2561
odb_num_backends
size_t odb_num_backends(git_odb *odb)
Definition: gitwrap.hpp:6182
index_find
void index_find(size_t *at_pos, git_index *index, const char *path)
Definition: gitwrap.hpp:2710
reference_symbolic_target
const char * reference_symbolic_target(const git_reference *ref)
Definition: gitwrap.hpp:1235
error_clear
void error_clear()
Definition: gitwrap.hpp:4610
repository_is_bare
void repository_is_bare(const git_repository *repo)
Definition: gitwrap.hpp:438
diff_num_deltas
size_t diff_num_deltas(const git_diff *diff)
Definition: gitwrap.hpp:1630
mailmap_new
git_mailmap * mailmap_new()
Definition: gitwrap.hpp:5619
packbuilder_insert_tree
void packbuilder_insert_tree(git_packbuilder *pb, const git_oid *id)
Definition: gitwrap.hpp:3235
tree_id
const git_oid * tree_id(const git_tree *tree)
Definition: gitwrap.hpp:881
remote_owner
git_repository * remote_owner(const git_remote *remote)
Definition: gitwrap.hpp:3440
refspec_string
const char * refspec_string(const git_refspec *refspec)
Definition: gitwrap.hpp:3024
reflog_entry_byindex
const git_reflog_entry * reflog_entry_byindex(const git_reflog *reflog, size_t idx)
Definition: gitwrap.hpp:6601
reflog_free
void reflog_free(git_reflog *reflog)
Definition: gitwrap.hpp:6645
note_iterator_free
void note_iterator_free(git_note_iterator *it)
Definition: gitwrap.hpp:5742
tree_entry_free
void tree_entry_free(git_tree_entry *entry)
Definition: gitwrap.hpp:947
diff_tree_to_tree
git_diff * diff_tree_to_tree(git_repository *repo, git_tree *old_tree, git_tree *new_tree, const git_diff_options *opts)
Definition: gitwrap.hpp:1555
diff_free
void diff_free(git_diff *diff)
Definition: gitwrap.hpp:1549
reference_iterator_new
git_reference_iterator * reference_iterator_new(git_repository *repo)
Definition: gitwrap.hpp:1377
reflog_read
git_reflog * reflog_read(git_repository *repo, const char *name)
Definition: gitwrap.hpp:6546
object_peel
void object_peel(git_object **peeled, const git_object *object, git_object_t target_type)
Definition: gitwrap.hpp:824
blob_free
void blob_free(git_blob *blob)
Definition: gitwrap.hpp:1935
indexer_hash
const git_oid * indexer_hash(const git_indexer *idx)
Definition: gitwrap.hpp:2398
index_iterator_new
void index_iterator_new(git_index_iterator **iterator_out, git_index *index)
Definition: gitwrap.hpp:2629
submodule_location
void submodule_location(unsigned int *location_status, git_submodule *submodule)
Definition: gitwrap.hpp:5362
odb_add_alternate
void odb_add_alternate(git_odb *odb, git_odb_backend *backend, int priority)
Definition: gitwrap.hpp:6173
object_string2type
git_object_t object_string2type(const char *str)
Definition: gitwrap.hpp:808
reflog_delete
void reflog_delete(git_repository *repo, const char *name)
Definition: gitwrap.hpp:6585
repository_is_worktree
void repository_is_worktree(const git_repository *repo)
Definition: gitwrap.hpp:447
signature_new
git_signature * signature_new(const char *name, const char *email, git_time_t time, int offset)
Definition: gitwrap.hpp:6827
submodule_add_to_index
void submodule_add_to_index(git_submodule *submodule, int write_index)
Definition: gitwrap.hpp:5162
config_get_path
git_buf config_get_path(const git_config *cfg, const char *name)
Definition: gitwrap.hpp:4276
index_add_bypath
void index_add_bypath(git_index *index, const char *path)
Definition: gitwrap.hpp:2656
transaction_commit
void transaction_commit(git_transaction *tx)
Definition: gitwrap.hpp:7137
tag_create_from_buffer
void tag_create_from_buffer(git_oid *oid, git_repository *repo, const char *buffer, int force)
Definition: gitwrap.hpp:6996
index_conflict_iterator_free
void index_conflict_iterator_free(git_index_conflict_iterator *iterator)
Definition: gitwrap.hpp:2791
config_parse_int64
int64_t config_parse_int64(const char *value)
Definition: gitwrap.hpp:4504
tree_free
void tree_free(git_tree *tree)
Definition: gitwrap.hpp:875
repository_commondir
const char * repository_commondir(const git_repository *repo)
Definition: gitwrap.hpp:422
note_commit_read
git_note * note_commit_read(git_repository *repo, git_commit *notes_commit, const git_oid *oid)
Definition: gitwrap.hpp:5769
repository_init
git_repository * repository_init(const char *path, unsigned int is_bare)
Definition: gitwrap.hpp:303
libgit2_shutdown
void libgit2_shutdown()
Definition: gitwrap.hpp:5556
merge_base
git_oid merge_base(git_repository *repo, const git_oid *one, const git_oid *two)
Definition: gitwrap.hpp:2842
repository_ident
void repository_ident(const char **name, const char **email, const git_repository *repo)
Definition: gitwrap.hpp:646
tree_entry_filemode
git_filemode_t tree_entry_filemode(const git_tree_entry *entry)
Definition: gitwrap.hpp:974
tag_peel
void tag_peel(git_object **tag_target_out, const git_tag *tag)
Definition: gitwrap.hpp:7050
attr_get_many_ext
void attr_get_many_ext(const char **values_out, git_repository *repo, git_attr_options *opts, const char *path, size_t num_attr, const char **names)
Definition: gitwrap.hpp:1872
packbuilder_insert_commit
void packbuilder_insert_commit(git_packbuilder *pb, const git_oid *id)
Definition: gitwrap.hpp:3244
packbuilder_object_count
size_t packbuilder_object_count(git_packbuilder *pb)
Definition: gitwrap.hpp:3312
treebuilder_entrycount
size_t treebuilder_entrycount(git_treebuilder *bld)
Definition: gitwrap.hpp:1030
patch_get_hunk
const git_diff_hunk * patch_get_hunk(size_t *lines_in_hunk, git_patch *patch, size_t hunk_idx)
Definition: gitwrap.hpp:6330
tag_lookup
git_tag * tag_lookup(git_repository *repo, const git_oid *id)
Definition: gitwrap.hpp:6890
remote_create_options_init
void remote_create_options_init(git_remote_create_options *opts, unsigned int version)
Definition: gitwrap.hpp:3362
repository_get_namespace
const char * repository_get_namespace(git_repository *repo)
Definition: gitwrap.hpp:630
revert_commit
git_index * revert_commit(git_repository *repo, git_commit *revert_commit, git_commit *our_commit, unsigned int mainline, const git_merge_options *merge_options)
Definition: gitwrap.hpp:4884
refspec_force
void refspec_force(const git_refspec *refspec)
Definition: gitwrap.hpp:3031
index_write
void index_write(git_index *index)
Definition: gitwrap.hpp:2498
remote_pushurl
const char * remote_pushurl(const git_remote *remote)
Definition: gitwrap.hpp:3461
repository_set_namespace
void repository_set_namespace(git_repository *repo, const char *nmspace)
Definition: gitwrap.hpp:621
attr_get
void attr_get(const char **value_out, git_repository *repo, uint32_t flags, const char *path, const char *name)
Definition: gitwrap.hpp:1845
remote_free
void remote_free(git_remote *remote)
Definition: gitwrap.hpp:3593
diff_options_init
void diff_options_init(git_diff_options *opts, unsigned int version)
Definition: gitwrap.hpp:1531
tree_create_updated
git_oid tree_create_updated(git_repository *repo, git_tree *baseline, size_t nupdates, const git_tree_update *updates)
Definition: gitwrap.hpp:1110
libgit2_init
void libgit2_init()
Definition: gitwrap.hpp:5547
index_new
git_index * index_new()
Definition: gitwrap.hpp:2430
diff_patchid_options_init
void diff_patchid_options_init(git_diff_patchid_options *opts, unsigned int version)
Definition: gitwrap.hpp:1787
diff_stats_deletions
size_t diff_stats_deletions(const git_diff_stats *stats)
Definition: gitwrap.hpp:1762
oid_strcmp
void oid_strcmp(const git_oid *id, const char *str)
Definition: gitwrap.hpp:185
status_list_free
void status_list_free(git_status_list *statuslist)
Definition: gitwrap.hpp:5057
revwalk_free
void revwalk_free(git_revwalk *walk)
Definition: gitwrap.hpp:6805
oid_shorten_add
void oid_shorten_add(git_oid_shorten *os, const char *text_id)
Definition: gitwrap.hpp:210
object_dup
void object_dup(git_object **dest, git_object *source)
Definition: gitwrap.hpp:833
checkout_tree
void checkout_tree(git_repository *repo, const git_object *treeish, const git_checkout_options *opts)
Definition: gitwrap.hpp:2344
treebuilder_write
void treebuilder_write(git_oid *id, git_treebuilder *bld)
Definition: gitwrap.hpp:1080
reference_lookup
git_reference * reference_lookup(git_repository *repo, const char *name)
Definition: gitwrap.hpp:1137
worktree_lookup
git_worktree * worktree_lookup(git_repository *repo, const char *name)
Definition: gitwrap.hpp:5383
odb_write_pack
git_odb_writepack * odb_write_pack(git_odb *db, git_indexer_progress_cb progress_cb, void *progress_payload)
Definition: gitwrap.hpp:6076
branch_upstream_remote
void branch_upstream_remote(git_buf *buf, git_repository *repo, const char *refname)
Definition: gitwrap.hpp:2290
packbuilder_insert
void packbuilder_insert(git_packbuilder *pb, const git_oid *id, const char *name)
Definition: gitwrap.hpp:3226
attr_value
git_attr_value_t attr_value(const char *attr)
Definition: gitwrap.hpp:1838
reset_from_annotated
void reset_from_annotated(git_repository *repo, const git_annotated_commit *commit, git_reset_t reset_type, const git_checkout_options *checkout_opts)
Definition: gitwrap.hpp:6660
reference_foreach_glob
void reference_foreach_glob(git_repository *repo, const char *glob, git_reference_foreach_name_cb callback, void *payload)
Definition: gitwrap.hpp:1431
push_options_init
void push_options_init(git_push_options *opts, unsigned int version)
Definition: gitwrap.hpp:3629
tree_dup
git_tree * tree_dup(git_tree *source)
Definition: gitwrap.hpp:1098
stash_foreach
void stash_foreach(git_repository *repo, git_stash_cb callback, void *payload)
Definition: gitwrap.hpp:4968
patch_free
void patch_free(git_patch *patch)
Definition: gitwrap.hpp:6301
revwalk_hide_ref
void revwalk_hide_ref(git_revwalk *walk, const char *refname)
Definition: gitwrap.hpp:6762
stash_pop
void stash_pop(git_repository *repo, size_t index, const git_stash_apply_options *options)
Definition: gitwrap.hpp:4986
config_multivar_iterator_new
git_config_iterator * config_multivar_iterator_new(const git_config *cfg, const char *name, const char *regexp)
Definition: gitwrap.hpp:4321
merge_file_options_init
void merge_file_options_init(git_merge_file_options *opts, unsigned int version)
Definition: gitwrap.hpp:2806
branch_create_from_annotated
void branch_create_from_annotated(git_reference **ref_out, git_repository *repository, const char *branch_name, const git_annotated_commit *commit, int force)
Definition: gitwrap.hpp:2143
mailmap_free
void mailmap_free(git_mailmap *mm)
Definition: gitwrap.hpp:5631
reflog_entry_id_new
const git_oid * reflog_entry_id_new(const git_reflog_entry *entry)
Definition: gitwrap.hpp:6624
refspec_dst_matches
void refspec_dst_matches(const git_refspec *refspec, const char *refname)
Definition: gitwrap.hpp:3056
repository_refdb
git_refdb * repository_refdb(git_repository *repo)
Definition: gitwrap.hpp:492
refspec_dst
const char * refspec_dst(const git_refspec *refspec)
Definition: gitwrap.hpp:3017
repository_free
void repository_free(git_repository *repo)
Definition: gitwrap.hpp:297
tag_message
const char * tag_message(const git_tag *tag)
Definition: gitwrap.hpp:6971
annotated_commit_ref
const char * annotated_commit_ref(const git_annotated_commit *commit)
Definition: gitwrap.hpp:719
remote_name
const char * remote_name(const git_remote *remote)
Definition: gitwrap.hpp:3447
rebase_operation_byindex
git_rebase_operation * rebase_operation_byindex(git_rebase *rebase, size_t idx)
Definition: gitwrap.hpp:4808
diff_stats_free
void diff_stats_free(git_diff_stats *stats)
Definition: gitwrap.hpp:1781
submodule_resolve_url
git_buf submodule_resolve_url(git_repository *repo, const char *url)
Definition: gitwrap.hpp:5199
branch_remote_name
git_buf branch_remote_name(git_repository *repo, const char *refname)
Definition: gitwrap.hpp:2278
config_find_global
git_buf config_find_global()
Definition: gitwrap.hpp:4093
diff_merge
void diff_merge(git_diff *onto, const git_diff *from)
Definition: gitwrap.hpp:1612
blob_owner
git_repository * blob_owner(const git_blob *blob)
Definition: gitwrap.hpp:1948
reference_next
git_reference * reference_next(git_reference_iterator *iter)
Definition: gitwrap.hpp:1401
index_conflict_cleanup
void index_conflict_cleanup(git_index *index)
Definition: gitwrap.hpp:2755
mailmap_resolve_signature
git_signature * mailmap_resolve_signature(const git_mailmap *mm, const git_signature *sig)
Definition: gitwrap.hpp:5679
rebase_onto_id
const git_oid * rebase_onto_id(git_rebase *rebase)
Definition: gitwrap.hpp:4787
tag_annotation_create
void tag_annotation_create(git_oid *oid, git_repository *repo, const char *tag_name, const git_object *target, const git_signature *tagger, const char *message)
Definition: gitwrap.hpp:6987
pathspec_match_list_failed_entrycount
size_t pathspec_match_list_failed_entrycount(const git_pathspec_match_list *m)
Definition: gitwrap.hpp:6493
submodule_reload
void submodule_reload(git_submodule *submodule, int force)
Definition: gitwrap.hpp:5344
packbuilder_insert_recur
void packbuilder_insert_recur(git_packbuilder *pb, const git_oid *id, const char *name)
Definition: gitwrap.hpp:3262
revert_options_init
void revert_options_init(git_revert_options *opts, unsigned int version)
Definition: gitwrap.hpp:4875
patch_get_line_in_hunk
const git_diff_line * patch_get_line_in_hunk(git_patch *patch, size_t hunk_idx, size_t line_of_hunk)
Definition: gitwrap.hpp:6351
reflog_entry_id_old
const git_oid * reflog_entry_id_old(const git_reflog_entry *entry)
Definition: gitwrap.hpp:6617
repository_is_empty
void repository_is_empty(git_repository *repo)
Definition: gitwrap.hpp:387
refdb_new
git_refdb * refdb_new(git_repository *repo)
Definition: gitwrap.hpp:6507
attr_foreach_ext
void attr_foreach_ext(git_repository *repo, git_attr_options *opts, const char *path, git_attr_foreach_cb callback, void *payload)
Definition: gitwrap.hpp:1890
oid_cmp
int oid_cmp(const git_oid *a, const git_oid *b)
Definition: gitwrap.hpp:151
commit_lookup_prefix
git_commit * commit_lookup_prefix(git_repository *repo, const git_oid *id, size_t len)
Definition: gitwrap.hpp:3823
index_set_caps
void index_set_caps(git_index *index, int caps)
Definition: gitwrap.hpp:2464
blob_is_binary
void blob_is_binary(const git_blob *blob)
Definition: gitwrap.hpp:2041
refspec_src
const char * refspec_src(const git_refspec *refspec)
Definition: gitwrap.hpp:3010
submodule_set_update
void submodule_set_update(git_repository *repo, const char *name, git_submodule_update_t update)
Definition: gitwrap.hpp:5280
remote_init_callbacks
void remote_init_callbacks(git_remote_callbacks *opts, unsigned int version)
Definition: gitwrap.hpp:3611
tree_entry_cmp
void tree_entry_cmp(const git_tree_entry *e1, const git_tree_entry *e2)
Definition: gitwrap.hpp:988
index_add
void index_add(git_index *index, const git_index_entry *source_entry)
Definition: gitwrap.hpp:2602
remote_set_autotag
void remote_set_autotag(git_repository *repo, const char *remote, git_remote_autotag_option_t value)
Definition: gitwrap.hpp:3733
apply_options_init
void apply_options_init(git_apply_options *opts, unsigned int version)
Definition: gitwrap.hpp:1808
object_rawcontent_is_valid
void object_rawcontent_is_valid(int *valid, const char *buf, size_t len, git_object_t type)
Definition: gitwrap.hpp:842
index_remove_all
void index_remove_all(git_index *index, const git_strarray *pathspec, git_index_matched_path_cb callback, void *payload)
Definition: gitwrap.hpp:2692
revwalk_hide
void revwalk_hide(git_revwalk *walk, const git_oid *commit_id)
Definition: gitwrap.hpp:6726
merge_options_init
void merge_options_init(git_merge_options *opts, unsigned int version)
Definition: gitwrap.hpp:2815
note_commit_remove
void note_commit_remove(git_oid *notes_commit_out, git_repository *repo, git_commit *notes_commit, const git_signature *author, const git_signature *committer, const git_oid *oid)
Definition: gitwrap.hpp:5839
attr_cache_flush
void attr_cache_flush(git_repository *repo)
Definition: gitwrap.hpp:1899
reference_remove
void reference_remove(git_repository *repo, const char *name)
Definition: gitwrap.hpp:1317
branch_delete
void branch_delete(git_reference *branch)
Definition: gitwrap.hpp:2152
remote_set_pushurl
void remote_set_pushurl(git_repository *repo, const char *remote, const char *url)
Definition: gitwrap.hpp:3477
odb_stream_free
void odb_stream_free(git_odb_stream *stream)
Definition: gitwrap.hpp:6058
blob_lookup
void blob_lookup(git_blob **blob, git_repository *repo, const git_oid *id)
Definition: gitwrap.hpp:1917
blame_free
void blame_free(git_blame *blame)
Definition: gitwrap.hpp:2125
remote_dup
void remote_dup(git_remote **dest, git_remote *source)
Definition: gitwrap.hpp:3431
reference_target_peel
const git_oid * reference_target_peel(const git_reference *ref)
Definition: gitwrap.hpp:1228
reset
void reset(git_repository *repo, const git_object *target, git_reset_t reset_type, const git_checkout_options *checkout_opts)
Definition: gitwrap.hpp:6651
diff_foreach
void diff_foreach(git_diff *diff, git_diff_file_cb file_cb, git_diff_binary_cb binary_cb, git_diff_hunk_cb hunk_cb, git_diff_line_cb line_cb, void *payload)
Definition: gitwrap.hpp:1660
odb_foreach
void odb_foreach(git_odb *db, git_odb_foreach_cb cb, void *payload)
Definition: gitwrap.hpp:5995
config_open_default
git_config * config_open_default()
Definition: gitwrap.hpp:4141
patch_from_buffers
git_patch * patch_from_buffers(const void *old_buffer, size_t old_len, const char *old_as_path, const void *new_buffer, size_t new_len, const char *new_as_path, const git_diff_options *opts)
Definition: gitwrap.hpp:6289
commit_committer
const git_signature * commit_committer(const git_commit *commit)
Definition: gitwrap.hpp:3904
branch_name_is_valid
void branch_name_is_valid(int *valid, const char *name)
Definition: gitwrap.hpp:2308
commit_create_buffer
git_buf commit_create_buffer(git_repository *repo, const git_signature *author, const git_signature *committer, const char *message_encoding, const char *message, const git_tree *tree, size_t parent_count, const git_commit *parents[])
Definition: gitwrap.hpp:4051
remote_get_refspec
const git_refspec * remote_get_refspec(const git_remote *remote, size_t n)
Definition: gitwrap.hpp:3547
branch_iterator_free
void branch_iterator_free(git_branch_iterator *iter)
Definition: gitwrap.hpp:2185
repository_discover
git_buf repository_discover(const char *start_path, int across_fs, const char *ceiling_dirs)
Definition: gitwrap.hpp:261
reference_next_name
const char * reference_next_name(git_reference_iterator *iter)
Definition: gitwrap.hpp:1413
rebase_operation_entrycount
size_t rebase_operation_entrycount(git_rebase *rebase)
Definition: gitwrap.hpp:4794
index_entry_is_conflict
void index_entry_is_conflict(const git_index_entry *entry)
Definition: gitwrap.hpp:2620
clone_options_init
void clone_options_init(git_clone_options *opts, unsigned int version)
Definition: gitwrap.hpp:3790
reflog_append
void reflog_append(git_reflog *reflog, const git_oid *id, const git_signature *committer, const char *msg)
Definition: gitwrap.hpp:6567
diff_get_delta
const git_diff_delta * diff_get_delta(const git_diff *diff, size_t idx)
Definition: gitwrap.hpp:1644
refspec_parse
void refspec_parse(git_refspec **refspec, const char *input, int is_fetch)
Definition: gitwrap.hpp:2995
remote_list
git_strarray remote_list(git_repository *repo)
Definition: gitwrap.hpp:3599
submodule_set_url
void submodule_set_url(git_repository *repo, const char *name, const char *url)
Definition: gitwrap.hpp:5227
tag_target_id
const git_oid * tag_target_id(const git_tag *tag)
Definition: gitwrap.hpp:6943
merge_analysis
void merge_analysis(git_merge_analysis_t *analysis_out, git_merge_preference_t *preference_out, git_repository *repo, const git_annotated_commit **their_heads, size_t their_heads_len)
Definition: gitwrap.hpp:2824
submodule_fetch_recurse_submodules
git_submodule_recurse_t submodule_fetch_recurse_submodules(git_submodule *submodule)
Definition: gitwrap.hpp:5289
diff_is_sorted_icase
void diff_is_sorted_icase(const git_diff *diff)
Definition: gitwrap.hpp:1651
note_id
const git_oid * note_id(const git_note *note)
Definition: gitwrap.hpp:5802
stash_apply_options_init
void stash_apply_options_init(git_stash_apply_options *opts, unsigned int version)
Definition: gitwrap.hpp:4950
config_iterator_new
git_config_iterator * config_iterator_new(const git_config *cfg)
Definition: gitwrap.hpp:4423
branch_is_head
void branch_is_head(const git_reference *branch)
Definition: gitwrap.hpp:2260
attr_get_ext
void attr_get_ext(const char **value_out, git_repository *repo, git_attr_options *opts, const char *path, const char *name)
Definition: gitwrap.hpp:1854
reference_shorthand
const char * reference_shorthand(const git_reference *ref)
Definition: gitwrap.hpp:1524
refspec_transform
git_buf refspec_transform(const git_refspec *spec, const char *name)
Definition: gitwrap.hpp:3065
checkout_options_init
void checkout_options_init(git_checkout_options *opts, unsigned int version)
Definition: gitwrap.hpp:2317
message_trailers
void message_trailers(git_message_trailer_array *arr, const char *message)
Definition: gitwrap.hpp:5703
apply_to_tree
git_index * apply_to_tree(git_repository *repo, git_tree *preimage, git_diff *diff, const git_apply_options *options)
Definition: gitwrap.hpp:1817
repository_detach_head
void repository_detach_head(git_repository *repo)
Definition: gitwrap.hpp:603
filter_list_apply_to_buffer
git_buf filter_list_apply_to_buffer(git_filter_list *filters, const char *in, size_t in_len)
Definition: gitwrap.hpp:4664
remote_refspec_count
size_t remote_refspec_count(const git_remote *remote)
Definition: gitwrap.hpp:3540
remote_connected
void remote_connected(const git_remote *remote)
Definition: gitwrap.hpp:3566
reference_rename
void reference_rename(git_reference **new_ref, git_reference *ref, const char *new_name, int force, const char *log_message)
Definition: gitwrap.hpp:1299
config_foreach_match
void config_foreach_match(const git_config *cfg, const char *regexp, git_config_foreach_cb callback, void *payload)
Definition: gitwrap.hpp:4447
merge_commits
git_index * merge_commits(git_repository *repo, const git_commit *our_commit, const git_commit *their_commit, const git_merge_options *opts)
Definition: gitwrap.hpp:2944
repository_set_ident
void repository_set_ident(git_repository *repo, const char *name, const char *email)
Definition: gitwrap.hpp:655
tag_foreach
void tag_foreach(git_repository *repo, git_tag_foreach_cb callback, void *payload)
Definition: gitwrap.hpp:7041
patch_size
size_t patch_size(git_patch *patch, int include_context, int include_hunk_headers, int include_file_headers)
Definition: gitwrap.hpp:6363
transaction_set_reflog
void transaction_set_reflog(git_transaction *tx, const char *refname, const git_reflog *reflog)
Definition: gitwrap.hpp:7119
tag_delete
void tag_delete(git_repository *repo, const char *tag_name)
Definition: gitwrap.hpp:7014
rebase_init
git_rebase * rebase_init(git_repository *repo, const git_annotated_commit *branch, const git_annotated_commit *upstream, const git_annotated_commit *onto, const git_rebase_options *opts)
Definition: gitwrap.hpp:4742
remote_get_fetch_refspecs
void remote_get_fetch_refspecs(git_strarray *array, const git_remote *remote)
Definition: gitwrap.hpp:3513
config_foreach
void config_foreach(const git_config *cfg, git_config_foreach_cb callback, void *payload)
Definition: gitwrap.hpp:4414
config_find_programdata
git_buf config_find_programdata()
Definition: gitwrap.hpp:4129
merge_bases_many
git_oidarray merge_bases_many(git_repository *repo, size_t length, const git_oid input_array[])
Definition: gitwrap.hpp:2878
pathspec_new
git_pathspec * pathspec_new(const git_strarray *pathspec)
Definition: gitwrap.hpp:6391
diff_to_buf
git_buf diff_to_buf(git_diff *diff, git_diff_format_t format)
Definition: gitwrap.hpp:1685
worktree_free
void worktree_free(git_worktree *wt)
Definition: gitwrap.hpp:5407
branch_create
git_reference * branch_create(git_repository *repo, const char *branch_name, const git_commit *target, int force)
Definition: gitwrap.hpp:2131
blob_filter_options_init
void blob_filter_options_init(git_blob_filter_options *opts, unsigned int version)
Definition: gitwrap.hpp:1969
reference_is_remote
void reference_is_remote(const git_reference *ref)
Definition: gitwrap.hpp:1467
ignore_clear_internal_rules
void ignore_clear_internal_rules(git_repository *repo)
Definition: gitwrap.hpp:5601
transaction_free
void transaction_free(git_transaction *tx)
Definition: gitwrap.hpp:7146
repository_wrap_odb
git_repository * repository_wrap_odb(git_odb *odb)
Definition: gitwrap.hpp:249
index_conflict_add
void index_conflict_add(git_index *index, const git_index_entry *ancestor_entry, const git_index_entry *our_entry, const git_index_entry *their_entry)
Definition: gitwrap.hpp:2728
note_foreach
void note_foreach(git_repository *repo, const char *notes_ref, git_note_foreach_cb note_cb, void *payload)
Definition: gitwrap.hpp:5866
config_set_string
void config_set_string(git_config *cfg, const char *name, const char *value)
Definition: gitwrap.hpp:4378
credential_username_new
git_credential * credential_username_new(const char *username)
Definition: gitwrap.hpp:3135
reset_default
void reset_default(git_repository *repo, const git_object *target, const git_strarray *pathspecs)
Definition: gitwrap.hpp:6669
tag_create_lightweight
void tag_create_lightweight(git_oid *oid, git_repository *repo, const char *tag_name, const git_object *target, int force)
Definition: gitwrap.hpp:7005
error_last
const git_error * error_last()
Definition: gitwrap.hpp:4603
index_iterator_next
const git_index_entry * index_iterator_next(git_index_iterator *iterator)
Definition: gitwrap.hpp:2638
diff_tree_to_workdir
void diff_tree_to_workdir(git_diff **diff, git_repository *repo, git_tree *old_tree, const git_diff_options *opts)
Definition: gitwrap.hpp:1585
remote_create_anonymous
git_remote * remote_create_anonymous(git_repository *repo, const char *url)
Definition: gitwrap.hpp:3395
packbuilder_name
const char * packbuilder_name(git_packbuilder *pb)
Definition: gitwrap.hpp:3296
submodule_wd_id
const git_oid * submodule_wd_id(git_submodule *submodule)
Definition: gitwrap.hpp:5250
credential_userpass_plaintext_new
git_credential * credential_userpass_plaintext_new(const char *username, const char *password)
Definition: gitwrap.hpp:3111
index_version
unsigned int index_version(git_index *index)
Definition: gitwrap.hpp:2473
rebase_orig_head_name
const char * rebase_orig_head_name(git_rebase *rebase)
Definition: gitwrap.hpp:4766
fetch_options_init
void fetch_options_init(git_fetch_options *opts, unsigned int version)
Definition: gitwrap.hpp:3620
config_parse_path
git_buf config_parse_path(const char *value)
Definition: gitwrap.hpp:4516
tree_entry_filemode_raw
git_filemode_t tree_entry_filemode_raw(const git_tree_entry *entry)
Definition: gitwrap.hpp:981
repository_mergehead_foreach
void repository_mergehead_foreach(git_repository *repo, git_repository_mergehead_foreach_cb callback, void *payload)
Definition: gitwrap.hpp:555
treebuilder_free
void treebuilder_free(git_treebuilder *bld)
Definition: gitwrap.hpp:1037
treebuilder_filter
void treebuilder_filter(git_treebuilder *bld, git_treebuilder_filter_cb filter, void *payload)
Definition: gitwrap.hpp:1071
patch_from_blob_and_buffer
git_patch * patch_from_blob_and_buffer(const git_blob *old_blob, const char *old_as_path, const void *buffer, size_t buffer_len, const char *buffer_as_path, const git_diff_options *opts)
Definition: gitwrap.hpp:6277
reference_normalize_name
void reference_normalize_name(char *buffer_out, size_t buffer_size, const char *name, unsigned int flags)
Definition: gitwrap.hpp:1494
revert
void revert(git_repository *repo, git_commit *commit, const git_revert_options *given_opts)
Definition: gitwrap.hpp:4896
revwalk_next
int revwalk_next(git_oid *out, git_revwalk *walk)
Definition: gitwrap.hpp:6771
apply
void apply(git_repository *repo, git_diff *diff, git_apply_location_t location, const git_apply_options *options)
Definition: gitwrap.hpp:1829
tag_name
const char * tag_name(const git_tag *tag)
Definition: gitwrap.hpp:6957
credential_ssh_key_memory_new
git_credential * credential_ssh_key_memory_new(const char *username, const char *publickey, const char *privatekey, const char *passphrase)
Definition: gitwrap.hpp:3159
revwalk_repository
git_repository * revwalk_repository(git_revwalk *walk)
Definition: gitwrap.hpp:6811
worktree_list
git_strarray worktree_list(git_repository *repo)
Definition: gitwrap.hpp:5371
reflog_write
void reflog_write(git_reflog *reflog)
Definition: gitwrap.hpp:6558
remote_upload
void remote_upload(git_remote *remote, const git_strarray *refspecs, const git_push_options *opts)
Definition: gitwrap.hpp:3674
repository_config
git_config * repository_config(git_repository *repo)
Definition: gitwrap.hpp:456
treebuilder_get
const git_tree_entry * treebuilder_get(git_treebuilder *bld, const char *filename)
Definition: gitwrap.hpp:1043
tree_entry_byindex
const git_tree_entry * tree_entry_byindex(const git_tree *tree, size_t idx)
Definition: gitwrap.hpp:909
repository_init_options_init
void repository_init_options_init(git_repository_init_options *opts, unsigned int version)
Definition: gitwrap.hpp:315
status_file
void status_file(unsigned int *status_flags, git_repository *repo, const char *path)
Definition: gitwrap.hpp:5022
status_foreach
void status_foreach(git_repository *repo, git_status_cb callback, void *payload)
Definition: gitwrap.hpp:5004
branch_upstream_merge
void branch_upstream_merge(git_buf *buf, git_repository *repo, const char *refname)
Definition: gitwrap.hpp:2299
merge_base_many
git_oid merge_base_many(git_repository *repo, size_t length, const git_oid input_array[])
Definition: gitwrap.hpp:2866
branch_is_checked_out
void branch_is_checked_out(const git_reference *branch)
Definition: gitwrap.hpp:2269
error_set_oom
void error_set_oom()
Definition: gitwrap.hpp:4631
submodule_path
const char * submodule_path(git_submodule *submodule)
Definition: gitwrap.hpp:5185
clone
git_repository * clone(const char *url, const char *local_path, const git_clone_options *options)
Definition: gitwrap.hpp:3799
reference_type
git_reference_t reference_type(const git_reference *ref)
Definition: gitwrap.hpp:1242
describe_commit
void describe_commit(git_describe_result **result, git_object *committish, git_describe_options *opts)
Definition: gitwrap.hpp:4564
blob_id
const git_oid * blob_id(const git_blob *blob)
Definition: gitwrap.hpp:1941
refspec_rtransform
git_buf refspec_rtransform(const git_refspec *spec, const char *name)
Definition: gitwrap.hpp:3077
tag_name_is_valid
void tag_name_is_valid(int *valid, const char *name)
Definition: gitwrap.hpp:7071
remote_create_with_fetchspec
git_remote * remote_create_with_fetchspec(git_repository *repo, const char *name, const char *url, const char *fetch)
Definition: gitwrap.hpp:3383
worktree_lock
void worktree_lock(git_worktree *wt, const char *reason)
Definition: gitwrap.hpp:5443
diff_stats_insertions
size_t diff_stats_insertions(const git_diff_stats *stats)
Definition: gitwrap.hpp:1755
reference_dwim
git_reference * reference_dwim(git_repository *repo, const char *shorthand)
Definition: gitwrap.hpp:1161
remote_create
git_remote * remote_create(git_repository *repo, const char *name, const char *url)
Definition: gitwrap.hpp:3350
index_conflict_remove
void index_conflict_remove(git_index *index, const char *path)
Definition: gitwrap.hpp:2746
worktree_add_options_init
void worktree_add_options_init(git_worktree_add_options *opts, unsigned int version)
Definition: gitwrap.hpp:5422
reference_iterator_free
void reference_iterator_free(git_reference_iterator *iter)
Definition: gitwrap.hpp:1425
branch_next
git_reference * branch_next(git_branch_t *out_type, git_branch_iterator *iter)
Definition: gitwrap.hpp:2173
status_should_ignore
void status_should_ignore(int *ignored, git_repository *repo, const char *path)
Definition: gitwrap.hpp:5063
repository_set_head_detached
void repository_set_head_detached(git_repository *repo, const git_oid *committish)
Definition: gitwrap.hpp:585
credential_default_new
git_credential * credential_default_new()
Definition: gitwrap.hpp:3123
submodule_url
const char * submodule_url(git_submodule *submodule)
Definition: gitwrap.hpp:5192
libgit2_version
void libgit2_version(int *major, int *minor, int *rev)
Definition: gitwrap.hpp:2
remote_prune
void remote_prune(git_remote *remote, const git_remote_callbacks *callbacks)
Definition: gitwrap.hpp:3701
filter_list_apply_to_file
git_buf filter_list_apply_to_file(git_filter_list *filters, git_repository *repo, const char *path)
Definition: gitwrap.hpp:4676
remote_autotag
git_remote_autotag_option_t remote_autotag(const git_remote *remote)
Definition: gitwrap.hpp:3726
submodule_repo_init
git_repository * submodule_repo_init(const git_submodule *sm, int use_gitlink)
Definition: gitwrap.hpp:5314
credential_ssh_key_from_agent
git_credential * credential_ssh_key_from_agent(const char *username)
Definition: gitwrap.hpp:3183
commit_create_with_signature
git_oid commit_create_with_signature(git_repository *repo, const char *commit_content, const char *signature, const char *signature_field)
Definition: gitwrap.hpp:4063
commit_author
const git_signature * commit_author(const git_commit *commit)
Definition: gitwrap.hpp:3911
branch_set_upstream
void branch_set_upstream(git_reference *branch, const char *branch_name)
Definition: gitwrap.hpp:2239
filter_list_stream_blob
void filter_list_stream_blob(git_filter_list *filters, git_blob *blob, git_writestream *target)
Definition: gitwrap.hpp:4718
packbuilder_hash
const git_oid * packbuilder_hash(git_packbuilder *pb)
Definition: gitwrap.hpp:3289
remote_name_is_valid
void remote_name_is_valid(int *valid, const char *remote_name)
Definition: gitwrap.hpp:3760
cherrypick
void cherrypick(git_repository *repo, git_commit *commit, const git_cherrypick_options *cherrypick_options)
Definition: gitwrap.hpp:2986
submodule_clone
git_repository * submodule_clone(git_submodule *submodule, const git_submodule_update_options *opts)
Definition: gitwrap.hpp:5141
commit_owner
git_repository * commit_owner(const git_commit *commit)
Definition: gitwrap.hpp:3848
refspec_direction
git_direction refspec_direction(const git_refspec *spec)
Definition: gitwrap.hpp:3040
remote_add_fetch
void remote_add_fetch(git_repository *repo, const char *remote, const char *refspec)
Definition: gitwrap.hpp:3504
reflog_entry_committer
const git_signature * reflog_entry_committer(const git_reflog_entry *entry)
Definition: gitwrap.hpp:6631
odb_read
git_odb_object * odb_read(git_odb *db, const git_oid *id)
Definition: gitwrap.hpp:5914
submodule_free
void submodule_free(git_submodule *submodule)
Definition: gitwrap.hpp:5114
index_remove
void index_remove(git_index *index, const char *path, int stage)
Definition: gitwrap.hpp:2584
remote_delete
void remote_delete(git_repository *repo, const char *name)
Definition: gitwrap.hpp:3769
worktree_open_from_repository
git_worktree * worktree_open_from_repository(git_repository *repo)
Definition: gitwrap.hpp:5395
treebuilder_clear
void treebuilder_clear(git_treebuilder *bld)
Definition: gitwrap.hpp:1021
remote_stop
void remote_stop(git_remote *remote)
Definition: gitwrap.hpp:3575
commit_time_offset
int commit_time_offset(const git_commit *commit)
Definition: gitwrap.hpp:3897
config_lock
void config_lock(git_transaction **tx, git_config *cfg)
Definition: gitwrap.hpp:4537
oid_fromstr
git_oid oid_fromstr(const char *str)
Definition: gitwrap.hpp:40
ignore_add_rule
void ignore_add_rule(git_repository *repo, const char *rules)
Definition: gitwrap.hpp:5592
index_entrycount
size_t index_entrycount(const git_index *index)
Definition: gitwrap.hpp:2554
commit_time
git_time_t commit_time(const git_commit *commit)
Definition: gitwrap.hpp:3890
diff_patchid
git_oid diff_patchid(git_diff *diff, git_diff_patchid_options *opts)
Definition: gitwrap.hpp:1796
merge_file_result_free
void merge_file_result_free(git_merge_file_result *result)
Definition: gitwrap.hpp:2926
fmt
libgit2_prerelease
const char * libgit2_prerelease()
Definition: gitwrap.hpp:11
strarray_dispose
void strarray_dispose(git_strarray *array)
Definition: gitwrap.hpp:1122
oid_equal
void oid_equal(const git_oid *a, const git_oid *b)
Definition: gitwrap.hpp:158
odb_free
void odb_free(git_odb *db)
Definition: gitwrap.hpp:5908
diff_stats_files_changed
size_t diff_stats_files_changed(const git_diff_stats *stats)
Definition: gitwrap.hpp:1748
remote_connect_options_init
void remote_connect_options_init(git_remote_connect_options *opts, unsigned int version)
Definition: gitwrap.hpp:3638
commit_nth_gen_ancestor
void commit_nth_gen_ancestor(git_commit **ancestor, const git_commit *commit, unsigned int n)
Definition: gitwrap.hpp:3994
worktree_prune_options_init
void worktree_prune_options_init(git_worktree_prune_options *opts, unsigned int version)
Definition: gitwrap.hpp:5484
reference_name_to_id
git_oid reference_name_to_id(git_repository *repo, const char *name)
Definition: gitwrap.hpp:1149
revwalk_push_ref
void revwalk_push_ref(git_revwalk *walk, const char *refname)
Definition: gitwrap.hpp:6753
submodule_owner
git_repository * submodule_owner(git_submodule *submodule)
Definition: gitwrap.hpp:5171
config_set_int64
void config_set_int64(git_config *cfg, const char *name, int64_t value)
Definition: gitwrap.hpp:4360
reference_delete
void reference_delete(git_reference *ref)
Definition: gitwrap.hpp:1308
revwalk_hide_head
void revwalk_hide_head(git_revwalk *walk)
Definition: gitwrap.hpp:6744
object_typeisloose
void object_typeisloose(git_object_t type)
Definition: gitwrap.hpp:815
merge_base_octopus
git_oid merge_base_octopus(git_repository *repo, size_t length, const git_oid input_array[])
Definition: gitwrap.hpp:2890
pathspec_matches_path
void pathspec_matches_path(const git_pathspec *ps, uint32_t flags, const char *path)
Definition: gitwrap.hpp:6409
repository_message_remove
void repository_message_remove(git_repository *repo)
Definition: gitwrap.hpp:528
refdb_free
void refdb_free(git_refdb *refdb)
Definition: gitwrap.hpp:6540
credential_has_username
void credential_has_username(git_credential *cred)
Definition: gitwrap.hpp:3095
tree_lookup
git_tree * tree_lookup(git_repository *repo, const git_oid *id)
Definition: gitwrap.hpp:851
odb_open_rstream
git_odb_stream * odb_open_rstream(size_t *len, git_object_t *type, git_odb *db, const git_oid *oid)
Definition: gitwrap.hpp:6064
reference_name_is_valid
void reference_name_is_valid(int *valid, const char *refname)
Definition: gitwrap.hpp:1515
tag_id
const git_oid * tag_id(const git_tag *tag)
Definition: gitwrap.hpp:6920
oid_fromstrn
git_oid oid_fromstrn(const char *str, size_t length)
Definition: gitwrap.hpp:64
repository_odb
git_odb * repository_odb(git_repository *repo)
Definition: gitwrap.hpp:480
tag_tagger
const git_signature * tag_tagger(const git_tag *tag)
Definition: gitwrap.hpp:6964
worktree_add
git_worktree * worktree_add(git_repository *repo, const char *name, const char *path, const git_worktree_add_options *opts)
Definition: gitwrap.hpp:5431
branch_lookup
git_reference * branch_lookup(git_repository *repo, const char *branch_name, git_branch_t branch_type)
Definition: gitwrap.hpp:2203
describe_format
git_buf describe_format(const git_describe_result *result, const git_describe_format_options *opts)
Definition: gitwrap.hpp:4585
rebase_operation_current
size_t rebase_operation_current(git_rebase *rebase)
Definition: gitwrap.hpp:4801
tree_entry_to_object
git_object * tree_entry_to_object(git_repository *repo, const git_tree_entry *entry)
Definition: gitwrap.hpp:997
credential_get_username
const char * credential_get_username(git_credential *cred)
Definition: gitwrap.hpp:3104
revwalk_hide_glob
void revwalk_hide_glob(git_revwalk *walk, const char *glob)
Definition: gitwrap.hpp:6735
odb_expand_ids
void odb_expand_ids(git_odb *db, git_odb_expand_id *ids, size_t count)
Definition: gitwrap.hpp:5977
transaction_lock_ref
void transaction_lock_ref(git_transaction *tx, const char *refname)
Definition: gitwrap.hpp:7092
index_free
void index_free(git_index *index)
Definition: gitwrap.hpp:2442
odb_exists_ext
void odb_exists_ext(git_odb *db, const git_oid *id, unsigned int flags)
Definition: gitwrap.hpp:5956
odb_object_size
size_t odb_object_size(git_odb_object *object)
Definition: gitwrap.hpp:6150
remote_disconnect
void remote_disconnect(git_remote *remote)
Definition: gitwrap.hpp:3584
submodule_set_fetch_recurse_submodules
void submodule_set_fetch_recurse_submodules(git_repository *repo, const char *name, git_submodule_recurse_t fetch_recurse_submodules)
Definition: gitwrap.hpp:5296
blob_create_from_stream
git_writestream * blob_create_from_stream(git_repository *repo, const char *hintpath)
Definition: gitwrap.hpp:2008
remote_ls
const git_remote_head ** remote_ls(size_t *size, git_remote *remote)
Definition: gitwrap.hpp:3554
odb_hash
git_oid odb_hash(const void *data, size_t len, git_object_t type)
Definition: gitwrap.hpp:6097
checkout_head
void checkout_head(git_repository *repo, const git_checkout_options *opts)
Definition: gitwrap.hpp:2326
patch_num_hunks
size_t patch_num_hunks(const git_patch *patch)
Definition: gitwrap.hpp:6314
packbuilder_written
size_t packbuilder_written(git_packbuilder *pb)
Definition: gitwrap.hpp:3319
patch_owner
git_repository * patch_owner(const git_patch *patch)
Definition: gitwrap.hpp:6246
oid_pathfmt
char oid_pathfmt(const git_oid *id)
Definition: gitwrap.hpp:112
treebuilder_insert
const git_tree_entry * treebuilder_insert(git_treebuilder *bld, const char *filename, const git_oid *id, git_filemode_t filemode)
Definition: gitwrap.hpp:1050
config_lookup_map_value
int config_lookup_map_value(const git_configmap *maps, size_t map_n, const char *value)
Definition: gitwrap.hpp:4468
remote_push
void remote_push(git_remote *remote, const git_strarray *refspecs, const git_push_options *opts)
Definition: gitwrap.hpp:3710
reference_target
const git_oid * reference_target(const git_reference *ref)
Definition: gitwrap.hpp:1221
object_free
void object_free(git_object *object)
Definition: gitwrap.hpp:795
config_set_multivar
void config_set_multivar(git_config *cfg, const char *name, const char *regexp, const char *value)
Definition: gitwrap.hpp:4387
pathspec_match_diff
git_pathspec_match_list * pathspec_match_diff(git_diff *diff, uint32_t flags, git_pathspec *ps)
Definition: gitwrap.hpp:6454
repository_open
git_repository * repository_open(const char *path)
Definition: gitwrap.hpp:225
submodule_set_ignore
void submodule_set_ignore(git_repository *repo, const char *name, git_submodule_ignore_t ignore)
Definition: gitwrap.hpp:5264
oid_streq
void oid_streq(const git_oid *id, const char *str)
Definition: gitwrap.hpp:176
submodule_lookup
git_submodule * submodule_lookup(git_repository *repo, const char *name)
Definition: gitwrap.hpp:5090
index_iterator_free
void index_iterator_free(git_index_iterator *iterator)
Definition: gitwrap.hpp:2650
merge_bases
git_oidarray merge_bases(git_repository *repo, const git_oid *one, const git_oid *two)
Definition: gitwrap.hpp:2854
config_get_multivar_foreach
void config_get_multivar_foreach(const git_config *cfg, const char *name, const char *regexp, git_config_foreach_cb callback, void *payload)
Definition: gitwrap.hpp:4312
odb_object_id
const git_oid * odb_object_id(git_odb_object *object)
Definition: gitwrap.hpp:6136
signature_now
git_signature * signature_now(const char *name, const char *email)
Definition: gitwrap.hpp:6839
odb_set_commit_graph
void odb_set_commit_graph(git_odb *odb, git_commit_graph *cgraph)
Definition: gitwrap.hpp:6201
tree_walk
void tree_walk(const git_tree *tree, git_treewalk_mode mode, git_treewalk_cb callback, void *payload)
Definition: gitwrap.hpp:1089
merge_file_input_init
void merge_file_input_init(git_merge_file_input *opts, unsigned int version)
Definition: gitwrap.hpp:2797
reflog_rename
void reflog_rename(git_repository *repo, const char *old_name, const char *name)
Definition: gitwrap.hpp:6576
credential_ssh_interactive_new
git_credential * credential_ssh_interactive_new(const char *username, git_credential_ssh_interactive_cb prompt_callback, void *payload)
Definition: gitwrap.hpp:3171
commit_tree_id
const git_oid * commit_tree_id(const git_commit *commit)
Definition: gitwrap.hpp:3961
submodule_foreach
void submodule_foreach(git_repository *repo, git_submodule_cb callback, void *payload)
Definition: gitwrap.hpp:5120
commit_id
const git_oid * commit_id(const git_commit *commit)
Definition: gitwrap.hpp:3841
odb_exists_prefix
git_oid odb_exists_prefix(git_odb *db, const git_oid *short_id, size_t len)
Definition: gitwrap.hpp:5965
index_remove_directory
void index_remove_directory(git_index *index, const char *dir, int stage)
Definition: gitwrap.hpp:2593
reference_ensure_log
void reference_ensure_log(git_repository *repo, const char *refname)
Definition: gitwrap.hpp:1449
remote_create_with_opts
git_remote * remote_create_with_opts(const char *url, const git_remote_create_options *opts)
Definition: gitwrap.hpp:3371
index_entry_stage
void index_entry_stage(const git_index_entry *entry)
Definition: gitwrap.hpp:2611
index_set_version
void index_set_version(git_index *index, unsigned int version)
Definition: gitwrap.hpp:2480
blame_get_hunk_byindex
const git_blame_hunk * blame_get_hunk_byindex(git_blame *blame, uint32_t index)
Definition: gitwrap.hpp:2087
mailmap_resolve
void mailmap_resolve(const char **real_name, const char **real_email, const git_mailmap *mm, const char *name, const char *email)
Definition: gitwrap.hpp:5670
describe_options_init
void describe_options_init(git_describe_options *opts, unsigned int version)
Definition: gitwrap.hpp:4546
remote_url
const char * remote_url(const git_remote *remote)
Definition: gitwrap.hpp:3454
tree_owner
git_repository * tree_owner(const git_tree *tree)
Definition: gitwrap.hpp:888
reference_list
void reference_list(git_strarray *array, git_repository *repo)
Definition: gitwrap.hpp:1326
odb_backend_one_pack
git_odb_backend * odb_backend_one_pack(const char *index_file)
Definition: gitwrap.hpp:6234
repository_head_detached
void repository_head_detached(git_repository *repo)
Definition: gitwrap.hpp:360
note_read
git_note * note_read(git_repository *repo, const char *notes_ref, const git_oid *oid)
Definition: gitwrap.hpp:5757
repository_is_shallow
void repository_is_shallow(git_repository *repo)
Definition: gitwrap.hpp:637
submodule_init
void submodule_init(git_submodule *submodule, int overwrite)
Definition: gitwrap.hpp:5305
pathspec_match_workdir
git_pathspec_match_list * pathspec_match_workdir(git_repository *repo, uint32_t flags, git_pathspec *ps)
Definition: gitwrap.hpp:6418
config_delete_multivar
void config_delete_multivar(git_config *cfg, const char *name, const char *regexp)
Definition: gitwrap.hpp:4405
tree_entry_name
const char * tree_entry_name(const git_tree_entry *entry)
Definition: gitwrap.hpp:953
patch_to_buf
git_buf patch_to_buf(git_patch *patch)
Definition: gitwrap.hpp:6379
indexer_commit
void indexer_commit(git_indexer *idx, git_indexer_progress *stats)
Definition: gitwrap.hpp:2389
diff_blobs
void diff_blobs(const git_blob *old_blob, const char *old_as_path, const git_blob *new_blob, const char *new_as_path, const git_diff_options *options, git_diff_file_cb file_cb, git_diff_binary_cb binary_cb, git_diff_hunk_cb hunk_cb, git_diff_line_cb line_cb, void *payload)
Definition: gitwrap.hpp:1697
merge_file
git_merge_file_result merge_file(const git_merge_file_input *ancestor, const git_merge_file_input *ours, const git_merge_file_input *theirs, const git_merge_file_options *opts)
Definition: gitwrap.hpp:2902
note_iterator_new
git_note_iterator * note_iterator_new(git_repository *repo, const char *notes_ref)
Definition: gitwrap.hpp:5718
object_id
const git_oid * object_id(const git_object *obj)
Definition: gitwrap.hpp:762
reference_cmp
void reference_cmp(const git_reference *ref1, const git_reference *ref2)
Definition: gitwrap.hpp:1368
diff_get_stats
git_diff_stats * diff_get_stats(git_diff *diff)
Definition: gitwrap.hpp:1736
revwalk_simplify_first_parent
void revwalk_simplify_first_parent(git_revwalk *walk)
Definition: gitwrap.hpp:6796
oid_shorten_free
void oid_shorten_free(git_oid_shorten *os)
Definition: gitwrap.hpp:219
object_lookup
void object_lookup(git_object **object, git_repository *repo, const git_oid *id, git_object_t type)
Definition: gitwrap.hpp:732
filter_list_load
void filter_list_load(git_filter_list **filters, git_repository *repo, git_blob *blob, const char *path, git_filter_mode_t mode, uint32_t flags)
Definition: gitwrap.hpp:4637
oid_fromstrp
git_oid oid_fromstrp(const char *str)
Definition: gitwrap.hpp:52
config_get_string
const char * config_get_string(const git_config *cfg, const char *name)
Definition: gitwrap.hpp:4288
indexer_new
git_indexer * indexer_new(const char *path, unsigned int mode, git_odb *odb, git_indexer_options *opts)
Definition: gitwrap.hpp:2368
tree_entry_byname
const git_tree_entry * tree_entry_byname(const git_tree *tree, const char *filename)
Definition: gitwrap.hpp:902
rebase_next
void rebase_next(git_rebase_operation **operation, git_rebase *rebase)
Definition: gitwrap.hpp:4815
config_add_file_ondisk
void config_add_file_ondisk(git_config *cfg, const char *path, git_config_level_t level, const git_repository *repo, int force)
Definition: gitwrap.hpp:4165
index_get_byindex
const git_index_entry * index_get_byindex(git_index *index, size_t n)
Definition: gitwrap.hpp:2570
attr_foreach
void attr_foreach(git_repository *repo, uint32_t flags, const char *path, git_attr_foreach_cb callback, void *payload)
Definition: gitwrap.hpp:1881
revparse
git_revspec revparse(git_repository *repo, const char *spec)
Definition: gitwrap.hpp:4926
submodule_status
void submodule_status(unsigned int *status, git_repository *repo, const char *name, git_submodule_ignore_t ignore)
Definition: gitwrap.hpp:5353
config_snapshot
git_config * config_snapshot(git_config *config)
Definition: gitwrap.hpp:4210
config_open_ondisk
git_config * config_open_ondisk(const char *path)
Definition: gitwrap.hpp:4174
odb_open_wstream
git_odb_stream * odb_open_wstream(git_odb *db, git_object_size_t size, git_object_t type)
Definition: gitwrap.hpp:6016
oid_nfmt
char oid_nfmt(size_t n, const git_oid *id)
Definition: gitwrap.hpp:100
odb_add_disk_alternate
void odb_add_disk_alternate(git_odb *odb, const char *path)
Definition: gitwrap.hpp:5899
oid_tostr
char * oid_tostr(size_t n, const git_oid *id)
Definition: gitwrap.hpp:131
tag_dup
git_tag * tag_dup(git_tag *source)
Definition: gitwrap.hpp:7059
commit_message
const char * commit_message(const git_commit *commit)
Definition: gitwrap.hpp:3862
rebase_commit
void rebase_commit(git_oid *id, git_rebase *rebase, const git_signature *author, const git_signature *committer, const char *message_encoding, const char *message)
Definition: gitwrap.hpp:4833
annotated_commit_from_fetchhead
git_annotated_commit * annotated_commit_from_fetchhead(git_repository *repo, const char *branch_name, const char *remote_url, const git_oid *id)
Definition: gitwrap.hpp:676
tag_list
void tag_list(git_strarray *tag_names, git_repository *repo)
Definition: gitwrap.hpp:7023
note_next
void note_next(git_oid *note_id, git_oid *annotated_id, git_note_iterator *it)
Definition: gitwrap.hpp:5748
blame_options_init
void blame_options_init(git_blame_options *opts, unsigned int version)
Definition: gitwrap.hpp:2071
index_add_from_buffer
void index_add_from_buffer(git_index *index, const git_index_entry *entry, const void *buffer, size_t len)
Definition: gitwrap.hpp:2665
annotated_commit_from_revspec
git_annotated_commit * annotated_commit_from_revspec(git_repository *repo, const char *revspec)
Definition: gitwrap.hpp:700
blob_create_from_workdir
void blob_create_from_workdir(git_oid *id, git_repository *repo, const char *relative_path)
Definition: gitwrap.hpp:1990
describe_result_free
void describe_result_free(git_describe_result *result)
Definition: gitwrap.hpp:4597
remote_connect_ext
void remote_connect_ext(git_remote *remote, git_direction direction, const git_remote_connect_options *opts)
Definition: gitwrap.hpp:3656
libgit2_opts
void libgit2_opts(int option)
Definition: gitwrap.hpp:25
repository_set_head
void repository_set_head(git_repository *repo, const char *refname)
Definition: gitwrap.hpp:576
status_list_entrycount
size_t status_list_entrycount(git_status_list *statuslist)
Definition: gitwrap.hpp:5043
tag_owner
git_repository * tag_owner(const git_tag *tag)
Definition: gitwrap.hpp:6927
submodule_set_branch
void submodule_set_branch(git_repository *repo, const char *name, const char *branch)
Definition: gitwrap.hpp:5218
pathspec_match_list_diff_entry
const git_diff_delta * pathspec_match_list_diff_entry(const git_pathspec_match_list *m, size_t pos)
Definition: gitwrap.hpp:6486
note_commit_iterator_new
git_note_iterator * note_commit_iterator_new(git_commit *notes_commit)
Definition: gitwrap.hpp:5730
tree_entrycount
size_t tree_entrycount(const git_tree *tree)
Definition: gitwrap.hpp:895
buf_dispose
void buf_dispose(git_buf *buffer)
Definition: gitwrap.hpp:34
credential_ssh_key_new
git_credential * credential_ssh_key_new(const char *username, const char *publickey, const char *privatekey, const char *passphrase)
Definition: gitwrap.hpp:3147
diff_print
void diff_print(git_diff *diff, git_diff_format_t format, git_diff_line_cb print_cb, void *payload)
Definition: gitwrap.hpp:1676
tag_target_type
git_object_t tag_target_type(const git_tag *tag)
Definition: gitwrap.hpp:6950
branch_name
const char * branch_name(const git_reference *ref)
Definition: gitwrap.hpp:2215
transaction_set_symbolic_target
void transaction_set_symbolic_target(git_transaction *tx, const char *refname, const char *target, const git_signature *sig, const char *msg)
Definition: gitwrap.hpp:7110
config_delete_entry
void config_delete_entry(git_config *cfg, const char *name)
Definition: gitwrap.hpp:4396
index_has_conflicts
void index_has_conflicts(const git_index *index)
Definition: gitwrap.hpp:2764
branch_iterator_new
git_branch_iterator * branch_iterator_new(git_repository *repo, git_branch_t list_flags)
Definition: gitwrap.hpp:2161
commit_dup
git_commit * commit_dup(git_commit *source)
Definition: gitwrap.hpp:4075
commit_extract_signature
void commit_extract_signature(git_buf *signature, git_buf *signed_data, git_repository *repo, git_oid *commit_id, const char *field)
Definition: gitwrap.hpp:4015
message_trailer_array_free
void message_trailer_array_free(git_message_trailer_array *arr)
Definition: gitwrap.hpp:5712
oid_ncmp
void oid_ncmp(const git_oid *a, const git_oid *b, size_t len)
Definition: gitwrap.hpp:167
stash_drop
void stash_drop(git_repository *repo, size_t index)
Definition: gitwrap.hpp:4977
reference_owner
git_repository * reference_owner(const git_reference *ref)
Definition: gitwrap.hpp:1268
status_list_new
git_status_list * status_list_new(git_repository *repo, const git_status_options *opts)
Definition: gitwrap.hpp:5031
refspec_src_matches
void refspec_src_matches(const git_refspec *refspec, const char *refname)
Definition: gitwrap.hpp:3047
repository_path
const char * repository_path(const git_repository *repo)
Definition: gitwrap.hpp:408
merge_analysis_for_ref
void merge_analysis_for_ref(git_merge_analysis_t *analysis_out, git_merge_preference_t *preference_out, git_repository *repo, git_reference *our_ref, const git_annotated_commit **their_heads, size_t their_heads_len)
Definition: gitwrap.hpp:2833
signature_default
git_signature * signature_default(git_repository *repo)
Definition: gitwrap.hpp:6851
annotated_commit_from_ref
git_annotated_commit * annotated_commit_from_ref(git_repository *repo, const git_reference *ref)
Definition: gitwrap.hpp:664
attr_get_many
void attr_get_many(const char **values_out, git_repository *repo, uint32_t flags, const char *path, size_t num_attr, const char **names)
Definition: gitwrap.hpp:1863
merge_file_from_index
git_merge_file_result merge_file_from_index(git_repository *repo, const git_index_entry *ancestor, const git_index_entry *ours, const git_index_entry *theirs, const git_merge_file_options *opts)
Definition: gitwrap.hpp:2914
commit_summary
const char * commit_summary(git_commit *commit)
Definition: gitwrap.hpp:3876
revwalk_push_glob
void revwalk_push_glob(git_revwalk *walk, const char *glob)
Definition: gitwrap.hpp:6708
packbuilder_write_buf
void packbuilder_write_buf(git_buf *buf, git_packbuilder *pb)
Definition: gitwrap.hpp:3271
reference_create
git_reference * reference_create(git_repository *repo, const char *name, const git_oid *id, int force, const char *log_message)
Definition: gitwrap.hpp:1197
blame_file
git_blame * blame_file(git_repository *repo, const char *path, git_blame_options *options)
Definition: gitwrap.hpp:2101