]>
Commit | Line | Data |
---|---|---|
06160502 | 1 | /* |
50298f44 SP |
2 | * This file is free software; you can redistribute it and/or modify |
3 | * it under the terms of the GNU General Public License, version 2, | |
4 | * as published by the Free Software Foundation. | |
06160502 | 5 | * |
50298f44 SP |
6 | * In addition to the permissions in the GNU General Public License, |
7 | * the authors give you unlimited permission to link the compiled | |
8 | * version of this file into combinations with other programs, | |
9 | * and to distribute those combinations without any restriction | |
10 | * coming from the use of this file. (The General Public License | |
11 | * restrictions do apply in other respects; for example, they cover | |
12 | * modification of the file, and distribution when not linked into | |
13 | * a combined executable.) | |
06160502 | 14 | * |
50298f44 SP |
15 | * This file is distributed in the hope that it will be useful, but |
16 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
18 | * General Public License for more details. | |
06160502 | 19 | * |
50298f44 SP |
20 | * You should have received a copy of the GNU General Public License |
21 | * along with this program; see the file COPYING. If not, write to | |
22 | * the Free Software Foundation, 51 Franklin Street, Fifth Floor, | |
23 | * Boston, MA 02110-1301, USA. | |
06160502 SP |
24 | */ |
25 | ||
64a47c01 | 26 | #include "common.h" |
c215be41 | 27 | #include "revwalk.h" |
06160502 | 28 | |
c215be41 | 29 | git_revpool *gitrp_alloc(git_odb *db) |
06160502 | 30 | { |
64a47c01 | 31 | git_revpool *walk = git__malloc(sizeof(*walk)); |
06160502 SP |
32 | if (!walk) |
33 | return NULL; | |
34 | ||
35 | walk->db = db; | |
06160502 SP |
36 | return walk; |
37 | } | |
38 | ||
c215be41 | 39 | void gitrp_free(git_revpool *walk) |
06160502 SP |
40 | { |
41 | free(walk); | |
42 | } |