Improve oid_from_reference tag id fetching and pass full Repository Object to every function
parent: tbd commit: 6d7e35e
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | use Error; |
8 | use async_trait; |
9 | use Object; |
10 | use ; |
11 | use Value; |
12 | |
13 | use crate GitBackendError; |
14 | use UserAuthenticationToken; |
15 | |
16 | use |
17 | AuthenticationTokenRequest, Instance, RegisterAccountRequest, RepositoryCreateRequest, |
18 | ; |
19 | |
20 | use |
21 | Commit, IssueLabel, Repository, RepositoryBranch, RepositoryBranchRequest, |
22 | RepositoryBranchesRequest, RepositoryCommitBeforeRequest, RepositoryCommitFromIdRequest, |
23 | RepositoryDiff, RepositoryDiffPatchRequest, RepositoryDiffRequest, RepositoryFile, |
24 | RepositoryFileFromIdRequest, RepositoryFileFromPathRequest, RepositoryFileInspectRequest, |
25 | RepositoryIssue, RepositoryIssueLabelsRequest, RepositoryIssuesCountRequest, |
26 | RepositoryIssuesRequest, RepositoryLastCommitOfFileRequest, RepositoryStatistics, |
27 | RepositoryStatisticsRequest, RepositorySummary, RepositoryTag, RepositoryTagsRequest, |
28 | RepositoryTreeEntry, |
29 | ; |
30 | |
31 | use User; |
32 | |
33 | |
34 | |
35 | async |
36 | &mut self, |
37 | user: &AuthenticatedUser, |
38 | request: &RepositoryCreateRequest, |
39 | ; |
40 | async |
41 | &mut self, |
42 | requester: & , |
43 | repository_object: &mut , |
44 | OperationState | : ,
45 | request: &RepositoryFileInspectRequest, |
46 | ; |
47 | async |
48 | &mut self, |
49 | requester: & , |
50 | repository_object: &mut , |
51 | OperationState | : ,
52 | request: &RepositoryFileFromIdRequest, |
53 | ; |
54 | async |
55 | &mut self, |
56 | requester: & , |
57 | repository_object: &mut , |
58 | OperationState | : ,
59 | request: &RepositoryFileFromPathRequest, |
60 | ; |
61 | async |
62 | &mut self, |
63 | requester: & , |
64 | repository_object: &mut , |
65 | OperationState | : ,
66 | request: &RepositoryCommitFromIdRequest, |
67 | ; |
68 | async |
69 | &mut self, |
70 | requester: & , |
71 | repository_object: &mut , |
72 | OperationState | : ,
73 | request: &RepositoryLastCommitOfFileRequest, |
74 | ; |
75 | async |
76 | &mut self, |
77 | requester: & , |
78 | repository_object: &mut , |
79 | OperationState | : ,
80 | request: &RepositoryDiffRequest, |
81 | ; |
82 | async |
83 | &mut self, |
84 | requester: & , |
85 | repository_object: &mut , |
86 | OperationState | : ,
87 | request: &RepositoryDiffPatchRequest, |
88 | ; |
89 | async |
90 | &mut self, |
91 | requester: & , |
92 | repository_object: &mut , |
93 | OperationState | : ,
94 | request: &RepositoryCommitBeforeRequest, |
95 | ; |
96 | async |
97 | &mut self, |
98 | requester: & , |
99 | repository_object: &mut , |
100 | OperationState | : ,
101 | request: &RepositoryStatisticsRequest, |
102 | ; |
103 | async |
104 | &mut self, |
105 | requester: & , |
106 | repository_object: &mut , |
107 | OperationState | : ,
108 | request: &RepositoryBranchesRequest, |
109 | ; |
110 | async |
111 | &mut self, |
112 | requester: & , |
113 | repository_object: &mut , |
114 | OperationState | : ,
115 | request: &RepositoryBranchRequest, |
116 | ; |
117 | async |
118 | &mut self, |
119 | requester: & , |
120 | repository_object: &mut , |
121 | OperationState | : ,
122 | request: &RepositoryTagsRequest, |
123 | ; |
124 | async |
125 | &mut self, |
126 | requester: & , |
127 | repository: &Repository, |
128 | ; |
129 | |
130 | |
131 | |
132 | |
133 | &mut self, |
134 | requester: & , |
135 | request: &RepositoryIssuesCountRequest, |
136 | ; |
137 | |
138 | &mut self, |
139 | requester: & , |
140 | request: &RepositoryIssueLabelsRequest, |
141 | ; |
142 | |
143 | &mut self, |
144 | requester: & , |
145 | request: &RepositoryIssuesRequest, |
146 | ; |
147 | |
148 | |
149 | |
150 | |
151 | async |
152 | &mut self, |
153 | request: RegisterAccountRequest, |
154 | ; |
155 | |
156 | async |
157 | &mut self, |
158 | source: &Instance, |
159 | request: AuthenticationTokenRequest, |
160 | ; |
161 | |
162 | |
163 | |
164 | |
165 | async ; |
166 | async |
167 | &mut self, |
168 | requester: & , |
169 | user: &User, |
170 | ; |
171 | |
172 | |
173 | |
174 | |
175 | async ; |
176 | async ; |
177 | async |
178 | ; |
179 | async |
180 | &mut self, |
181 | repository: &Repository, |
182 | name: &str, |
183 | setting: Value, |
184 | ; |
185 | |
186 |