/* gitg-ref.c generated by valac 0.35.5.2-9e6c0, the Vala compiler
 * generated from gitg-ref.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2012 - Jesse van den Kieboom
 *
 * gitg is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * gitg is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with gitg. If not, see <http://www.gnu.org/licenses/>.
 */

#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <libgit2-glib/ggit.h>


#define GITG_TYPE_REF_TYPE (gitg_ref_type_get_type ())

#define GITG_TYPE_REF_STATE (gitg_ref_state_get_type ())

#define GITG_TYPE_PARSED_REF_NAME (gitg_parsed_ref_name_get_type ())
#define GITG_PARSED_REF_NAME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_PARSED_REF_NAME, GitgParsedRefName))
#define GITG_PARSED_REF_NAME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_PARSED_REF_NAME, GitgParsedRefNameClass))
#define GITG_IS_PARSED_REF_NAME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_PARSED_REF_NAME))
#define GITG_IS_PARSED_REF_NAME_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_PARSED_REF_NAME))
#define GITG_PARSED_REF_NAME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_PARSED_REF_NAME, GitgParsedRefNameClass))

typedef struct _GitgParsedRefName GitgParsedRefName;
typedef struct _GitgParsedRefNameClass GitgParsedRefNameClass;
typedef struct _GitgParsedRefNamePrivate GitgParsedRefNamePrivate;
#define _g_free0(var) (var = (g_free (var), NULL))

#define GITG_TYPE_REF (gitg_ref_get_type ())
#define GITG_REF(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_REF, GitgRef))
#define GITG_IS_REF(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_REF))
#define GITG_REF_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GITG_TYPE_REF, GitgRefIface))

typedef struct _GitgRef GitgRef;
typedef struct _GitgRefIface GitgRefIface;

#define GITG_TYPE_REPOSITORY (gitg_repository_get_type ())
#define GITG_REPOSITORY(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_REPOSITORY, GitgRepository))
#define GITG_REPOSITORY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_REPOSITORY, GitgRepositoryClass))
#define GITG_IS_REPOSITORY(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_REPOSITORY))
#define GITG_IS_REPOSITORY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_REPOSITORY))
#define GITG_REPOSITORY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_REPOSITORY, GitgRepositoryClass))

typedef struct _GitgRepository GitgRepository;
typedef struct _GitgRepositoryClass GitgRepositoryClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
typedef struct _Block15Data Block15Data;
#define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
#define _g_match_info_unref0(var) ((var == NULL) ? NULL : (var = (g_match_info_unref (var), NULL)))

typedef enum  {
	GITG_REF_TYPE_NONE,
	GITG_REF_TYPE_BRANCH,
	GITG_REF_TYPE_REMOTE,
	GITG_REF_TYPE_TAG,
	GITG_REF_TYPE_STASH
} GitgRefType;

typedef enum  {
	GITG_REF_STATE_NONE,
	GITG_REF_STATE_SELECTED,
	GITG_REF_STATE_PRELIGHT
} GitgRefState;

struct _GitgParsedRefName {
	GObject parent_instance;
	GitgParsedRefNamePrivate * priv;
};

struct _GitgParsedRefNameClass {
	GObjectClass parent_class;
};

struct _GitgParsedRefNamePrivate {
	gchar* d_shortname;
	gchar* d_name;
	gchar* d_remote_name;
	gchar* d_remote_branch;
	gchar* d_prefix;
	GitgRefType _rtype;
};

struct _GitgRefIface {
	GTypeInterface parent_iface;
	GitgRepository* (*get_owner) (GitgRef* self);
	GitgParsedRefName* (*get_d_parsed_name) (GitgRef* self);
	void (*set_d_parsed_name) (GitgRef* self, GitgParsedRefName* value);
	GList* (*get_d_pushes) (GitgRef* self);
	void (*set_d_pushes) (GitgRef* self, GList* value);
	GitgRefState (*get_state) (GitgRef* self);
	void (*set_state) (GitgRef* self, GitgRefState value);
	gboolean (*get_working) (GitgRef* self);
	void (*set_working) (GitgRef* self, gboolean value);
};

struct _Block15Data {
	int _ref_count_;
	GitgRef* self;
	GRegex* valregex;
};


static gpointer gitg_parsed_ref_name_parent_class = NULL;
static GRegex* gitg_ref_s_remote_key_regex;
static GRegex* gitg_ref_s_remote_key_regex = NULL;

GType gitg_ref_type_get_type (void) G_GNUC_CONST;
GType gitg_ref_state_get_type (void) G_GNUC_CONST;
GType gitg_parsed_ref_name_get_type (void) G_GNUC_CONST;
#define GITG_PARSED_REF_NAME_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_PARSED_REF_NAME, GitgParsedRefNamePrivate))
enum  {
	GITG_PARSED_REF_NAME_DUMMY_PROPERTY,
	GITG_PARSED_REF_NAME_RTYPE,
	GITG_PARSED_REF_NAME_NAME,
	GITG_PARSED_REF_NAME_SHORTNAME,
	GITG_PARSED_REF_NAME_REMOTE_NAME,
	GITG_PARSED_REF_NAME_REMOTE_BRANCH,
	GITG_PARSED_REF_NAME_PREFIX
};
GitgParsedRefName* gitg_parsed_ref_name_new (const gchar* name);
GitgParsedRefName* gitg_parsed_ref_name_construct (GType object_type, const gchar* name);
static void gitg_parsed_ref_name_parse_name (GitgParsedRefName* self, const gchar* name);
static void gitg_parsed_ref_name_set_rtype (GitgParsedRefName* self, GitgRefType value);
GitgRefType gitg_parsed_ref_name_get_rtype (GitgParsedRefName* self);
gchar* gitg_parsed_ref_name_get_name (GitgParsedRefName* self);
gchar* gitg_parsed_ref_name_get_shortname (GitgParsedRefName* self);
gchar* gitg_parsed_ref_name_get_remote_name (GitgParsedRefName* self);
gchar* gitg_parsed_ref_name_get_remote_branch (GitgParsedRefName* self);
const gchar* gitg_parsed_ref_name_get_prefix (GitgParsedRefName* self);
static void gitg_parsed_ref_name_finalize (GObject * obj);
static void _vala_gitg_parsed_ref_name_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_parsed_ref_name_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
GType gitg_repository_get_type (void) G_GNUC_CONST;
GType gitg_ref_get_type (void) G_GNUC_CONST;
GitgRepository* gitg_ref_get_owner (GitgRef* self);
static void gitg_ref_add_push_ref (GitgRef* self, const gchar* spec);
GitgRef* gitg_repository_lookup_reference (GitgRepository* self, const gchar* name, GError** error);
GList* gitg_ref_get_d_pushes (GitgRef* self);
static gint __lambda30_ (GitgRef* a, GitgRef* b);
static gint ___lambda30__gcompare_func (gconstpointer a, gconstpointer b);
void gitg_ref_set_d_pushes (GitgRef* self, GList* value);
static void gitg_ref_add_branch_configured_push (GitgRef* self, GgitConfig* cfg);
GitgParsedRefName* gitg_ref_get_parsed_name (GitgRef* self);
static void gitg_ref_add_remote_configured_push (GitgRef* self, GgitConfig* cfg);
static Block15Data* block15_data_ref (Block15Data* _data15_);
static void block15_data_unref (void * _userdata_);
static gint ___lambda31_ (Block15Data* _data15_, GMatchInfo* info, const gchar* val);
static gint ____lambda31__ggit_config_match_callback (GMatchInfo* match_info, const gchar* value, gpointer self);
static void gitg_ref_add_branch_same_name_push (GitgRef* self, GgitConfig* cfg);
static void gitg_ref_compose_pushes (GitgRef* self);
GitgParsedRefName* gitg_ref_get_d_parsed_name (GitgRef* self);
void gitg_ref_set_d_parsed_name (GitgRef* self, GitgParsedRefName* value);
GitgRefState gitg_ref_get_state (GitgRef* self);
void gitg_ref_set_state (GitgRef* self, GitgRefState value);
gboolean gitg_ref_get_working (GitgRef* self);
void gitg_ref_set_working (GitgRef* self, gboolean value);
GList* gitg_ref_get_pushes (GitgRef* self);
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func);
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func);


