forked from RogerGee/php-git2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
reset.h
73 lines (63 loc) · 1.96 KB
/
reset.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
* reset.h
*
* Copyright (C) Roger P. Gee
*/
#ifndef PHPGIT2_RESET_H
#define PHPGIT2_RESET_H
#include "checkout.h"
namespace php_git2
{
} // namespace php_git2
static constexpr auto ZIF_GIT_RESET = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_repository*,
const git_object*,
git_reset_t,
const git_checkout_options*>::func<git_reset>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_repository>,
php_git2::php_resource<php_git2::php_git_object>,
php_git2::php_long_cast<git_reset_t>,
php_git2::php_git_checkout_options
>
>;
static constexpr auto ZIF_GIT_RESET_DEFAULT = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_repository*,
const git_object*,
const git_strarray*>::func<git_reset_default>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_repository>,
php_git2::php_resource_nullable<php_git2::php_git_object>,
php_git2::php_git_strarray_array
>
>;
static constexpr auto ZIF_GIT_RESET_FROM_ANNOTATED = zif_php_git2_function<
php_git2::func_wrapper<
int,
git_repository*,
const git_annotated_commit*,
git_reset_t,
const git_checkout_options*>::func<git_reset_from_annotated>,
php_git2::local_pack<
php_git2::php_resource<php_git2::php_git_repository>,
php_git2::php_resource<php_git2::php_git_annotated_commit>,
php_git2::php_long_cast<git_reset_t>,
php_git2::php_git_checkout_options
>
>;
#define GIT_RESET_FE \
PHP_GIT2_FE(git_reset,ZIF_GIT_RESET,NULL) \
PHP_GIT2_FE(git_reset_default,ZIF_GIT_RESET_DEFAULT,NULL) \
PHP_GIT2_FE(git_reset_from_annotated,ZIF_GIT_RESET_FROM_ANNOTATED,NULL)
#endif
/*
* Local Variables:
* mode:c++
* indent-tabs-mode:nil
* tab-width:4
* End:
*/