]> git.ipfire.org Git - thirdparty/git.git/blob - reftable/refname.h
Merge branch 'en/fetch-negotiation-default-fix'
[thirdparty/git.git] / reftable / refname.h
1 /*
2 Copyright 2020 Google LLC
3
4 Use of this source code is governed by a BSD-style
5 license that can be found in the LICENSE file or at
6 https://developers.google.com/open-source/licenses/bsd
7 */
8 #ifndef REFNAME_H
9 #define REFNAME_H
10
11 #include "reftable-record.h"
12 #include "reftable-generic.h"
13
14 struct modification {
15 struct reftable_table tab;
16
17 char **add;
18 size_t add_len;
19
20 char **del;
21 size_t del_len;
22 };
23
24 int validate_ref_record_addition(struct reftable_table tab,
25 struct reftable_ref_record *recs, size_t sz);
26
27 int modification_validate(struct modification *mod);
28
29 #endif