GType gitg_ref_type_get_type (void) {
	static volatile gsize gitg_ref_type_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_ref_type_type_id__volatile)) {
		static const GEnumValue values[] = {{GITG_REF_TYPE_NONE, "GITG_REF_TYPE_NONE", "none"}, {GITG_REF_TYPE_BRANCH, "GITG_REF_TYPE_BRANCH", "branch"}, {GITG_REF_TYPE_REMOTE, "GITG_REF_TYPE_REMOTE", "remote"}, {GITG_REF_TYPE_TAG, "GITG_REF_TYPE_TAG", "tag"}, {GITG_REF_TYPE_STASH, "GITG_REF_TYPE_STASH", "stash"}, {0, NULL, NULL}};
		GType gitg_ref_type_type_id;
		gitg_ref_type_type_id = g_enum_register_static ("GitgRefType", values);
		g_once_init_leave (&gitg_ref_type_type_id__volatile, gitg_ref_type_type_id);
	}
	return gitg_ref_type_type_id__volatile;
}


GType gitg_ref_state_get_type (void) {
	static volatile gsize gitg_ref_state_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_ref_state_type_id__volatile)) {
		static const GEnumValue values[] = {{GITG_REF_STATE_NONE, "GITG_REF_STATE_NONE", "none"}, {GITG_REF_STATE_SELECTED, "GITG_REF_STATE_SELECTED", "selected"}, {GITG_REF_STATE_PRELIGHT, "GITG_REF_STATE_PRELIGHT", "prelight"}, {0, NULL, NULL}};
		GType gitg_ref_state_type_id;
		gitg_ref_state_type_id = g_enum_register_static ("GitgRefState", values);
		g_once_init_leave (&gitg_ref_state_type_id__volatile, gitg_ref_state_type_id);
	}
	return gitg_ref_state_type_id__volatile;
}


GitgParsedRefName* gitg_parsed_ref_name_construct (GType object_type, const gchar* name) {
	GitgParsedRefName * self = NULL;
	const gchar* _tmp0_;
#line 91 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 91 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	self = (GitgParsedRefName*) g_object_new (object_type, NULL);
#line 93 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp0_ = name;
#line 93 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	gitg_parsed_ref_name_parse_name (self, _tmp0_);
#line 91 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	return self;
#line 217 "gitg-ref.c"
}


GitgParsedRefName* gitg_parsed_ref_name_new (const gchar* name) {
#line 91 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	return gitg_parsed_ref_name_construct (GITG_TYPE_PARSED_REF_NAME, name);
#line 224 "gitg-ref.c"
}


static gchar* string_slice (const gchar* self, glong start, glong end) {
	gchar* result = NULL;
	glong string_length;
	gint _tmp0_;
	gint _tmp1_;
	glong _tmp2_;
	glong _tmp5_;
	gboolean _tmp8_ = FALSE;
	glong _tmp9_;
	gboolean _tmp12_ = FALSE;
	glong _tmp13_;
	glong _tmp16_;
	glong _tmp17_;
	glong _tmp18_;
	glong _tmp19_;
	glong _tmp20_;
	gchar* _tmp21_;
#line 1347 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1348 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp0_ = strlen (self);
#line 1348 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp1_ = _tmp0_;
#line 1348 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	string_length = (glong) _tmp1_;
#line 1349 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp2_ = start;
#line 1349 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	if (_tmp2_ < ((glong) 0)) {
#line 257 "gitg-ref.c"
		glong _tmp3_;
		glong _tmp4_;
#line 1350 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp3_ = string_length;
#line 1350 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp4_ = start;
#line 1350 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		start = _tmp3_ + _tmp4_;
#line 266 "gitg-ref.c"
	}
#line 1352 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp5_ = end;
#line 1352 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	if (_tmp5_ < ((glong) 0)) {
#line 272 "gitg-ref.c"
		glong _tmp6_;
		glong _tmp7_;
#line 1353 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp6_ = string_length;
#line 1353 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp7_ = end;
#line 1353 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		end = _tmp6_ + _tmp7_;
#line 281 "gitg-ref.c"
	}
#line 1355 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp9_ = start;
#line 1355 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	if (_tmp9_ >= ((glong) 0)) {
#line 287 "gitg-ref.c"
		glong _tmp10_;
		glong _tmp11_;
#line 1355 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp10_ = start;
#line 1355 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp11_ = string_length;
#line 1355 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp8_ = _tmp10_ <= _tmp11_;
#line 296 "gitg-ref.c"
	} else {
#line 1355 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp8_ = FALSE;
#line 300 "gitg-ref.c"
	}
#line 1355 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp8_, NULL);
#line 1356 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp13_ = end;
#line 1356 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	if (_tmp13_ >= ((glong) 0)) {
#line 308 "gitg-ref.c"
		glong _tmp14_;
		glong _tmp15_;
#line 1356 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp14_ = end;
#line 1356 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp15_ = string_length;
#line 1356 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp12_ = _tmp14_ <= _tmp15_;
#line 317 "gitg-ref.c"
	} else {
#line 1356 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp12_ = FALSE;
#line 321 "gitg-ref.c"
	}
#line 1356 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp12_, NULL);
#line 1357 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp16_ = start;
#line 1357 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp17_ = end;
#line 1357 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	g_return_val_if_fail (_tmp16_ <= _tmp17_, NULL);
#line 1358 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp18_ = start;
#line 1358 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp19_ = end;
#line 1358 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp20_ = start;
#line 1358 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp21_ = g_strndup (((gchar*) self) + _tmp18_, (gsize) (_tmp19_ - _tmp20_));
#line 1358 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	result = _tmp21_;
#line 1358 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	return result;
#line 343 "gitg-ref.c"
}


static gint string_index_of_char (const gchar* self, gunichar c, gint start_index) {
	gint result = 0;
	gchar* _result_;
	gint _tmp0_;
	gunichar _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
#line 1023 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, 0);
#line 1024 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp0_ = start_index;
#line 1024 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp1_ = c;
#line 1024 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp2_ = g_utf8_strchr (((gchar*) self) + _tmp0_, (gssize) -1, _tmp1_);
#line 1024 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_result_ = _tmp2_;
#line 1026 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp3_ = _result_;
#line 1026 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	if (_tmp3_ != NULL) {
#line 368 "gitg-ref.c"
		gchar* _tmp4_;
#line 1027 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp4_ = _result_;
#line 1027 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		result = (gint) (_tmp4_ - ((gchar*) self));
#line 1027 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		return result;
#line 376 "gitg-ref.c"
	} else {
#line 1029 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		result = -1;
#line 1029 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		return result;
#line 382 "gitg-ref.c"
	}
}


static glong string_strnlen (gchar* str, glong maxlen) {
	glong result = 0L;
	gchar* end;
	gchar* _tmp0_;
	glong _tmp1_;
	gchar* _tmp2_;
	gchar* _tmp3_;
#line 1314 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp0_ = str;
#line 1314 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp1_ = maxlen;
#line 1314 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_);
#line 1314 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	end = _tmp2_;
#line 1315 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp3_ = end;
#line 1315 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	if (_tmp3_ == NULL) {
#line 406 "gitg-ref.c"
		glong _tmp4_;
#line 1316 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp4_ = maxlen;
#line 1316 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		result = _tmp4_;
#line 1316 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		return result;
#line 414 "gitg-ref.c"
	} else {
		gchar* _tmp5_;
		gchar* _tmp6_;
#line 1318 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp5_ = end;
#line 1318 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp6_ = str;
#line 1318 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		result = (glong) (_tmp5_ - _tmp6_);
#line 1318 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		return result;
#line 426 "gitg-ref.c"
	}
}


