/* gitg-repository.c generated by valac 0.35.5.2-9e6c0, the Vala compiler
 * generated from gitg-repository.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 <libgit2-glib/ggit.h>
#include <gio/gio.h>
#include <stdlib.h>
#include <string.h>
#include <gee.h>


#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;
typedef struct _GitgRepositoryPrivate GitgRepositoryPrivate;

#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_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;

#define GITG_TYPE_REF_STATE (gitg_ref_state_get_type ())

#define GITG_TYPE_STAGE (gitg_stage_get_type ())
#define GITG_STAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_STAGE, GitgStage))
#define GITG_STAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_STAGE, GitgStageClass))
#define GITG_IS_STAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_STAGE))
#define GITG_IS_STAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_STAGE))
#define GITG_STAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_STAGE, GitgStageClass))

typedef struct _GitgStage GitgStage;
typedef struct _GitgStageClass GitgStageClass;
#define _g_hash_table_unref0(var) ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define __g_slist_free__g_object_unref0_0(var) ((var == NULL) ? NULL : (var = (_g_slist_free__g_object_unref0_ (var), NULL)))
#define __vala_GgitOId_free0(var) ((var == NULL) ? NULL : (var = (_vala_GgitOId_free (var), NULL)))

#define GITG_TYPE_BRANCH (gitg_branch_get_type ())
#define GITG_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_BRANCH, GitgBranch))
#define GITG_IS_BRANCH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_BRANCH))
#define GITG_BRANCH_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GITG_TYPE_BRANCH, GitgBranchIface))

typedef struct _GitgBranch GitgBranch;
typedef struct _GitgBranchIface GitgBranchIface;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_date_time_unref0(var) ((var == NULL) ? NULL : (var = (g_date_time_unref (var), NULL)))

struct _GitgRepository {
	GgitRepository parent_instance;
	GitgRepositoryPrivate * priv;
};

struct _GitgRepositoryClass {
	GgitRepositoryClass parent_class;
};

typedef enum  {
	GITG_REF_STATE_NONE,
	GITG_REF_STATE_SELECTED,
	GITG_REF_STATE_PRELIGHT
} GitgRefState;

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 _GitgRepositoryPrivate {
	GHashTable* d_refs;
	GitgStage* d_stage;
};

struct _GitgBranchIface {
	GTypeInterface parent_iface;
	GitgRef* (*get_upstream) (GitgBranch* self, GError** error);
};


static gpointer gitg_repository_parent_class = NULL;

GType gitg_repository_get_type (void) G_GNUC_CONST;
GType gitg_parsed_ref_name_get_type (void) G_GNUC_CONST;
GType gitg_ref_state_get_type (void) G_GNUC_CONST;
GType gitg_ref_get_type (void) G_GNUC_CONST;
GType gitg_stage_get_type (void) G_GNUC_CONST;
#define GITG_REPOSITORY_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_REPOSITORY, GitgRepositoryPrivate))
enum  {
	GITG_REPOSITORY_DUMMY_PROPERTY,
	GITG_REPOSITORY_NAME,
	GITG_REPOSITORY_STAGE
};
GitgRepository* gitg_repository_new (GFile* location, GFile* workdir, GError** error);
GitgRepository* gitg_repository_construct (GType object_type, GFile* location, GFile* workdir, GError** error);
static void gitg_repository_ensure_refs_add (GitgRepository* self, GgitOId* id, GitgRef* r);
static GgitOId* _vala_GgitOId_copy (GgitOId* self);
static void _g_object_unref0_ (gpointer var);
static void _g_slist_free__g_object_unref0_ (GSList* self);
void gitg_repository_clear_refs_cache (GitgRepository* self);
static void gitg_repository_ensure_refs (GitgRepository* self);
static guint _ggit_oid_hash_ghash_func (gconstpointer key);
static gboolean _ggit_oid_equal_gequal_func (gconstpointer a, gconstpointer b);
static void _vala_GgitOId_free (GgitOId* self);
static void __vala_GgitOId_free0_ (gpointer var);
static void __g_slist_free__g_object_unref0_0_ (gpointer var);
static gint ___lambda29_ (GitgRepository* self, const gchar* name);
GitgRef* gitg_repository_lookup_reference (GitgRepository* self, const gchar* name, GError** error);
gpointer gitg_repository_lookup (GitgRepository* self, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, GgitOId* id, GError** error);
static gint ____lambda29__ggit_references_name_callback (const gchar* name, gpointer self);
GSList* gitg_repository_refs_for_id (GitgRepository* self, GgitOId* id);
GitgRef* gitg_repository_lookup_reference_dwim (GitgRepository* self, const gchar* short_name, GError** error);
GType gitg_branch_get_type (void) G_GNUC_CONST;
GitgBranch* gitg_repository_create_branch (GitgRepository* self, const gchar* name, GgitObject* obj, GgitCreateFlags flags, GError** error);
GitgRef* gitg_repository_create_reference (GitgRepository* self, const gchar* name, GgitOId* oid, const gchar* message, GError** error);
GitgRef* gitg_repository_create_symbolic_reference (GitgRepository* self, const gchar* name, const gchar* target, const gchar* message, GError** error);
GitgRef* gitg_repository_get_head (GitgRepository* self, GError** error);
GitgRepository* gitg_repository_init_repository (GFile* location, gboolean is_bare, GError** error);
GgitSignature* gitg_repository_get_signature_with_environment (GitgRepository* self, GeeMap* env, const gchar* envname, GError** error);
GDateTime* gitg_date_parse (const gchar* date, GError** error);
gchar* gitg_repository_get_name (GitgRepository* self);
GitgStage* gitg_repository_get_stage (GitgRepository* self);
GitgStage* gitg_stage_new (GitgRepository* repository);
GitgStage* gitg_stage_construct (GType object_type, GitgRepository* repository);
static void gitg_repository_finalize (GObject * obj);
static void _vala_gitg_repository_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);


GitgRepository* gitg_repository_construct (GType object_type, GFile* location, GFile* workdir, GError** error) {
	GitgRepository * self = NULL;
	GFile* _tmp0_;
	GFile* _tmp1_;
	GError * _inner_error_ = NULL;
#line 37 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (location != NULL, NULL);
#line 39 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp0_ = location;
#line 39 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp1_ = workdir;
#line 39 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	self = (GitgRepository*) g_object_new (object_type, "location", _tmp0_, "workdir", _tmp1_, NULL);
#line 42 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_initable_init (G_TYPE_CHECK_INSTANCE_CAST (self, g_initable_get_type (), GInitable), NULL, &_inner_error_);
#line 42 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 42 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		g_propagate_error (error, _inner_error_);
#line 42 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_object_unref0 (self);
#line 42 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		return NULL;
#line 198 "gitg-repository.c"
	}
#line 37 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	return self;
#line 202 "gitg-repository.c"
}


GitgRepository* gitg_repository_new (GFile* location, GFile* workdir, GError** error) {
#line 37 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	return gitg_repository_construct (GITG_TYPE_REPOSITORY, location, workdir, error);
#line 209 "gitg-repository.c"
}


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


static GgitOId* _vala_GgitOId_copy (GgitOId* self) {
#line 63 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	return g_boxed_copy (ggit_oid_get_type (), self);
#line 223 "gitg-repository.c"
}


static gpointer __vala_GgitOId_copy0 (gpointer self) {
#line 63 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	return self ? _vala_GgitOId_copy (self) : NULL;
#line 230 "gitg-repository.c"
}


static void _g_object_unref0_ (gpointer var) {
#line 54 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	(var == NULL) ? NULL : (var = (g_object_unref (var), NULL));
#line 237 "gitg-repository.c"
}


static void _g_slist_free__g_object_unref0_ (GSList* self) {
#line 54 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_slist_foreach (self, (GFunc) _g_object_unref0_, NULL);
#line 54 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_slist_free (self);
#line 246 "gitg-repository.c"
}


static void gitg_repository_ensure_refs_add (GitgRepository* self, GgitOId* id, GitgRef* r) {
	GgitOId* _tmp0_;
	GSList* refs = NULL;
	GHashTable* _tmp1_;
	GgitOId* _tmp2_;
	gconstpointer _tmp3_ = NULL;
	gboolean _tmp4_;
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_if_fail (self != NULL);
#line 45 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_if_fail (r != NULL);
#line 47 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp0_ = id;
#line 47 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (_tmp0_ == NULL) {
#line 49 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		return;
#line 267 "gitg-repository.c"
	}
#line 54 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp1_ = self->priv->d_refs;
#line 54 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp2_ = id;
#line 54 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp4_ = g_hash_table_lookup_extended (_tmp1_, _tmp2_, NULL, &_tmp3_);
#line 54 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	refs = _tmp3_;
#line 54 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (_tmp4_) {
#line 279 "gitg-repository.c"
		GitgRef* _tmp5_;
		GitgRef* _tmp6_;
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp5_ = r;
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp6_ = _g_object_ref0 (_tmp5_);
#line 56 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		refs = g_slist_append (refs, _tmp6_);
#line 288 "gitg-repository.c"
	} else {
		GSList* nrefs;
		GitgRef* _tmp7_;
		GitgRef* _tmp8_;
		GHashTable* _tmp9_;
		GgitOId* _tmp10_;
		GgitOId* _tmp11_;
		GSList* _tmp12_;
#line 60 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		nrefs = NULL;
#line 61 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp7_ = r;
#line 61 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp8_ = _g_object_ref0 (_tmp7_);
#line 61 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		nrefs = g_slist_append (nrefs, _tmp8_);
#line 63 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp9_ = self->priv->d_refs;
#line 63 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp10_ = id;
#line 63 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp11_ = __vala_GgitOId_copy0 (_tmp10_);
#line 63 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp12_ = nrefs;
#line 63 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		nrefs = NULL;
#line 63 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		g_hash_table_insert (_tmp9_, _tmp11_, _tmp12_);
#line 54 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		__g_slist_free__g_object_unref0_0 (nrefs);
#line 319 "gitg-repository.c"
	}
}


void gitg_repository_clear_refs_cache (GitgRepository* self) {
#line 67 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_if_fail (self != NULL);
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_hash_table_unref0 (self->priv->d_refs);
#line 69 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	self->priv->d_refs = NULL;
#line 331 "gitg-repository.c"
}


static guint _ggit_oid_hash_ghash_func (gconstpointer key) {
	guint result;
	result = ggit_oid_hash (key);
#line 79 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	return result;
#line 340 "gitg-repository.c"
}


static gboolean _ggit_oid_equal_gequal_func (gconstpointer a, gconstpointer b) {
	gboolean result;
	result = ggit_oid_equal (a, (GgitOId*) b);
#line 79 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	return result;
#line 349 "gitg-repository.c"
}


static void _vala_GgitOId_free (GgitOId* self) {
#line 79 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_boxed_free (ggit_oid_get_type (), self);
#line 356 "gitg-repository.c"
}


static void __vala_GgitOId_free0_ (gpointer var) {
#line 79 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	(var == NULL) ? NULL : (var = (_vala_GgitOId_free (var), NULL));
#line 363 "gitg-repository.c"
}


static void __g_slist_free__g_object_unref0_0_ (gpointer var) {
#line 79 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	(var == NULL) ? NULL : (var = (_g_slist_free__g_object_unref0_ (var), NULL));
#line 370 "gitg-repository.c"
}


static gint ___lambda29_ (GitgRepository* self, const gchar* name) {
	gint result = 0;
	GitgRef* r = NULL;
	GitgRef* _tmp5_;
	GgitOId* id;
	GitgRef* _tmp6_;
	GgitOId* _tmp7_;
	GgitOId* _tmp8_;
	GgitOId* _tmp9_;
	GitgRef* _tmp10_;
	GError * _inner_error_ = NULL;
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (name != NULL, 0);
#line 387 "gitg-repository.c"
	{
		GitgRef* _tmp0_;
		const gchar* _tmp1_;
		GitgRef* _tmp2_;
		GitgRef* _tmp3_;
#line 89 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp1_ = name;
#line 89 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp2_ = gitg_repository_lookup_reference (self, _tmp1_, &_inner_error_);
#line 89 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp0_ = _tmp2_;
#line 89 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 401 "gitg-repository.c"
			goto __catch74_g_error;
		}
#line 89 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp3_ = _tmp0_;
#line 89 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp0_ = NULL;
#line 89 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_object_unref0 (r);
#line 89 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		r = _tmp3_;
#line 87 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_object_unref0 (_tmp0_);
#line 414 "gitg-repository.c"
	}
	goto __finally74;
	__catch74_g_error:
	{
#line 87 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		g_clear_error (&_inner_error_);
#line 87 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_inner_error_ = NULL;
#line 91 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		result = 0;
#line 91 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_object_unref0 (r);
#line 91 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		return result;
#line 429 "gitg-repository.c"
	}
	__finally74:
#line 87 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 434 "gitg-repository.c"
		gint _tmp4_ = 0;
#line 87 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_object_unref0 (r);
#line 87 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.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 87 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		g_clear_error (&_inner_error_);
#line 87 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		return _tmp4_;
#line 444 "gitg-repository.c"
	}
#line 93 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp5_ = r;
#line 93 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (_tmp5_ == NULL) {
#line 95 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		result = 0;
#line 95 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_object_unref0 (r);
#line 95 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		return result;
#line 456 "gitg-repository.c"
	}
#line 98 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp6_ = r;
#line 98 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp7_ = ggit_ref_get_target ((GgitRef*) _tmp6_);
#line 98 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	id = _tmp7_;
#line 100 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp8_ = id;
#line 100 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (_tmp8_ == NULL) {
#line 102 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		result = 0;
#line 102 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		__vala_GgitOId_free0 (id);
#line 102 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_object_unref0 (r);
#line 102 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		return result;
#line 476 "gitg-repository.c"
	}
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp9_ = id;
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp10_ = r;
#line 105 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	gitg_repository_ensure_refs_add (self, _tmp9_, _tmp10_);
#line 484 "gitg-repository.c"
	{
		GgitTag* tag;
		GgitOId* _tmp11_;
		gpointer _tmp12_;
		GgitTag* _tmp13_;
		GgitOId* _tmp14_;
		GgitOId* _tmp15_;
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp11_ = id;
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp12_ = gitg_repository_lookup (self, ggit_tag_get_type (), (GBoxedCopyFunc) g_object_ref, g_object_unref, _tmp11_, &_inner_error_);
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		tag = (GgitTag*) _tmp12_;
#line 111 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 500 "gitg-repository.c"
			goto __catch75_g_error;
		}
#line 114 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp13_ = tag;
#line 114 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp14_ = ggit_tag_get_target_id (_tmp13_);
#line 114 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		__vala_GgitOId_free0 (id);
#line 114 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		id = _tmp14_;
#line 116 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp15_ = id;
#line 116 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		if (_tmp15_ != NULL) {
#line 515 "gitg-repository.c"
			GgitOId* _tmp16_;
			GitgRef* _tmp17_;
#line 118 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_tmp16_ = id;
#line 118 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_tmp17_ = r;
#line 118 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			gitg_repository_ensure_refs_add (self, _tmp16_, _tmp17_);
#line 524 "gitg-repository.c"
		}
#line 109 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_object_unref0 (tag);
#line 528 "gitg-repository.c"
	}
	goto __finally75;
	__catch75_g_error:
	{
#line 109 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		g_clear_error (&_inner_error_);
#line 109 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_inner_error_ = NULL;
#line 537 "gitg-repository.c"
	}
	__finally75:
#line 109 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 542 "gitg-repository.c"
		gint _tmp18_ = 0;
#line 109 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		__vala_GgitOId_free0 (id);
#line 109 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_object_unref0 (r);
#line 109 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.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 109 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		g_clear_error (&_inner_error_);
#line 109 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		return _tmp18_;
#line 554 "gitg-repository.c"
	}
#line 122 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	result = 0;
#line 122 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	__vala_GgitOId_free0 (id);
#line 122 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_object_unref0 (r);
#line 122 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	return result;
#line 564 "gitg-repository.c"
}


static gint ____lambda29__ggit_references_name_callback (const gchar* name, gpointer self) {
	gint result;
	result = ___lambda29_ ((GitgRepository*) self, name);
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	return result;
#line 573 "gitg-repository.c"
}


static void gitg_repository_ensure_refs (GitgRepository* self) {
	GHashTable* _tmp0_;
	GHashTable* _tmp1_;
	GError * _inner_error_ = NULL;
#line 72 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_if_fail (self != NULL);
#line 74 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp0_ = self->priv->d_refs;
#line 74 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (_tmp0_ != NULL) {
#line 76 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		return;
#line 589 "gitg-repository.c"
	}
#line 79 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp1_ = g_hash_table_new_full (_ggit_oid_hash_ghash_func, _ggit_oid_equal_gequal_func, __vala_GgitOId_free0_, __g_slist_free__g_object_unref0_0_);
#line 79 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_hash_table_unref0 (self->priv->d_refs);
#line 79 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	self->priv->d_refs = _tmp1_;
#line 597 "gitg-repository.c"
	{
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		ggit_repository_references_foreach_name ((GgitRepository*) self, ____lambda29__ggit_references_name_callback, self, &_inner_error_);
#line 84 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 603 "gitg-repository.c"
			goto __catch73_g_error;
		}
	}
	goto __finally73;
	__catch73_g_error:
	{
#line 82 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		g_clear_error (&_inner_error_);
#line 82 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_inner_error_ = NULL;
#line 614 "gitg-repository.c"
	}
	__finally73:
#line 82 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 82 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.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 82 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		g_clear_error (&_inner_error_);
#line 82 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		return;
#line 625 "gitg-repository.c"
	}
}


GSList* gitg_repository_refs_for_id (GitgRepository* self, GgitOId* id) {
	GSList* result = NULL;
	GHashTable* _tmp0_;
	GgitOId* _tmp1_;
	gconstpointer _tmp2_;
#line 128 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 128 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (id != NULL, NULL);
#line 130 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	gitg_repository_ensure_refs (self);
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp0_ = self->priv->d_refs;
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp1_ = id;
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp2_ = g_hash_table_lookup (_tmp0_, _tmp1_);
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	result = (GSList*) _tmp2_;
#line 132 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	return result;
#line 651 "gitg-repository.c"
}


gpointer gitg_repository_lookup (GitgRepository* self, GType t_type, GBoxedCopyFunc t_dup_func, GDestroyNotify t_destroy_func, GgitOId* id, GError** error) {
	gpointer result = NULL;
	GgitObject* _tmp0_;
	GgitOId* _tmp1_;
	GgitObject* _tmp2_;
	GgitObject* _tmp3_;
	GError * _inner_error_ = NULL;
#line 135 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 135 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (id != NULL, NULL);
#line 137 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp1_ = id;
#line 137 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp2_ = ggit_repository_lookup (G_TYPE_CHECK_INSTANCE_CAST (self, ggit_repository_get_type (), GgitRepository), _tmp1_, t_type, &_inner_error_);
#line 137 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp0_ = _tmp2_;
#line 137 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 137 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		g_propagate_error (error, _inner_error_);
#line 137 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		return NULL;
#line 678 "gitg-repository.c"
	}
#line 137 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp3_ = _tmp0_;
#line 137 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp0_ = NULL;
#line 137 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	result = (gpointer) _tmp3_;
#line 137 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_object_unref0 (_tmp0_);
#line 137 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	return result;
#line 690 "gitg-repository.c"
}


GitgRef* gitg_repository_lookup_reference (GitgRepository* self, const gchar* name, GError** error) {
	GitgRef* result = NULL;
	GgitRef* _tmp0_;
	const gchar* _tmp1_;
	GgitRef* _tmp2_;
	GgitRef* _tmp3_;
	GitgRef* _tmp4_;
	GError * _inner_error_ = NULL;
#line 141 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 141 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 143 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp1_ = name;
#line 143 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp2_ = ggit_repository_lookup_reference (G_TYPE_CHECK_INSTANCE_CAST (self, ggit_repository_get_type (), GgitRepository), _tmp1_, &_inner_error_);
#line 143 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp0_ = _tmp2_;
#line 143 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 143 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		g_propagate_error (error, _inner_error_);
#line 143 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		return NULL;
#line 718 "gitg-repository.c"
	}
#line 143 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp3_ = _tmp0_;
#line 143 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp0_ = NULL;
#line 143 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, GITG_TYPE_REF) ? ((GitgRef*) _tmp3_) : NULL;
#line 143 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (_tmp4_ == NULL) {
#line 143 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_object_unref0 (_tmp3_);
#line 730 "gitg-repository.c"
	}
#line 143 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	result = _tmp4_;
#line 143 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_object_unref0 (_tmp0_);
#line 143 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	return result;
#line 738 "gitg-repository.c"
}


GitgRef* gitg_repository_lookup_reference_dwim (GitgRepository* self, const gchar* short_name, GError** error) {
	GitgRef* result = NULL;
	GgitRef* _tmp0_;
	const gchar* _tmp1_;
	GgitRef* _tmp2_;
	GgitRef* _tmp3_;
	GitgRef* _tmp4_;
	GError * _inner_error_ = NULL;
#line 146 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 146 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (short_name != NULL, NULL);
#line 148 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp1_ = short_name;
#line 148 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp2_ = ggit_repository_lookup_reference_dwim (G_TYPE_CHECK_INSTANCE_CAST (self, ggit_repository_get_type (), GgitRepository), _tmp1_, &_inner_error_);
#line 148 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp0_ = _tmp2_;
#line 148 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 148 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		g_propagate_error (error, _inner_error_);
#line 148 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		return NULL;
#line 766 "gitg-repository.c"
	}
#line 148 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp3_ = _tmp0_;
#line 148 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp0_ = NULL;
#line 148 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp4_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp3_, GITG_TYPE_REF) ? ((GitgRef*) _tmp3_) : NULL;
#line 148 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (_tmp4_ == NULL) {
#line 148 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_object_unref0 (_tmp3_);
#line 778 "gitg-repository.c"
	}
#line 148 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	result = _tmp4_;
#line 148 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_object_unref0 (_tmp0_);
#line 148 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	return result;
#line 786 "gitg-repository.c"
}


GitgBranch* gitg_repository_create_branch (GitgRepository* self, const gchar* name, GgitObject* obj, GgitCreateFlags flags, GError** error) {
	GitgBranch* result = NULL;
	GgitBranch* _tmp0_;
	const gchar* _tmp1_;
	GgitObject* _tmp2_;
	GgitCreateFlags _tmp3_;
	GgitBranch* _tmp4_;
	GgitBranch* _tmp5_;
	GitgBranch* _tmp6_;
	GError * _inner_error_ = NULL;
#line 151 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 151 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 151 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (obj != NULL, NULL);
#line 153 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp1_ = name;
#line 153 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp2_ = obj;
#line 153 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp3_ = flags;
#line 153 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp4_ = ggit_repository_create_branch (G_TYPE_CHECK_INSTANCE_CAST (self, ggit_repository_get_type (), GgitRepository), _tmp1_, _tmp2_, _tmp3_, &_inner_error_);
#line 153 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp0_ = _tmp4_;
#line 153 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 153 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		g_propagate_error (error, _inner_error_);
#line 153 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		return NULL;
#line 822 "gitg-repository.c"
	}
#line 153 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp5_ = _tmp0_;
#line 153 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp0_ = NULL;
#line 153 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp6_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, GITG_TYPE_BRANCH) ? ((GitgBranch*) _tmp5_) : NULL;
#line 153 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (_tmp6_ == NULL) {
#line 153 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_object_unref0 (_tmp5_);
#line 834 "gitg-repository.c"
	}
#line 153 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	result = _tmp6_;
#line 153 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_object_unref0 (_tmp0_);
#line 153 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	return result;
#line 842 "gitg-repository.c"
}


GitgRef* gitg_repository_create_reference (GitgRepository* self, const gchar* name, GgitOId* oid, const gchar* message, GError** error) {
	GitgRef* result = NULL;
	GgitRef* _tmp0_;
	const gchar* _tmp1_;
	GgitOId* _tmp2_;
	const gchar* _tmp3_;
	GgitRef* _tmp4_;
	GgitRef* _tmp5_;
	GitgRef* _tmp6_;
	GError * _inner_error_ = NULL;
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (oid != NULL, NULL);
#line 156 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (message != NULL, NULL);
#line 158 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp1_ = name;
#line 158 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp2_ = oid;
#line 158 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp3_ = message;
#line 158 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp4_ = ggit_repository_create_reference (G_TYPE_CHECK_INSTANCE_CAST (self, ggit_repository_get_type (), GgitRepository), _tmp1_, _tmp2_, _tmp3_, &_inner_error_);
#line 158 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp0_ = _tmp4_;
#line 158 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 158 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		g_propagate_error (error, _inner_error_);
#line 158 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		return NULL;
#line 880 "gitg-repository.c"
	}
#line 158 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp5_ = _tmp0_;
#line 158 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp0_ = NULL;
#line 158 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp6_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, GITG_TYPE_REF) ? ((GitgRef*) _tmp5_) : NULL;
#line 158 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (_tmp6_ == NULL) {
#line 158 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_object_unref0 (_tmp5_);
#line 892 "gitg-repository.c"
	}
#line 158 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	result = _tmp6_;
#line 158 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_object_unref0 (_tmp0_);
#line 158 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	return result;
#line 900 "gitg-repository.c"
}


GitgRef* gitg_repository_create_symbolic_reference (GitgRepository* self, const gchar* name, const gchar* target, const gchar* message, GError** error) {
	GitgRef* result = NULL;
	GgitRef* _tmp0_;
	const gchar* _tmp1_;
	const gchar* _tmp2_;
	const gchar* _tmp3_;
	GgitRef* _tmp4_;
	GgitRef* _tmp5_;
	GitgRef* _tmp6_;
	GError * _inner_error_ = NULL;
#line 161 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 161 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (name != NULL, NULL);
#line 161 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (target != NULL, NULL);
#line 161 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (message != NULL, NULL);
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp1_ = name;
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp2_ = target;
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp3_ = message;
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp4_ = ggit_repository_create_symbolic_reference (G_TYPE_CHECK_INSTANCE_CAST (self, ggit_repository_get_type (), GgitRepository), _tmp1_, _tmp2_, _tmp3_, &_inner_error_);
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp0_ = _tmp4_;
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		g_propagate_error (error, _inner_error_);
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		return NULL;
#line 938 "gitg-repository.c"
	}
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp5_ = _tmp0_;
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp0_ = NULL;
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp6_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp5_, GITG_TYPE_REF) ? ((GitgRef*) _tmp5_) : NULL;
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (_tmp6_ == NULL) {
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_object_unref0 (_tmp5_);
#line 950 "gitg-repository.c"
	}
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	result = _tmp6_;
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_object_unref0 (_tmp0_);
#line 163 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	return result;
#line 958 "gitg-repository.c"
}


GitgRef* gitg_repository_get_head (GitgRepository* self, GError** error) {
	GitgRef* result = NULL;
	GgitRef* _tmp0_;
	GgitRef* _tmp1_;
	GgitRef* _tmp2_;
	GitgRef* _tmp3_;
	GError * _inner_error_ = NULL;
#line 166 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 168 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp1_ = ggit_repository_get_head (G_TYPE_CHECK_INSTANCE_CAST (self, ggit_repository_get_type (), GgitRepository), &_inner_error_);
#line 168 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp0_ = _tmp1_;
#line 168 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 168 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		g_propagate_error (error, _inner_error_);
#line 168 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		return NULL;
#line 981 "gitg-repository.c"
	}
#line 168 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp2_ = _tmp0_;
#line 168 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp0_ = NULL;
#line 168 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp3_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp2_, GITG_TYPE_REF) ? ((GitgRef*) _tmp2_) : NULL;
#line 168 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (_tmp3_ == NULL) {
#line 168 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_object_unref0 (_tmp2_);
#line 993 "gitg-repository.c"
	}
#line 168 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	result = _tmp3_;
#line 168 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_object_unref0 (_tmp0_);
#line 168 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	return result;
#line 1001 "gitg-repository.c"
}


GitgRepository* gitg_repository_init_repository (GFile* location, gboolean is_bare, GError** error) {
	GitgRepository* result = NULL;
	GgitRepository* _tmp0_;
	GFile* _tmp1_;
	gboolean _tmp2_;
	GgitRepository* _tmp3_;
	GgitRepository* _tmp4_;
	GitgRepository* _tmp5_;
	GError * _inner_error_ = NULL;
#line 171 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (location != NULL, NULL);
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp1_ = location;
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp2_ = is_bare;
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp3_ = ggit_repository_init_repository (_tmp1_, _tmp2_, &_inner_error_);
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp0_ = _tmp3_;
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		g_propagate_error (error, _inner_error_);
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		return NULL;
#line 1030 "gitg-repository.c"
	}
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp4_ = _tmp0_;
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp0_ = NULL;
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp5_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp4_, GITG_TYPE_REPOSITORY) ? ((GitgRepository*) _tmp4_) : NULL;
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (_tmp5_ == NULL) {
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_object_unref0 (_tmp4_);
#line 1042 "gitg-repository.c"
	}
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	result = _tmp5_;
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_object_unref0 (_tmp0_);
#line 173 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	return result;
#line 1050 "gitg-repository.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 1062 "gitg-repository.c"
}


GgitSignature* gitg_repository_get_signature_with_environment (GitgRepository* self, GeeMap* env, const gchar* envname, GError** error) {
	GgitSignature* result = NULL;
	gchar* user;
	gchar* email;
	GDateTime* date;
	gchar* nameenv;
	const gchar* _tmp0_;
	const gchar* _tmp1_;
	gchar* _tmp2_;
	gchar* emailenv;
	const gchar* _tmp3_;
	const gchar* _tmp4_;
	gchar* _tmp5_;
	gchar* dateenv;
	const gchar* _tmp6_;
	const gchar* _tmp7_;
	gchar* _tmp8_;
	GeeMap* _tmp9_;
	const gchar* _tmp10_;
	gboolean _tmp11_;
	GeeMap* _tmp15_;
	const gchar* _tmp16_;
	gboolean _tmp17_;
	GeeMap* _tmp21_;
	const gchar* _tmp22_;
	gboolean _tmp23_;
	GDateTime* _tmp32_;
	GgitConfig* _tmp34_;
	GgitConfig* _tmp35_;
	GgitConfig* conf;
	GgitConfig* _tmp36_;
	GgitConfig* _tmp37_;
	GgitConfig* _tmp38_;
	GgitConfig* _tmp39_;
	const gchar* _tmp40_;
	const gchar* _tmp45_;
	const gchar* _tmp50_ = NULL;
	const gchar* _tmp51_;
	const gchar* _tmp53_ = NULL;
	const gchar* _tmp54_;
	GgitSignature* _tmp56_;
	GDateTime* _tmp57_;
	GgitSignature* _tmp58_;
	GgitSignature* _tmp59_;
	GError * _inner_error_ = NULL;
#line 189 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 189 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (env != NULL, NULL);
#line 189 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (envname != NULL, NULL);
#line 191 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	user = NULL;
#line 192 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	email = NULL;
#line 193 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	date = NULL;
#line 195 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp0_ = envname;
#line 195 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp1_ = string_to_string (_tmp0_);
#line 195 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp2_ = g_strconcat ("GIT_", _tmp1_, "_NAME", NULL);
#line 195 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	nameenv = _tmp2_;
#line 196 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp3_ = envname;
#line 196 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp4_ = string_to_string (_tmp3_);
#line 196 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp5_ = g_strconcat ("GIT_", _tmp4_, "_EMAIL", NULL);
#line 196 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	emailenv = _tmp5_;
#line 197 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp6_ = envname;
#line 197 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp7_ = string_to_string (_tmp6_);
#line 197 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp8_ = g_strconcat ("GIT_", _tmp7_, "_DATE", NULL);
#line 197 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	dateenv = _tmp8_;
#line 199 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp9_ = env;
#line 199 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp10_ = nameenv;
#line 199 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp11_ = gee_map_has_key (_tmp9_, _tmp10_);
#line 199 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (_tmp11_) {
#line 1155 "gitg-repository.c"
		GeeMap* _tmp12_;
		const gchar* _tmp13_;
		gpointer _tmp14_;
#line 201 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp12_ = env;
#line 201 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp13_ = nameenv;
#line 201 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp14_ = gee_map_get (_tmp12_, _tmp13_);
#line 201 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_free0 (user);
#line 201 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		user = (gchar*) _tmp14_;
#line 1169 "gitg-repository.c"
	}
#line 204 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp15_ = env;
#line 204 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp16_ = emailenv;
#line 204 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp17_ = gee_map_has_key (_tmp15_, _tmp16_);
#line 204 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (_tmp17_) {
#line 1179 "gitg-repository.c"
		GeeMap* _tmp18_;
		const gchar* _tmp19_;
		gpointer _tmp20_;
#line 206 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp18_ = env;
#line 206 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp19_ = emailenv;
#line 206 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp20_ = gee_map_get (_tmp18_, _tmp19_);
#line 206 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_free0 (email);
#line 206 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		email = (gchar*) _tmp20_;
#line 1193 "gitg-repository.c"
	}
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp21_ = env;
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp22_ = dateenv;
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp23_ = gee_map_has_key (_tmp21_, _tmp22_);
#line 209 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (_tmp23_) {
#line 1203 "gitg-repository.c"
		{
			GDateTime* _tmp24_;
			GeeMap* _tmp25_;
			const gchar* _tmp26_;
			gpointer _tmp27_;
			gchar* _tmp28_;
			GDateTime* _tmp29_;
			GDateTime* _tmp30_;
			GDateTime* _tmp31_;
#line 213 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_tmp25_ = env;
#line 213 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_tmp26_ = dateenv;
#line 213 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_tmp27_ = gee_map_get (_tmp25_, _tmp26_);
#line 213 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_tmp28_ = (gchar*) _tmp27_;
#line 213 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_tmp29_ = gitg_date_parse (_tmp28_, &_inner_error_);
#line 213 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_tmp30_ = _tmp29_;
#line 213 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_free0 (_tmp28_);
#line 213 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_tmp24_ = _tmp30_;
#line 213 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1231 "gitg-repository.c"
				goto __catch76_g_error;
			}
#line 213 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_tmp31_ = _tmp24_;
#line 213 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_tmp24_ = NULL;
#line 213 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_date_time_unref0 (date);
#line 213 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			date = _tmp31_;
#line 211 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_date_time_unref0 (_tmp24_);
#line 1244 "gitg-repository.c"
		}
		goto __finally76;
		__catch76_g_error:
		{
#line 211 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			g_clear_error (&_inner_error_);
#line 211 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_inner_error_ = NULL;
#line 1253 "gitg-repository.c"
		}
		__finally76:
#line 211 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 211 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			g_propagate_error (error, _inner_error_);
#line 211 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_free0 (dateenv);
#line 211 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_free0 (emailenv);
#line 211 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_free0 (nameenv);
#line 211 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_date_time_unref0 (date);
#line 211 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_free0 (email);
#line 211 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_free0 (user);
#line 211 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			return NULL;
#line 1274 "gitg-repository.c"
		}
	}
#line 218 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp32_ = date;
#line 218 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (_tmp32_ == NULL) {
#line 1281 "gitg-repository.c"
		GDateTime* _tmp33_;
#line 220 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp33_ = g_date_time_new_now_local ();
#line 220 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_date_time_unref0 (date);
#line 220 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		date = _tmp33_;
#line 1289 "gitg-repository.c"
	}
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp35_ = ggit_repository_get_config ((GgitRepository*) self, &_inner_error_);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp34_ = _tmp35_;
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		g_propagate_error (error, _inner_error_);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_free0 (dateenv);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_free0 (emailenv);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_free0 (nameenv);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_date_time_unref0 (date);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_free0 (email);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_free0 (user);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		return NULL;
#line 1313 "gitg-repository.c"
	}
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp36_ = _tmp34_;
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp34_ = NULL;
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp37_ = _tmp36_;
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp38_ = ggit_config_snapshot (_tmp37_, &_inner_error_);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp39_ = _tmp38_;
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_object_unref0 (_tmp37_);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	conf = _tmp39_;
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		g_propagate_error (error, _inner_error_);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_object_unref0 (_tmp34_);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_free0 (dateenv);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_free0 (emailenv);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_free0 (nameenv);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_date_time_unref0 (date);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_free0 (email);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_free0 (user);
#line 223 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		return NULL;
#line 1349 "gitg-repository.c"
	}
#line 225 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp40_ = user;
#line 225 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (_tmp40_ == NULL) {
#line 1355 "gitg-repository.c"
		{
			const gchar* _tmp41_;
			GgitConfig* _tmp42_;
			const gchar* _tmp43_;
			gchar* _tmp44_;
#line 229 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_tmp42_ = conf;
#line 229 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_tmp43_ = ggit_config_get_string (_tmp42_, "user.name", &_inner_error_);
#line 229 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_tmp41_ = _tmp43_;
#line 229 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1369 "gitg-repository.c"
				goto __catch77_g_error;
			}
#line 229 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_tmp44_ = g_strdup (_tmp41_);
#line 229 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_free0 (user);
#line 229 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			user = _tmp44_;
#line 1378 "gitg-repository.c"
		}
		goto __finally77;
		__catch77_g_error:
		{
#line 227 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			g_clear_error (&_inner_error_);
#line 227 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_inner_error_ = NULL;
#line 1387 "gitg-repository.c"
		}
		__finally77:
#line 227 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 227 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			g_propagate_error (error, _inner_error_);
#line 227 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_object_unref0 (conf);
#line 227 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_object_unref0 (_tmp34_);
#line 227 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_free0 (dateenv);
#line 227 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_free0 (emailenv);
#line 227 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_free0 (nameenv);
#line 227 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_date_time_unref0 (date);
#line 227 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_free0 (email);
#line 227 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_free0 (user);
#line 227 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			return NULL;
#line 1412 "gitg-repository.c"
		}
	}
#line 233 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp45_ = email;
#line 233 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (_tmp45_ == NULL) {
#line 1419 "gitg-repository.c"
		{
			const gchar* _tmp46_;
			GgitConfig* _tmp47_;
			const gchar* _tmp48_;
			gchar* _tmp49_;
#line 237 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_tmp47_ = conf;
#line 237 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_tmp48_ = ggit_config_get_string (_tmp47_, "user.email", &_inner_error_);
#line 237 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_tmp46_ = _tmp48_;
#line 237 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1433 "gitg-repository.c"
				goto __catch78_g_error;
			}
#line 237 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_tmp49_ = g_strdup (_tmp46_);
#line 237 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_free0 (email);
#line 237 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			email = _tmp49_;
#line 1442 "gitg-repository.c"
		}
		goto __finally78;
		__catch78_g_error:
		{
#line 235 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			g_clear_error (&_inner_error_);
#line 235 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_inner_error_ = NULL;
#line 1451 "gitg-repository.c"
		}
		__finally78:
#line 235 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 235 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			g_propagate_error (error, _inner_error_);
#line 235 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_object_unref0 (conf);
#line 235 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_object_unref0 (_tmp34_);
#line 235 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_free0 (dateenv);
#line 235 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_free0 (emailenv);
#line 235 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_free0 (nameenv);
#line 235 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_date_time_unref0 (date);
#line 235 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_free0 (email);
#line 235 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			_g_free0 (user);
#line 235 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
			return NULL;
#line 1476 "gitg-repository.c"
		}
	}
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp51_ = user;
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (_tmp51_ != NULL) {
#line 1483 "gitg-repository.c"
		const gchar* _tmp52_;
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp52_ = user;
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp50_ = _tmp52_;
#line 1489 "gitg-repository.c"
	} else {
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp50_ = "";
#line 1493 "gitg-repository.c"
	}
#line 242 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp54_ = email;
#line 242 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (_tmp54_ != NULL) {
#line 1499 "gitg-repository.c"
		const gchar* _tmp55_;
#line 242 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp55_ = email;
#line 242 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp53_ = _tmp55_;
#line 1505 "gitg-repository.c"
	} else {
#line 242 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp53_ = "";
#line 1509 "gitg-repository.c"
	}
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp57_ = date;
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp58_ = ggit_signature_new (_tmp50_, _tmp53_, _tmp57_, &_inner_error_);
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp56_ = _tmp58_;
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		g_propagate_error (error, _inner_error_);
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_object_unref0 (conf);
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_object_unref0 (_tmp34_);
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_free0 (dateenv);
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_free0 (emailenv);
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_free0 (nameenv);
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_date_time_unref0 (date);
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_free0 (email);
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_free0 (user);
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		return NULL;
#line 1539 "gitg-repository.c"
	}
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp59_ = _tmp56_;
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp56_ = NULL;
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	result = _tmp59_;
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_object_unref0 (_tmp56_);
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_object_unref0 (conf);
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_object_unref0 (_tmp34_);
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_free0 (dateenv);
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_free0 (emailenv);
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_free0 (nameenv);
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_date_time_unref0 (date);
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_free0 (email);
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_free0 (user);
#line 241 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	return result;
#line 1567 "gitg-repository.c"
}


gchar* gitg_repository_get_name (GitgRepository* self) {
	gchar* result;
	GFile* _tmp0_ = NULL;
	GFile* _tmp1_;
	GFile* _tmp2_;
	GFile* _tmp3_;
	gboolean _tmp4_;
	GFile* f;
	GFile* _tmp9_;
	gchar* _tmp10_ = NULL;
	GFile* _tmp11_;
#line 30 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 32 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_object_get ((GgitRepository*) self, "workdir", &_tmp1_, NULL);
#line 32 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp2_ = _tmp1_;
#line 32 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp3_ = _tmp2_;
#line 32 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp4_ = _tmp3_ != NULL;
#line 32 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_object_unref0 (_tmp3_);
#line 32 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (_tmp4_) {
#line 1596 "gitg-repository.c"
		GFile* _tmp5_;
		GFile* _tmp6_;
#line 32 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		g_object_get ((GgitRepository*) self, "workdir", &_tmp5_, NULL);
#line 32 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp6_ = _tmp5_;
#line 32 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_object_unref0 (_tmp0_);
#line 32 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp0_ = _tmp6_;
#line 1607 "gitg-repository.c"
	} else {
		GFile* _tmp7_;
		GFile* _tmp8_;
#line 32 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp7_ = ggit_repository_get_location ((GgitRepository*) self);
#line 32 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp8_ = _tmp7_;
#line 32 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_object_unref0 (_tmp0_);
#line 32 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp0_ = _tmp8_;
#line 1619 "gitg-repository.c"
	}
#line 32 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp9_ = _g_object_ref0 (_tmp0_);
#line 32 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	f = _tmp9_;
#line 33 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp11_ = f;
#line 33 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (_tmp11_ != NULL) {
#line 1629 "gitg-repository.c"
		GFile* _tmp12_;
		gchar* _tmp13_;
#line 33 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp12_ = f;
#line 33 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp13_ = g_file_get_basename (_tmp12_);
#line 33 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_free0 (_tmp10_);
#line 33 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp10_ = _tmp13_;
#line 1640 "gitg-repository.c"
	} else {
#line 33 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_free0 (_tmp10_);
#line 33 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp10_ = NULL;
#line 1646 "gitg-repository.c"
	}
#line 33 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	result = _tmp10_;
#line 33 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_object_unref0 (f);
#line 33 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_object_unref0 (_tmp0_);
#line 33 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	return result;
#line 1656 "gitg-repository.c"
}


GitgStage* gitg_repository_get_stage (GitgRepository* self) {
	GitgStage* result;
	GitgStage* _tmp0_;
	GitgStage* _tmp2_;
	GitgStage* _tmp3_;
#line 178 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 180 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp0_ = self->priv->d_stage;
#line 180 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	if (_tmp0_ == NULL) {
#line 1671 "gitg-repository.c"
		GitgStage* _tmp1_;
#line 182 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_tmp1_ = gitg_stage_new (self);
#line 182 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		_g_object_unref0 (self->priv->d_stage);
#line 182 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		self->priv->d_stage = _tmp1_;
#line 1679 "gitg-repository.c"
	}
#line 185 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp2_ = self->priv->d_stage;
#line 185 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_tmp3_ = _g_object_ref0 (_tmp2_);
#line 185 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	result = _tmp3_;
#line 185 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	return result;
#line 1689 "gitg-repository.c"
}


static void gitg_repository_class_init (GitgRepositoryClass * klass) {
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	gitg_repository_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_type_class_add_private (klass, sizeof (GitgRepositoryPrivate));
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_repository_get_property;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_repository_finalize;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REPOSITORY_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 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REPOSITORY_STAGE, g_param_spec_object ("stage", "stage", "stage", GITG_TYPE_STAGE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 1706 "gitg-repository.c"
}


static void gitg_repository_instance_init (GitgRepository * self) {
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	self->priv = GITG_REPOSITORY_GET_PRIVATE (self);
#line 1713 "gitg-repository.c"
}


static void gitg_repository_finalize (GObject * obj) {
	GitgRepository * self;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_REPOSITORY, GitgRepository);
#line 25 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_hash_table_unref0 (self->priv->d_refs);
#line 26 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	_g_object_unref0 (self->priv->d_stage);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	G_OBJECT_CLASS (gitg_repository_parent_class)->finalize (obj);
#line 1727 "gitg-repository.c"
}


GType gitg_repository_get_type (void) {
	static volatile gsize gitg_repository_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_repository_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgRepositoryClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_repository_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgRepository), 0, (GInstanceInitFunc) gitg_repository_instance_init, NULL };
		GType gitg_repository_type_id;
		gitg_repository_type_id = g_type_register_static (ggit_repository_get_type (), "GitgRepository", &g_define_type_info, 0);
		g_once_init_leave (&gitg_repository_type_id__volatile, gitg_repository_type_id);
	}
	return gitg_repository_type_id__volatile;
}


static void _vala_gitg_repository_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgRepository * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_REPOSITORY, GitgRepository);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
	switch (property_id) {
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		case GITG_REPOSITORY_NAME:
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		g_value_take_string (value, gitg_repository_get_name (self));
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		break;
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		case GITG_REPOSITORY_STAGE:
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		g_value_take_object (value, gitg_repository_get_stage (self));
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		break;
#line 1760 "gitg-repository.c"
		default:
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 23 "/home/mcatanzaro/Projects/GNOME/gitg/libgitg/gitg-repository.vala"
		break;
#line 1766 "gitg-repository.c"
	}
}



