summaryrefslogtreecommitdiff
path: root/src/fetchhead.h
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@gmail.com>2014-09-18 11:53:24 +0200
committerCiro Santilli <ciro.santilli@gmail.com>2014-09-24 11:00:51 +0200
commit062804570c3e25170b52f849da173f8266b5e33e (patch)
tree549b2179523a84912e45cbf9490733474dc49b5c /src/fetchhead.h
parent3a495c19bd280f5455047a9ac0e936f2c2f2f9a9 (diff)
downloadlibgit2-062804570c3e25170b52f849da173f8266b5e33e.tar.gz
Join typedef and struct definitions in single file.
Diffstat (limited to 'src/fetchhead.h')
-rw-r--r--src/fetchhead.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/fetchhead.h b/src/fetchhead.h
index 74fce049b..b03bd0f74 100644
--- a/src/fetchhead.h
+++ b/src/fetchhead.h
@@ -9,14 +9,12 @@
#include "vector.h"
-struct git_fetchhead_ref {
+typedef struct git_fetchhead_ref {
git_oid oid;
unsigned int is_merge;
char *ref_name;
char *remote_url;
-};
-
-typedef struct git_fetchhead_ref git_fetchhead_ref;
+} git_fetchhead_ref;
int git_fetchhead_ref_create(
git_fetchhead_ref **fetchhead_ref_out,