static gchar* string_substring (const gchar* self, glong offset, glong len) {
	gchar* result = NULL;
	glong string_length = 0L;
	gboolean _tmp0_ = FALSE;
	glong _tmp1_;
	glong _tmp8_;
	glong _tmp14_;
	glong _tmp17_;
	glong _tmp18_;
	glong _tmp19_;
	glong _tmp20_;
	glong _tmp21_;
	gchar* _tmp22_;
#line 1325 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1327 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp1_ = offset;
#line 1327 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	if (_tmp1_ >= ((glong) 0)) {
#line 450 "gitg-ref.c"
		glong _tmp2_;
#line 1327 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp2_ = len;
#line 1327 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp0_ = _tmp2_ >= ((glong) 0);
#line 456 "gitg-ref.c"
	} else {
#line 1327 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp0_ = FALSE;
#line 460 "gitg-ref.c"
	}
#line 1327 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	if (_tmp0_) {
#line 464 "gitg-ref.c"
		glong _tmp3_;
		glong _tmp4_;
		glong _tmp5_;
#line 1329 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp3_ = offset;
#line 1329 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp4_ = len;
#line 1329 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp5_ = string_strnlen ((gchar*) self, _tmp3_ + _tmp4_);
#line 1329 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		string_length = _tmp5_;
#line 476 "gitg-ref.c"
	} else {
		gint _tmp6_;
		gint _tmp7_;
#line 1331 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp6_ = strlen (self);
#line 1331 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp7_ = _tmp6_;
#line 1331 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		string_length = (glong) _tmp7_;
#line 486 "gitg-ref.c"
	}
#line 1334 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp8_ = offset;
#line 1334 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	if (_tmp8_ < ((glong) 0)) {
#line 492 "gitg-ref.c"
		glong _tmp9_;
		glong _tmp10_;
		glong _tmp11_;
#line 1335 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp9_ = string_length;
#line 1335 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp10_ = offset;
#line 1335 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		offset = _tmp9_ + _tmp10_;
#line 1336 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp11_ = offset;
#line 1336 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		g_return_val_if_fail (_tmp11_ >= ((glong) 0), NULL);
#line 506 "gitg-ref.c"
	} else {
		glong _tmp12_;
		glong _tmp13_;
#line 1338 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp12_ = offset;
#line 1338 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp13_ = string_length;
#line 1338 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		g_return_val_if_fail (_tmp12_ <= _tmp13_, NULL);
#line 516 "gitg-ref.c"
	}
#line 1340 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp14_ = len;
#line 1340 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	if (_tmp14_ < ((glong) 0)) {
#line 522 "gitg-ref.c"
		glong _tmp15_;
		glong _tmp16_;
#line 1341 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp15_ = string_length;
#line 1341 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		_tmp16_ = offset;
#line 1341 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
		len = _tmp15_ - _tmp16_;
#line 531 "gitg-ref.c"
	}
#line 1343 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp17_ = offset;
#line 1343 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp18_ = len;
#line 1343 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp19_ = string_length;
#line 1343 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	g_return_val_if_fail ((_tmp17_ + _tmp18_) <= _tmp19_, NULL);
#line 1344 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp20_ = offset;
#line 1344 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp21_ = len;
#line 1344 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	_tmp22_ = g_strndup (((gchar*) self) + _tmp20_, (gsize) _tmp21_);
#line 1344 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	result = _tmp22_;
#line 1344 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	return result;
#line 551 "gitg-ref.c"
}


static void gitg_parsed_ref_name_parse_name (GitgParsedRefName* self, const gchar* name) {
	const gchar* _tmp0_;
	gchar* _tmp1_;
	gchar** prefixes;
	gchar* _tmp2_;
	gchar* _tmp3_;
	gchar* _tmp4_;
	gchar* _tmp5_;
	gchar** _tmp6_;
	gint prefixes_length1;
	gint _prefixes_size_;
	const gchar* _tmp7_;
	gchar* _tmp8_;
	const gchar* _tmp9_;
#line 101 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_if_fail (self != NULL);
#line 101 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_if_fail (name != NULL);
#line 103 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp0_ = name;
#line 103 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 103 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_free0 (self->priv->d_name);
#line 103 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	self->priv->d_name = _tmp1_;
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp2_ = g_strdup ("refs/heads/");
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp3_ = g_strdup ("refs/remotes/");
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp4_ = g_strdup ("refs/tags/");
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp5_ = g_strdup ("refs/stash");
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp6_ = g_new0 (gchar*, 4 + 1);
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp6_[0] = _tmp2_;
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp6_[1] = _tmp3_;
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp6_[2] = _tmp4_;
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp6_[3] = _tmp5_;
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	prefixes = _tmp6_;
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	prefixes_length1 = 4;
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_prefixes_size_ = prefixes_length1;
#line 112 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp7_ = name;
#line 112 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp8_ = g_strdup (_tmp7_);
#line 112 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_free0 (self->priv->d_shortname);
#line 112 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	self->priv->d_shortname = _tmp8_;
#line 113 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_free0 (self->priv->d_prefix);
#line 113 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	self->priv->d_prefix = NULL;
#line 115 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp9_ = self->priv->d_name;
#line 115 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	if (g_strcmp0 (_tmp9_, "HEAD") == 0) {
#line 117 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		gitg_parsed_ref_name_set_rtype (self, GITG_REF_TYPE_BRANCH);
#line 623 "gitg-ref.c"
	}
	{
		gint i;
#line 120 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		i = 0;
#line 629 "gitg-ref.c"
		{
			gboolean _tmp10_;
#line 120 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
			_tmp10_ = TRUE;
#line 120 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
			while (TRUE) {
#line 636 "gitg-ref.c"
				gint _tmp12_;
				gchar** _tmp13_;
				gint _tmp13__length1;
				const gchar* _tmp14_;
				gchar** _tmp15_;
				gint _tmp15__length1;
				gint _tmp16_;
				const gchar* _tmp17_;
				gboolean _tmp18_;
				gchar** _tmp19_;
				gint _tmp19__length1;
				gint _tmp20_;
				const gchar* _tmp21_;
				gchar* _tmp22_;
				gint _tmp23_;
				GitgRefType _tmp24_;
				GitgRefType _tmp35_;
#line 120 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				if (!_tmp10_) {
#line 656 "gitg-ref.c"
					gint _tmp11_;
#line 120 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					_tmp11_ = i;
#line 120 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					i = _tmp11_ + 1;
#line 662 "gitg-ref.c"
				}
#line 120 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				_tmp10_ = FALSE;
#line 120 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				_tmp12_ = i;
#line 120 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				_tmp13_ = prefixes;
#line 120 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				_tmp13__length1 = prefixes_length1;
#line 120 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				if (!(_tmp12_ < _tmp13__length1)) {
#line 120 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					break;
#line 676 "gitg-ref.c"
				}
#line 122 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				_tmp14_ = self->priv->d_name;
#line 122 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				_tmp15_ = prefixes;
#line 122 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				_tmp15__length1 = prefixes_length1;
#line 122 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				_tmp16_ = i;
#line 122 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				_tmp17_ = _tmp15_[_tmp16_];
#line 122 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				_tmp18_ = g_str_has_prefix (_tmp14_, _tmp17_);
#line 122 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				if (!_tmp18_) {
#line 124 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					continue;
#line 694 "gitg-ref.c"
				}
#line 127 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				_tmp19_ = prefixes;
#line 127 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				_tmp19__length1 = prefixes_length1;
#line 127 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				_tmp20_ = i;
#line 127 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				_tmp21_ = _tmp19_[_tmp20_];
#line 127 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				_tmp22_ = g_strdup (_tmp21_);
#line 127 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				_g_free0 (self->priv->d_prefix);
#line 127 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				self->priv->d_prefix = _tmp22_;
#line 129 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				_tmp23_ = i;
#line 129 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				gitg_parsed_ref_name_set_rtype (self, (GitgRefType) (_tmp23_ + 1));
#line 131 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				_tmp24_ = self->priv->_rtype;
#line 131 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				if (_tmp24_ == GITG_REF_TYPE_STASH) {
#line 718 "gitg-ref.c"
					gchar* _tmp25_;
					gchar* _tmp26_;
