so://phie

soso

My pretty neat website
git clone git://soophie.de/soso

blob: a8b3eee9fbc93ea3f7a6f8ae0279ed1c0af2bb00 (1052 bytes)[raw]

1#pragma once

2

3#include <git2.h>

4#include <time.h>

5#include <orb.h>

6#include "git_list.h"

7

8typedef struct {

9 char *repo_name;

10 char *repo_path;

11 char *flag_ref_oid;

12 char *flag_oid;

13 char *flag_path;

14 const char *tab_mode;

15} git_repo_param_list_t;

16

17typedef struct {

18 char *oid;

19 char *name;

20 const char *type;

21} git_repo_ref_t;

22

23typedef struct {

24 char *oid;

25 char *message;

26 char *summary;

27 char *body;

28 char *author_name;

29 char *author_email;

30 time_t time;

31} git_repo_commit_t;

32

33typedef struct {

34 char *oid;

35 char *name;

36 char *content;

37 size_t size;

38 bool is_binary;

39} git_repo_blob_t;

40

41typedef struct {

42 char *oid;

43 char *name;

44 char *mode;

45 size_t size;

46} git_repo_tree_entry_t;

47

48typedef struct {

49 char *path;

50 git_repo_meta_t meta;

51 git_repository *handle;

52 char *flag_ref_oid;

53 char *flag_oid;

54 char *flag_path;

55 git_repo_ref_t *ref_head;

56 git_repo_ref_t *ref;

57 git_repo_ref_t *ref_list;

58 size_t ref_list_len;

59 char *readme_oid;

60 char *license_oid;

61} git_repo_t;

62

63extern const orb_module_type_t GIT_REPO_TYPE;