#line 133 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					_tmp25_ = g_strdup ("refs/");
#line 133 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					_g_free0 (self->priv->d_prefix);
#line 133 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					self->priv->d_prefix = _tmp25_;
#line 134 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					_tmp26_ = g_strdup ("stash");
#line 134 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					_g_free0 (self->priv->d_shortname);
#line 134 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					self->priv->d_shortname = _tmp26_;
#line 733 "gitg-ref.c"
				} else {
					const gchar* _tmp27_;
					const gchar* _tmp28_;
					gint _tmp29_;
					gint _tmp30_;
					const gchar* _tmp31_;
					gint _tmp32_;
					gint _tmp33_;
					gchar* _tmp34_;
#line 138 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					_tmp27_ = self->priv->d_name;
#line 138 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					_tmp28_ = self->priv->d_prefix;
#line 138 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					_tmp29_ = strlen (_tmp28_);
#line 138 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					_tmp30_ = _tmp29_;
#line 138 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					_tmp31_ = self->priv->d_name;
#line 138 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					_tmp32_ = strlen (_tmp31_);
#line 138 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					_tmp33_ = _tmp32_;
#line 138 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					_tmp34_ = string_slice (_tmp27_, (glong) _tmp30_, (glong) _tmp33_);
#line 138 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					_g_free0 (self->priv->d_shortname);
#line 138 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					self->priv->d_shortname = _tmp34_;
#line 763 "gitg-ref.c"
				}
#line 141 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				_tmp35_ = self->priv->_rtype;
#line 141 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				if (_tmp35_ == GITG_REF_TYPE_REMOTE) {
#line 769 "gitg-ref.c"
					gint pos;
					const gchar* _tmp36_;
					gint _tmp37_;
					gint _tmp38_;
#line 143 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					_tmp36_ = self->priv->d_shortname;
#line 143 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					_tmp37_ = string_index_of_char (_tmp36_, (gunichar) '/', 0);
#line 143 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					pos = _tmp37_;
#line 145 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					_tmp38_ = pos;
#line 145 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
					if (_tmp38_ != -1) {
#line 784 "gitg-ref.c"
						const gchar* _tmp39_;
						gint _tmp40_;
						gchar* _tmp41_;
						const gchar* _tmp42_;
						gint _tmp43_;
						gchar* _tmp44_;
#line 147 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
						_tmp39_ = self->priv->d_shortname;
#line 147 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
						_tmp40_ = pos;
#line 147 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
						_tmp41_ = string_substring (_tmp39_, (glong) 0, (glong) _tmp40_);
#line 147 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
						_g_free0 (self->priv->d_remote_name);
#line 147 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
						self->priv->d_remote_name = _tmp41_;
#line 148 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
						_tmp42_ = self->priv->d_shortname;
#line 148 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
						_tmp43_ = pos;
#line 148 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
						_tmp44_ = string_substring (_tmp42_, (glong) (_tmp43_ + 1), (glong) -1);
#line 148 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
						_g_free0 (self->priv->d_remote_branch);
#line 148 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
						self->priv->d_remote_branch = _tmp44_;
#line 811 "gitg-ref.c"
					} else {
						const gchar* _tmp45_;
						gchar* _tmp46_;
#line 152 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
						_tmp45_ = self->priv->d_shortname;
#line 152 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
						_tmp46_ = g_strdup (_tmp45_);
#line 152 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
						_g_free0 (self->priv->d_remote_name);
#line 152 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
						self->priv->d_remote_name = _tmp46_;
#line 823 "gitg-ref.c"
					}
				}
			}
		}
	}
#line 101 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	prefixes = (_vala_array_free (prefixes, prefixes_length1, (GDestroyNotify) g_free), NULL);
#line 831 "gitg-ref.c"
}


GitgRefType gitg_parsed_ref_name_get_rtype (GitgParsedRefName* self) {
	GitgRefType result;
	GitgRefType _tmp0_;
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp0_ = self->priv->_rtype;
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	result = _tmp0_;
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	return result;
#line 846 "gitg-ref.c"
}


static void gitg_parsed_ref_name_set_rtype (GitgParsedRefName* self, GitgRefType value) {
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_if_fail (self != NULL);
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	if (gitg_parsed_ref_name_get_rtype (self) != value) {
#line 855 "gitg-ref.c"
		GitgRefType _tmp0_;
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp0_ = value;
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		self->priv->_rtype = _tmp0_;
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_object_notify ((GObject *) self, "rtype");
#line 863 "gitg-ref.c"
	}
}


gchar* gitg_parsed_ref_name_get_name (GitgParsedRefName* self) {
	gchar* result;
	const gchar* _tmp0_;
	gchar* _tmp1_;
#line 63 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 63 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp0_ = self->priv->d_name;
#line 63 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 63 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	result = _tmp1_;
#line 63 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	return result;
#line 882 "gitg-ref.c"
}


gchar* gitg_parsed_ref_name_get_shortname (GitgParsedRefName* self) {
	gchar* result;
	const gchar* _tmp0_;
	gchar* _tmp1_;
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp0_ = self->priv->d_shortname;
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	result = _tmp1_;
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	return result;
#line 900 "gitg-ref.c"
}


gchar* gitg_parsed_ref_name_get_remote_name (GitgParsedRefName* self) {
	gchar* result;
	const gchar* _tmp0_;
	gchar* _tmp1_;
#line 80 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 80 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp0_ = self->priv->d_remote_name;
#line 80 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 80 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	result = _tmp1_;
#line 80 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	return result;
#line 918 "gitg-ref.c"
}


gchar* gitg_parsed_ref_name_get_remote_branch (GitgParsedRefName* self) {
	gchar* result;
	const gchar* _tmp0_;
	gchar* _tmp1_;
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp0_ = self->priv->d_remote_branch;
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	result = _tmp1_;
#line 88 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	return result;
#line 936 "gitg-ref.c"
}


const gchar* gitg_parsed_ref_name_get_prefix (GitgParsedRefName* self) {
	const gchar* result;
	const gchar* _tmp0_;
#line 98 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 98 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp0_ = self->priv->d_prefix;
#line 98 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	result = _tmp0_;
#line 98 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	return result;
#line 951 "gitg-ref.c"
}


static void gitg_parsed_ref_name_class_init (GitgParsedRefNameClass * klass) {
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	gitg_parsed_ref_name_parent_class = g_type_class_peek_parent (klass);
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_type_class_add_private (klass, sizeof (GitgParsedRefNamePrivate));
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_parsed_ref_name_get_property;
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_parsed_ref_name_set_property;
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_parsed_ref_name_finalize;
#line 966 "gitg-ref.c"
	/**
	 * The type of ref.
	 */
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_PARSED_REF_NAME_RTYPE, g_param_spec_enum ("rtype", "rtype", "rtype", GITG_TYPE_REF_TYPE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 972 "gitg-ref.c"
	/**
	 * The full name of the ref.
	 */
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_PARSED_REF_NAME_NAME, g_param_spec_string ("name", "name", "name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 978 "gitg-ref.c"
	/**
	 * The short name of the ref. This represents the name of the ref
	 * without the information of the type of ref.
	 */
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_PARSED_REF_NAME_SHORTNAME, g_param_spec_string ("shortname", "shortname", "shortname", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 985 "gitg-ref.c"
	/**
	 * The remote name of the ref (only for remote refs)
	 */
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_PARSED_REF_NAME_REMOTE_NAME, g_param_spec_string ("remote-name", "remote-name", "remote-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 991 "gitg-ref.c"
	/**
	 * The remote branch name of the ref (only for remote refs)
	 */
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_PARSED_REF_NAME_REMOTE_BRANCH, g_param_spec_string ("remote-branch", "remote-branch", "remote-branch", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_PARSED_REF_NAME_PREFIX, g_param_spec_string ("prefix", "prefix", "prefix", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 999 "gitg-ref.c"
}


static void gitg_parsed_ref_name_instance_init (GitgParsedRefName * self) {
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	self->priv = GITG_PARSED_REF_NAME_GET_PRIVATE (self);
#line 1006 "gitg-ref.c"
}


static void gitg_parsed_ref_name_finalize (GObject * obj) {
	GitgParsedRefName * self;
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_PARSED_REF_NAME, GitgParsedRefName);
#line 47 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_free0 (self->priv->d_shortname);
#line 48 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_free0 (self->priv->d_name);
#line 49 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_free0 (self->priv->d_remote_name);
#line 50 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_free0 (self->priv->d_remote_branch);
#line 51 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_free0 (self->priv->d_prefix);
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	G_OBJECT_CLASS (gitg_parsed_ref_name_parent_class)->finalize (obj);
#line 1026 "gitg-ref.c"
}


/**
 * Parse ref name into components.
 *
 * This class parses a refname and splits it into several components.
 *
 */
GType gitg_parsed_ref_name_get_type (void) {
	static volatile gsize gitg_parsed_ref_name_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_parsed_ref_name_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgParsedRefNameClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_parsed_ref_name_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgParsedRefName), 0, (GInstanceInitFunc) gitg_parsed_ref_name_instance_init, NULL };
		GType gitg_parsed_ref_name_type_id;
		gitg_parsed_ref_name_type_id = g_type_register_static (G_TYPE_OBJECT, "GitgParsedRefName", &g_define_type_info, 0);
		g_once_init_leave (&gitg_parsed_ref_name_type_id__volatile, gitg_parsed_ref_name_type_id);
	}
	return gitg_parsed_ref_name_type_id__volatile;
}


static void _vala_gitg_parsed_ref_name_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgParsedRefName * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_PARSED_REF_NAME, GitgParsedRefName);
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	switch (property_id) {
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		case GITG_PARSED_REF_NAME_RTYPE:
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_value_set_enum (value, gitg_parsed_ref_name_get_rtype (self));
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		break;
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		case GITG_PARSED_REF_NAME_NAME:
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_value_take_string (value, gitg_parsed_ref_name_get_name (self));
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		break;
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		case GITG_PARSED_REF_NAME_SHORTNAME:
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_value_take_string (value, gitg_parsed_ref_name_get_shortname (self));
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		break;
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		case GITG_PARSED_REF_NAME_REMOTE_NAME:
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_value_take_string (value, gitg_parsed_ref_name_get_remote_name (self));
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		break;
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		case GITG_PARSED_REF_NAME_REMOTE_BRANCH:
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_value_take_string (value, gitg_parsed_ref_name_get_remote_branch (self));
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		break;
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		case GITG_PARSED_REF_NAME_PREFIX:
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_value_set_string (value, gitg_parsed_ref_name_get_prefix (self));
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		break;
#line 1089 "gitg-ref.c"
		default:
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		break;
#line 1095 "gitg-ref.c"
	}
}


static void _vala_gitg_parsed_ref_name_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgParsedRefName * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_PARSED_REF_NAME, GitgParsedRefName);
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	switch (property_id) {
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		case GITG_PARSED_REF_NAME_RTYPE:
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		gitg_parsed_ref_name_set_rtype (self, g_value_get_enum (value));
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		break;
#line 1111 "gitg-ref.c"
		default:
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		break;
#line 1117 "gitg-ref.c"
	}
}


GitgRepository* gitg_ref_get_owner (GitgRef* self) {
#line 182 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 182 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	return GITG_REF_GET_INTERFACE (self)->get_owner (self);
#line 1127 "gitg-ref.c"
}


static gint __lambda30_ (GitgRef* a, GitgRef* b) {
	gint result = 0;
	GitgRef* _tmp0_;
	const gchar* _tmp1_;
	GitgRef* _tmp2_;
	const gchar* _tmp3_;
	gint _tmp4_;
#line 193 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_val_if_fail (a != NULL, 0);
#line 193 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_val_if_fail (b != NULL, 0);
#line 194 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp0_ = a;
#line 194 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp1_ = ggit_ref_get_name ((GgitRef*) _tmp0_);
#line 194 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp2_ = b;
#line 194 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp3_ = ggit_ref_get_name ((GgitRef*) _tmp2_);
#line 194 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp4_ = g_ascii_strcasecmp (_tmp1_, _tmp3_);
#line 194 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	result = _tmp4_;
#line 194 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	return result;
#line 1156 "gitg-ref.c"
}


static gint ___lambda30__gcompare_func (gconstpointer a, gconstpointer b) {
	gint result;
	result = __lambda30_ ((GitgRef*) a, (GitgRef*) b);
#line 193 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	return result;
#line 1165 "gitg-ref.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 197 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	return self ? g_object_ref (self) : NULL;
#line 1172 "gitg-ref.c"
}


static void gitg_ref_add_push_ref (GitgRef* self, const gchar* spec) {
	GitgRef* rf = NULL;
	GList* _tmp7_;
	GList* _tmp8_;
	GitgRef* _tmp9_;
	GList* _tmp10_;
	GError * _inner_error_ = NULL;
#line 184 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_if_fail (spec != NULL);
#line 1185 "gitg-ref.c"
	{
		GitgRef* _tmp0_;
		GitgRepository* _tmp1_;
		GitgRepository* _tmp2_;
		const gchar* _tmp3_;
		GitgRef* _tmp4_;
		GitgRef* _tmp5_;
		GitgRef* _tmp6_;
#line 190 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp1_ = gitg_ref_get_owner (self);
#line 190 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp2_ = _tmp1_;
#line 190 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp3_ = spec;
#line 190 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp4_ = gitg_repository_lookup_reference (_tmp2_, _tmp3_, &_inner_error_);
#line 190 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp5_ = _tmp4_;
#line 190 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_object_unref0 (_tmp2_);
#line 190 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp0_ = _tmp5_;
#line 190 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1210 "gitg-ref.c"
			goto __catch51_g_error;
		}
#line 190 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp6_ = _tmp0_;
#line 190 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp0_ = NULL;
#line 190 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_object_unref0 (rf);
#line 190 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		rf = _tmp6_;
#line 188 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_object_unref0 (_tmp0_);
#line 1223 "gitg-ref.c"
	}
	goto __finally51;
	__catch51_g_error:
	{
#line 188 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_clear_error (&_inner_error_);
#line 188 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_inner_error_ = NULL;
#line 191 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_object_unref0 (rf);
#line 191 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		return;
#line 1236 "gitg-ref.c"
	}
	__finally51:
#line 188 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 188 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_object_unref0 (rf);
#line 188 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 188 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_clear_error (&_inner_error_);
#line 188 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		return;
#line 1249 "gitg-ref.c"
	}
#line 193 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp7_ = gitg_ref_get_d_pushes (self);
#line 193 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp8_ = _tmp7_;
#line 193 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp9_ = rf;
#line 193 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp10_ = g_list_find_custom (_tmp8_, _tmp9_, ___lambda30__gcompare_func);
#line 193 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	if (_tmp10_ == NULL) {
#line 1261 "gitg-ref.c"
		GList* _tmp11_;
		GList* _tmp12_;
		GitgRef* _tmp13_;
		GitgRef* _tmp14_;
#line 197 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp11_ = gitg_ref_get_d_pushes (self);
#line 197 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp12_ = _tmp11_;
#line 197 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp13_ = rf;
#line 197 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp14_ = _g_object_ref0 (_tmp13_);
#line 197 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		gitg_ref_set_d_pushes (self, g_list_append (_tmp12_, _tmp14_));
#line 1276 "gitg-ref.c"
	}
#line 184 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_object_unref0 (rf);
#line 1280 "gitg-ref.c"
}


static const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
#line 1434 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1435 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	result = self;
#line 1435 "/home/mcatanzaro/Projects/GNOME/install/share/vala-0.36/vapi/glib-2.0.vapi"
	return result;
#line 1292 "gitg-ref.c"
}


static void gitg_ref_add_branch_configured_push (GitgRef* self, GgitConfig* cfg) {
	gchar* remote = NULL;
	gchar* merge = NULL;
	GitgParsedRefName* nm;
	const gchar* _tmp28_;
	GitgParsedRefName* _tmp29_;
	const gchar* _tmp30_;
	const gchar* _tmp31_;
	GitgParsedRefName* _tmp32_;
	gchar* _tmp33_;
	gchar* _tmp34_;
	gchar* _tmp35_;
	const gchar* _tmp36_;
	gchar* _tmp37_;
	gchar* _tmp38_;
	GError * _inner_error_ = NULL;
#line 201 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_if_fail (cfg != NULL);
#line 1314 "gitg-ref.c"
	{
		const gchar* _tmp0_;
		GgitConfig* _tmp1_;
		GitgParsedRefName* _tmp2_;
		GitgParsedRefName* _tmp3_;
		GitgParsedRefName* _tmp4_;
		gchar* _tmp5_;
		gchar* _tmp6_;
		gchar* _tmp7_;
		const gchar* _tmp8_;
		gchar* _tmp9_;
		gchar* _tmp10_;
		const gchar* _tmp11_;
		const gchar* _tmp12_;
		gchar* _tmp13_;
		const gchar* _tmp14_;
		GgitConfig* _tmp15_;
		GitgParsedRefName* _tmp16_;
		GitgParsedRefName* _tmp17_;
		GitgParsedRefName* _tmp18_;
		gchar* _tmp19_;
		gchar* _tmp20_;
		gchar* _tmp21_;
		const gchar* _tmp22_;
		gchar* _tmp23_;
		gchar* _tmp24_;
		const gchar* _tmp25_;
		const gchar* _tmp26_;
		gchar* _tmp27_;
#line 208 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp1_ = cfg;
#line 208 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp2_ = gitg_ref_get_parsed_name (self);
#line 208 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp3_ = _tmp2_;
#line 208 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp4_ = _tmp3_;
#line 208 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp5_ = gitg_parsed_ref_name_get_shortname (_tmp4_);
#line 208 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp6_ = _tmp5_;
#line 208 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp7_ = _tmp6_;
#line 208 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp8_ = string_to_string (_tmp7_);
#line 208 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp9_ = g_strconcat ("branch.", _tmp8_, ".remote", NULL);
#line 208 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp10_ = _tmp9_;
#line 208 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp11_ = ggit_config_get_string (_tmp1_, _tmp10_, &_inner_error_);
#line 208 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp12_ = _tmp11_;
#line 208 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_free0 (_tmp10_);
#line 208 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_free0 (_tmp7_);
#line 208 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_object_unref0 (_tmp4_);
#line 208 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp0_ = _tmp12_;
#line 208 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1378 "gitg-ref.c"
			goto __catch52_g_error;
		}
#line 208 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp13_ = g_strdup (_tmp0_);
#line 208 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_free0 (remote);
#line 208 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		remote = _tmp13_;
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp15_ = cfg;
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp16_ = gitg_ref_get_parsed_name (self);
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp17_ = _tmp16_;
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp18_ = _tmp17_;
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp19_ = gitg_parsed_ref_name_get_shortname (_tmp18_);
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp20_ = _tmp19_;
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp21_ = _tmp20_;
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp22_ = string_to_string (_tmp21_);
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp23_ = g_strconcat ("branch.", _tmp22_, ".merge", NULL);
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp24_ = _tmp23_;
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp25_ = ggit_config_get_string (_tmp15_, _tmp24_, &_inner_error_);
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp26_ = _tmp25_;
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_free0 (_tmp24_);
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_free0 (_tmp21_);
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_object_unref0 (_tmp18_);
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp14_ = _tmp26_;
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1421 "gitg-ref.c"
			goto __catch52_g_error;
		}
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp27_ = g_strdup (_tmp14_);
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_free0 (merge);
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		merge = _tmp27_;
#line 1430 "gitg-ref.c"
	}
	goto __finally52;
	__catch52_g_error:
	{
#line 206 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_clear_error (&_inner_error_);
#line 206 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_inner_error_ = NULL;
#line 210 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_free0 (merge);
#line 210 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_free0 (remote);
#line 210 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		return;
#line 1445 "gitg-ref.c"
	}
	__finally52:
#line 206 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 206 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_free0 (merge);
#line 206 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_free0 (remote);
#line 206 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 206 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_clear_error (&_inner_error_);
#line 206 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		return;
#line 1460 "gitg-ref.c"
	}
#line 212 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp28_ = merge;
#line 212 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp29_ = gitg_parsed_ref_name_new (_tmp28_);
#line 212 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	nm = _tmp29_;
#line 214 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp30_ = remote;
#line 214 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp31_ = string_to_string (_tmp30_);
#line 214 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp32_ = nm;
#line 214 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp33_ = gitg_parsed_ref_name_get_shortname (_tmp32_);
#line 214 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp34_ = _tmp33_;
#line 214 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp35_ = _tmp34_;
#line 214 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp36_ = string_to_string (_tmp35_);
#line 214 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp37_ = g_strconcat ("refs/remotes/", _tmp31_, "/", _tmp36_, NULL);
#line 214 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp38_ = _tmp37_;
#line 214 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	gitg_ref_add_push_ref (self, _tmp38_);
#line 214 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_free0 (_tmp38_);
#line 214 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_free0 (_tmp35_);
#line 201 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_object_unref0 (nm);
#line 201 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_free0 (merge);
#line 201 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_free0 (remote);
#line 1498 "gitg-ref.c"
}


static Block15Data* block15_data_ref (Block15Data* _data15_) {
#line 217 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_atomic_int_inc (&_data15_->_ref_count_);
#line 217 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	return _data15_;
#line 1507 "gitg-ref.c"
}


static void block15_data_unref (void * _userdata_) {
	Block15Data* _data15_;
	_data15_ = (Block15Data*) _userdata_;
#line 217 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	if (g_atomic_int_dec_and_test (&_data15_->_ref_count_)) {
#line 1516 "gitg-ref.c"
		GitgRef* self;
#line 217 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		self = _data15_->self;
#line 217 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_regex_unref0 (_data15_->valregex);
#line 217 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_object_unref0 (self);
#line 217 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_slice_free (Block15Data, _data15_);
#line 1526 "gitg-ref.c"
	}
}


static gint ___lambda31_ (Block15Data* _data15_, GMatchInfo* info, const gchar* val) {
	GitgRef* self;
	gint result = 0;
	GMatchInfo* vinfo = NULL;
	GRegex* _tmp0_;
	const gchar* _tmp1_;
	GMatchInfo* _tmp2_ = NULL;
	gboolean _tmp3_;
	gchar* rname;
	GMatchInfo* _tmp4_;
	gchar* _tmp5_;
	gchar* pref;
	GMatchInfo* _tmp6_;
	gchar* _tmp7_;
	const gchar* _tmp8_;
	const gchar* _tmp9_;
	const gchar* _tmp10_;
	const gchar* _tmp11_;
	gchar* _tmp12_;
	gchar* _tmp13_;
#line 230 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	self = _data15_->self;
#line 230 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_val_if_fail (info != NULL, 0);
#line 230 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_val_if_fail (val != NULL, 0);
#line 233 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp0_ = _data15_->valregex;
#line 233 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp1_ = val;
#line 233 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp3_ = g_regex_match (_tmp0_, _tmp1_, 0, &_tmp2_);
#line 233 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_match_info_unref0 (vinfo);
#line 233 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	vinfo = _tmp2_;
#line 233 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	if (!_tmp3_) {
#line 235 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		result = 0;
#line 235 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_match_info_unref0 (vinfo);
#line 235 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		return result;
#line 1575 "gitg-ref.c"
	}
#line 238 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp4_ = info;
#line 238 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp5_ = g_match_info_fetch (_tmp4_, 1);
#line 238 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	rname = _tmp5_;
#line 239 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp6_ = vinfo;
#line 239 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp7_ = g_match_info_fetch (_tmp6_, 1);
#line 239 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	pref = _tmp7_;
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp8_ = rname;
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp9_ = string_to_string (_tmp8_);
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp10_ = pref;
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp11_ = string_to_string (_tmp10_);
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp12_ = g_strconcat ("refs/remotes/", _tmp9_, "/", _tmp11_, NULL);
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp13_ = _tmp12_;
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	gitg_ref_add_push_ref (self, _tmp13_);
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_free0 (_tmp13_);
#line 242 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	result = 0;
#line 242 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_free0 (pref);
#line 242 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_free0 (rname);
#line 242 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_match_info_unref0 (vinfo);
#line 242 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	return result;
#line 1615 "gitg-ref.c"
}


static gint ____lambda31__ggit_config_match_callback (GMatchInfo* match_info, const gchar* value, gpointer self) {
	gint result;
	result = ___lambda31_ (self, match_info, value);
#line 230 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	return result;
#line 1624 "gitg-ref.c"
}


static void gitg_ref_add_remote_configured_push (GitgRef* self, GgitConfig* cfg) {
	Block15Data* _data15_;
	GError * _inner_error_ = NULL;
#line 217 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_if_fail (cfg != NULL);
#line 217 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_data15_ = g_slice_new0 (Block15Data);
#line 217 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_data15_->_ref_count_ = 1;
#line 217 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_data15_->self = g_object_ref (self);
#line 1639 "gitg-ref.c"
	{
		GRegex* _tmp0_;
		const gchar* _tmp1_;
		gchar* _tmp2_;
		gchar* _tmp3_;
		gchar* _tmp4_;
		gchar* _tmp5_;
		GRegex* _tmp6_;
		GRegex* _tmp7_;
		GRegex* _tmp8_;
		GRegex* _tmp9_;
		GgitConfig* _tmp13_;
		GRegex* _tmp14_;
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp1_ = ggit_ref_get_name ((GgitRef*) self);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp2_ = g_regex_escape_string (_tmp1_, -1);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp3_ = _tmp2_;
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp4_ = g_strdup_printf ("^%s:(.*)", _tmp3_);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp5_ = _tmp4_;
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp6_ = g_regex_new (_tmp5_, 0, 0, &_inner_error_);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp7_ = _tmp6_;
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_free0 (_tmp5_);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_free0 (_tmp3_);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp0_ = _tmp7_;
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1675 "gitg-ref.c"
			goto __catch53_g_error;
		}
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp8_ = _tmp0_;
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp0_ = NULL;
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_regex_unref0 (_data15_->valregex);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_data15_->valregex = _tmp8_;
#line 225 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp9_ = gitg_ref_s_remote_key_regex;
#line 225 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		if (_tmp9_ == NULL) {
#line 1690 "gitg-ref.c"
			GRegex* _tmp10_;
			GRegex* _tmp11_;
			GRegex* _tmp12_;
#line 227 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
			_tmp11_ = g_regex_new ("remote\\.(.*)\\.push", 0, 0, &_inner_error_);
#line 227 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
			_tmp10_ = _tmp11_;
#line 227 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 227 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
				_g_regex_unref0 (_tmp0_);
#line 1702 "gitg-ref.c"
				goto __catch53_g_error;
			}
#line 227 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
			_tmp12_ = _tmp10_;
#line 227 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
			_tmp10_ = NULL;
#line 227 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
			_g_regex_unref0 (gitg_ref_s_remote_key_regex);
#line 227 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
			gitg_ref_s_remote_key_regex = _tmp12_;
#line 225 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
			_g_regex_unref0 (_tmp10_);
#line 1715 "gitg-ref.c"
		}
#line 230 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp13_ = cfg;
#line 230 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp14_ = gitg_ref_s_remote_key_regex;
#line 230 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		ggit_config_match_foreach (_tmp13_, _tmp14_, ____lambda31__ggit_config_match_callback, _data15_, &_inner_error_);
#line 230 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 230 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
			_g_regex_unref0 (_tmp0_);
#line 1727 "gitg-ref.c"
			goto __catch53_g_error;
		}
#line 221 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_regex_unref0 (_tmp0_);
#line 1732 "gitg-ref.c"
	}
	goto __finally53;
	__catch53_g_error:
	{
#line 221 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_clear_error (&_inner_error_);
#line 221 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_inner_error_ = NULL;
#line 245 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		block15_data_unref (_data15_);
#line 245 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_data15_ = NULL;
#line 245 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		return;
#line 1747 "gitg-ref.c"
	}
	__finally53:
#line 221 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 221 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		block15_data_unref (_data15_);
#line 221 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_data15_ = NULL;
#line 221 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 221 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_clear_error (&_inner_error_);
#line 221 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		return;
#line 1762 "gitg-ref.c"
	}
#line 217 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	block15_data_unref (_data15_);
#line 217 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_data15_ = NULL;
#line 1768 "gitg-ref.c"
}


static void gitg_ref_add_branch_same_name_push (GitgRef* self, GgitConfig* cfg) {
	gchar* remote = NULL;
	const gchar* _tmp14_;
	const gchar* _tmp15_;
	GitgParsedRefName* _tmp16_;
	GitgParsedRefName* _tmp17_;
	GitgParsedRefName* _tmp18_;
	gchar* _tmp19_;
	gchar* _tmp20_;
	gchar* _tmp21_;
	const gchar* _tmp22_;
	gchar* _tmp23_;
	gchar* _tmp24_;
	GError * _inner_error_ = NULL;
#line 248 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_if_fail (cfg != NULL);
#line 1788 "gitg-ref.c"
	{
		const gchar* _tmp0_;
		GgitConfig* _tmp1_;
		GitgParsedRefName* _tmp2_;
		GitgParsedRefName* _tmp3_;
		GitgParsedRefName* _tmp4_;
		gchar* _tmp5_;
		gchar* _tmp6_;
		gchar* _tmp7_;
		const gchar* _tmp8_;
		gchar* _tmp9_;
		gchar* _tmp10_;
		const gchar* _tmp11_;
		const gchar* _tmp12_;
		gchar* _tmp13_;
#line 254 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp1_ = cfg;
#line 254 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp2_ = gitg_ref_get_parsed_name (self);
#line 254 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp3_ = _tmp2_;
#line 254 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp4_ = _tmp3_;
#line 254 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp5_ = gitg_parsed_ref_name_get_shortname (_tmp4_);
#line 254 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp6_ = _tmp5_;
#line 254 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp7_ = _tmp6_;
#line 254 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp8_ = string_to_string (_tmp7_);
#line 254 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp9_ = g_strconcat ("branch.", _tmp8_, ".remote", NULL);
#line 254 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp10_ = _tmp9_;
#line 254 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp11_ = ggit_config_get_string (_tmp1_, _tmp10_, &_inner_error_);
#line 254 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp12_ = _tmp11_;
#line 254 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_free0 (_tmp10_);
#line 254 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_free0 (_tmp7_);
#line 254 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_object_unref0 (_tmp4_);
#line 254 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp0_ = _tmp12_;
#line 254 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1838 "gitg-ref.c"
			goto __catch54_g_error;
		}
#line 254 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp13_ = g_strdup (_tmp0_);
#line 254 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_free0 (remote);
#line 254 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		remote = _tmp13_;
#line 1847 "gitg-ref.c"
	}
	goto __finally54;
	__catch54_g_error:
	{
#line 252 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_clear_error (&_inner_error_);
#line 252 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_inner_error_ = NULL;
#line 255 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_free0 (remote);
#line 255 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		return;
#line 1860 "gitg-ref.c"
	}
	__finally54:
#line 252 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 252 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_free0 (remote);
#line 252 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 252 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_clear_error (&_inner_error_);
#line 252 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		return;
#line 1873 "gitg-ref.c"
	}
#line 257 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp14_ = remote;
#line 257 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp15_ = string_to_string (_tmp14_);
#line 257 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp16_ = gitg_ref_get_parsed_name (self);
#line 257 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp17_ = _tmp16_;
#line 257 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp18_ = _tmp17_;
#line 257 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp19_ = gitg_parsed_ref_name_get_shortname (_tmp18_);
#line 257 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp20_ = _tmp19_;
#line 257 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp21_ = _tmp20_;
#line 257 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp22_ = string_to_string (_tmp21_);
#line 257 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp23_ = g_strconcat ("refs/remotes/", _tmp15_, "/", _tmp22_, NULL);
#line 257 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp24_ = _tmp23_;
#line 257 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	gitg_ref_add_push_ref (self, _tmp24_);
#line 257 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_free0 (_tmp24_);
#line 257 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_free0 (_tmp21_);
#line 257 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_object_unref0 (_tmp18_);
#line 248 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_free0 (remote);
#line 1907 "gitg-ref.c"
}


static void gitg_ref_compose_pushes (GitgRef* self) {
	GgitConfig* cfg = NULL;
	GgitConfig* _tmp6_;
	GgitConfig* _tmp7_;
	GgitConfig* _tmp8_;
	GError * _inner_error_ = NULL;
#line 262 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	gitg_ref_set_d_pushes (self, NULL);
#line 1919 "gitg-ref.c"
	{
		GgitConfig* _tmp0_;
		GitgRepository* _tmp1_;
		GitgRepository* _tmp2_;
		GgitConfig* _tmp3_;
		GgitConfig* _tmp4_;
		GgitConfig* _tmp5_;
#line 268 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp1_ = gitg_ref_get_owner (self);
#line 268 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp2_ = _tmp1_;
#line 268 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp3_ = ggit_repository_get_config ((GgitRepository*) _tmp2_, &_inner_error_);
#line 268 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp4_ = _tmp3_;
#line 268 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_object_unref0 (_tmp2_);
#line 268 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp0_ = _tmp4_;
#line 268 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1941 "gitg-ref.c"
			goto __catch55_g_error;
		}
#line 268 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp5_ = _tmp0_;
#line 268 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp0_ = NULL;
#line 268 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_object_unref0 (cfg);
#line 268 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		cfg = _tmp5_;
#line 266 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_object_unref0 (_tmp0_);
#line 1954 "gitg-ref.c"
	}
	goto __finally55;
	__catch55_g_error:
	{
#line 266 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_clear_error (&_inner_error_);
#line 266 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_inner_error_ = NULL;
#line 269 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_object_unref0 (cfg);
#line 269 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		return;
#line 1967 "gitg-ref.c"
	}
	__finally55:
#line 266 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 266 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_object_unref0 (cfg);
#line 266 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
#line 266 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_clear_error (&_inner_error_);
#line 266 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		return;
#line 1980 "gitg-ref.c"
	}
#line 292 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp6_ = cfg;
#line 292 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	gitg_ref_add_branch_configured_push (self, _tmp6_);
#line 295 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp7_ = cfg;
#line 295 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	gitg_ref_add_remote_configured_push (self, _tmp7_);
#line 298 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp8_ = cfg;
#line 298 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	gitg_ref_add_branch_same_name_push (self, _tmp8_);
#line 260 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_g_object_unref0 (cfg);
#line 1996 "gitg-ref.c"
}


GitgParsedRefName* gitg_ref_get_d_parsed_name (GitgRef* self) {
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	return GITG_REF_GET_INTERFACE (self)->get_d_parsed_name (self);
#line 2005 "gitg-ref.c"
}


void gitg_ref_set_d_parsed_name (GitgRef* self, GitgParsedRefName* value) {
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_if_fail (self != NULL);
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	GITG_REF_GET_INTERFACE (self)->set_d_parsed_name (self, value);
#line 2014 "gitg-ref.c"
}


GList* gitg_ref_get_d_pushes (GitgRef* self) {
#line 164 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 164 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	return GITG_REF_GET_INTERFACE (self)->get_d_pushes (self);
#line 2023 "gitg-ref.c"
}


void gitg_ref_set_d_pushes (GitgRef* self, GList* value) {
#line 164 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_if_fail (self != NULL);
#line 164 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	GITG_REF_GET_INTERFACE (self)->set_d_pushes (self, value);
#line 2032 "gitg-ref.c"
}


GitgRefState gitg_ref_get_state (GitgRef* self) {
#line 166 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_val_if_fail (self != NULL, 0);
#line 166 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	return GITG_REF_GET_INTERFACE (self)->get_state (self);
#line 2041 "gitg-ref.c"
}


void gitg_ref_set_state (GitgRef* self, GitgRefState value) {
#line 166 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_if_fail (self != NULL);
#line 166 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	GITG_REF_GET_INTERFACE (self)->set_state (self, value);
#line 2050 "gitg-ref.c"
}


gboolean gitg_ref_get_working (GitgRef* self) {
#line 167 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_val_if_fail (self != NULL, FALSE);
#line 167 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	return GITG_REF_GET_INTERFACE (self)->get_working (self);
#line 2059 "gitg-ref.c"
}


void gitg_ref_set_working (GitgRef* self, gboolean value) {
#line 167 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_if_fail (self != NULL);
#line 167 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	GITG_REF_GET_INTERFACE (self)->set_working (self, value);
#line 2068 "gitg-ref.c"
}


GitgParsedRefName* gitg_ref_get_parsed_name (GitgRef* self) {
	GitgParsedRefName* result;
	GitgParsedRefName* _tmp0_;
	GitgParsedRefName* _tmp1_;
	GitgParsedRefName* _tmp5_;
	GitgParsedRefName* _tmp6_;
	GitgParsedRefName* _tmp7_;
#line 171 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp0_ = gitg_ref_get_d_parsed_name (self);
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp1_ = _tmp0_;
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	if (_tmp1_ == NULL) {
#line 2087 "gitg-ref.c"
		const gchar* _tmp2_;
		GitgParsedRefName* _tmp3_;
		GitgParsedRefName* _tmp4_;
#line 175 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp2_ = ggit_ref_get_name ((GgitRef*) self);
#line 175 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp3_ = gitg_parsed_ref_name_new (_tmp2_);
#line 175 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_tmp4_ = _tmp3_;
#line 175 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		gitg_ref_set_d_parsed_name (self, _tmp4_);
#line 175 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		_g_object_unref0 (_tmp4_);
#line 2101 "gitg-ref.c"
	}
#line 178 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp5_ = gitg_ref_get_d_parsed_name (self);
#line 178 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp6_ = _tmp5_;
#line 178 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp7_ = _g_object_ref0 (_tmp6_);
#line 178 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	result = _tmp7_;
#line 178 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	return result;
#line 2113 "gitg-ref.c"
}


GList* gitg_ref_get_pushes (GitgRef* self) {
	GList* result;
	GList* _tmp0_;
	GList* _tmp1_;
	GList* _tmp2_;
	GList* _tmp3_;
#line 303 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 305 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp0_ = gitg_ref_get_d_pushes (self);
#line 305 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp1_ = _tmp0_;
#line 305 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	if (_tmp1_ == NULL) {
#line 307 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		gitg_ref_compose_pushes (self);
#line 2133 "gitg-ref.c"
	}
#line 310 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp2_ = gitg_ref_get_d_pushes (self);
#line 310 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	_tmp3_ = _tmp2_;
#line 310 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	result = _tmp3_;
#line 310 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	return result;
#line 2143 "gitg-ref.c"
}


static void gitg_ref_base_init (GitgRefIface * iface) {
#line 159 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	static gboolean initialized = FALSE;
#line 159 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
	if (!initialized) {
#line 159 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		initialized = TRUE;
#line 159 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_object_interface_install_property (iface, g_param_spec_object ("d-parsed-name", "d-parsed-name", "d-parsed-name", GITG_TYPE_PARSED_REF_NAME, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 159 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_object_interface_install_property (iface, g_param_spec_pointer ("d-pushes", "d-pushes", "d-pushes", G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 159 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_object_interface_install_property (iface, g_param_spec_enum ("state", "state", "state", GITG_TYPE_REF_STATE, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 159 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-ref.vala"
		g_object_interface_install_property (iface, g_param_spec_boolean ("working", "working", "working", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
#line 2162 "gitg-ref.c"
	}
}


GType gitg_ref_get_type (void) {
	static volatile gsize gitg_ref_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_ref_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgRefIface), (GBaseInitFunc) gitg_ref_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
		GType gitg_ref_type_id;
		gitg_ref_type_id = g_type_register_static (G_TYPE_INTERFACE, "GitgRef", &g_define_type_info, 0);
		g_type_interface_add_prerequisite (gitg_ref_type_id, ggit_ref_get_type ());
		g_once_init_leave (&gitg_ref_type_id__volatile, gitg_ref_type_id);
	}
	return gitg_ref_type_id__volatile;
}


static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	if ((array != NULL) && (destroy_func != NULL)) {
		int i;
		for (i = 0; i < array_length; i = i + 1) {
			if (((gpointer*) array)[i] != NULL) {
				destroy_func (((gpointer*) array)[i]);
			}
		}
	}
}


static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func) {
	_vala_array_destroy (array, array_length, destroy_func);
	g_free (array);
}



