/* gitg-ref-action-merge.c generated by valac 0.34.7, the Vala compiler
 * generated from gitg-ref-action-merge.vala, do not modify */

/*
 * This file is part of gitg
 *
 * Copyright (C) 2015 - 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 "libgitg-ext/libgitg-ext.h"
#include "libgitg/libgitg.h"
#include <stdlib.h>
#include <string.h>
#include <config.h>
#include <gio/gio.h>
#include <libgit2-glib/ggit.h>
#include <glib/gi18n-lib.h>
#include <glib/gstdio.h>
#include <gee.h>
#include <gtk/gtk.h>


#define GITG_TYPE_REF_ACTION_MERGE (gitg_ref_action_merge_get_type ())
#define GITG_REF_ACTION_MERGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_REF_ACTION_MERGE, GitgRefActionMerge))
#define GITG_REF_ACTION_MERGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_REF_ACTION_MERGE, GitgRefActionMergeClass))
#define GITG_IS_REF_ACTION_MERGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_REF_ACTION_MERGE))
#define GITG_IS_REF_ACTION_MERGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_REF_ACTION_MERGE))
#define GITG_REF_ACTION_MERGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_REF_ACTION_MERGE, GitgRefActionMergeClass))

typedef struct _GitgRefActionMerge GitgRefActionMerge;
typedef struct _GitgRefActionMergeClass GitgRefActionMergeClass;
typedef struct _GitgRefActionMergePrivate GitgRefActionMergePrivate;

#define GITG_REF_ACTION_MERGE_TYPE_REMOTE_SOURCE (gitg_ref_action_merge_remote_source_get_type ())
typedef struct _GitgRefActionMergeRemoteSource GitgRefActionMergeRemoteSource;

#define GITG_TYPE_ACTION_SUPPORT (gitg_action_support_get_type ())
#define GITG_ACTION_SUPPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_ACTION_SUPPORT, GitgActionSupport))
#define GITG_ACTION_SUPPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_ACTION_SUPPORT, GitgActionSupportClass))
#define GITG_IS_ACTION_SUPPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_ACTION_SUPPORT))
#define GITG_IS_ACTION_SUPPORT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_ACTION_SUPPORT))
#define GITG_ACTION_SUPPORT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_ACTION_SUPPORT, GitgActionSupportClass))

typedef struct _GitgActionSupport GitgActionSupport;
typedef struct _GitgActionSupportClass GitgActionSupportClass;
#define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

#define GITG_TYPE_SIMPLE_NOTIFICATION (gitg_simple_notification_get_type ())
#define GITG_SIMPLE_NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_SIMPLE_NOTIFICATION, GitgSimpleNotification))
#define GITG_SIMPLE_NOTIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_SIMPLE_NOTIFICATION, GitgSimpleNotificationClass))
#define GITG_IS_SIMPLE_NOTIFICATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_SIMPLE_NOTIFICATION))
#define GITG_IS_SIMPLE_NOTIFICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_SIMPLE_NOTIFICATION))
#define GITG_SIMPLE_NOTIFICATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_SIMPLE_NOTIFICATION, GitgSimpleNotificationClass))

typedef struct _GitgSimpleNotification GitgSimpleNotification;
typedef struct _GitgSimpleNotificationClass GitgSimpleNotificationClass;
typedef struct _Block23Data Block23Data;
#define _g_free0(var) (var = (g_free (var), NULL))
#define _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define __vala_GgitMergeOptions_free0(var) ((var == NULL) ? NULL : (var = (_vala_GgitMergeOptions_free (var), NULL)))
typedef struct _GitgRefActionMergeCreateMergeIndexData GitgRefActionMergeCreateMergeIndexData;
#define __vala_GgitOId_free0(var) ((var == NULL) ? NULL : (var = (_vala_GgitOId_free (var), NULL)))
#define _ggit_index_entry_unref0(var) ((var == NULL) ? NULL : (var = (ggit_index_entry_unref (var), NULL)))
#define _ggit_index_entries_unref0(var) ((var == NULL) ? NULL : (var = (ggit_index_entries_unref (var), NULL)))
typedef struct _GitgRefActionMergeCheckoutConflictsData GitgRefActionMergeCheckoutConflictsData;
typedef struct _GitgRefActionMergeMergeData GitgRefActionMergeMergeData;
typedef struct _Block24Data Block24Data;

struct _GitgRefActionMerge {
	GObject parent_instance;
	GitgRefActionMergePrivate * priv;
};

struct _GitgRefActionMergeClass {
	GObjectClass parent_class;
};

struct _GitgRefActionMergeRemoteSource {
	gchar* name;
	GitgRef** sources;
	gint sources_length1;
	gint _sources_size_;
};

struct _GitgRefActionMergePrivate {
	GitgExtApplication* _application;
	GitgExtRefActionInterface* _action_interface;
	GitgRef* _reference;
	gboolean d_has_sourced;
	GitgRef* d_upstream;
	GitgRef** d_local_sources;
	gint d_local_sources_length1;
	gint _d_local_sources_size_;
	GitgRefActionMergeRemoteSource* d_remote_sources;
	gint d_remote_sources_length1;
	gint _d_remote_sources_size_;
	GitgRef** d_tag_sources;
	gint d_tag_sources_length1;
	gint _d_tag_sources_size_;
	GitgActionSupport* d_support;
};

struct _Block23Data {
	int _ref_count_;
	GitgRefActionMerge* self;
	GgitIndex* index;
	GitgSimpleNotification* notification;
	GgitCommit* ours;
	GgitCommit* theirs;
	gpointer _async_data_;
};

struct _GitgRefActionMergeCreateMergeIndexData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GitgRefActionMerge* self;
	GitgSimpleNotification* notification;
	GgitCommit* ours;
	GgitCommit* theirs;
	GgitIndex* result;
	Block23Data* _data23_;
	GitgSimpleNotification* _tmp0_;
	GgitCommit* _tmp1_;
	GgitCommit* _tmp2_;
	GgitIndex* _tmp3_;
};

struct _GitgRefActionMergeCheckoutConflictsData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GitgRefActionMerge* self;
	GitgSimpleNotification* notification;
	GgitIndex* index;
	GitgRef* source;
	gboolean result;
	gchar* ours_name;
	GitgRef* _tmp0_;
	GitgRef* _tmp1_;
	GitgParsedRefName* _tmp2_;
	GitgParsedRefName* _tmp3_;
	GitgParsedRefName* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	gchar* theirs_name;
	GitgRef* _tmp8_;
	GitgParsedRefName* _tmp9_;
	GitgParsedRefName* _tmp10_;
	GitgParsedRefName* _tmp11_;
	gchar* _tmp12_;
	gchar* _tmp13_;
	gchar* _tmp14_;
	GitgSimpleNotification* _tmp15_;
	const gchar* _tmp16_;
	GitgRef* head;
	gboolean ishead;
	GitgActionSupport* _tmp17_;
	GitgRef* _tmp18_;
	GitgRef* _tmp19_;
	gboolean _tmp20_;
	gchar* message;
	gboolean _tmp21_;
	const gchar* _tmp22_;
	const gchar* _tmp23_;
	const gchar* _tmp24_;
	gchar* _tmp25_;
	gchar* _tmp26_;
	const gchar* _tmp27_;
	const gchar* _tmp28_;
	gchar* _tmp29_;
	gchar* _tmp30_;
	const gchar* _tmp31_;
	const gchar* _tmp32_;
	gchar* _tmp33_;
	gchar* _tmp34_;
	gchar* _tmp35_;
	const gchar* _tmp36_;
	const gchar* _tmp37_;
	const gchar* _tmp38_;
	gchar* _tmp39_;
	gchar* _tmp40_;
	const gchar* _tmp41_;
	const gchar* _tmp42_;
	gchar* _tmp43_;
	gchar* _tmp44_;
	gchar* _tmp45_;
	GitgExtUserQuery* q;
	const gchar* _tmp46_;
	const gchar* _tmp47_;
	const gchar* _tmp48_;
	const gchar* _tmp49_;
	GitgExtUserQuery* _tmp50_;
	GitgExtApplication* _tmp51_;
	GitgExtApplication* _tmp52_;
	GitgExtApplication* _tmp53_;
	GitgExtUserQuery* _tmp54_;
	GtkResponseType _tmp55_;
	gboolean _tmp56_;
	GitgSimpleNotification* _tmp57_;
	const gchar* _tmp58_;
	GitgActionSupport* _tmp59_;
	GitgSimpleNotification* _tmp60_;
	GitgRef* _tmp61_;
	GitgRef* _tmp62_;
	GgitIndex* _tmp63_;
	GitgRef* _tmp64_;
	gboolean _tmp65_;
	GgitIndex* _tmp66_;
	GitgRef* _tmp67_;
	GitgSimpleNotification* _tmp68_;
	const gchar* _tmp69_;
};

struct _GitgRefActionMergeMergeData {
	int _state_;
	GObject* _source_object_;
	GAsyncResult* _res_;
	GSimpleAsyncResult* _async_result;
	GitgRefActionMerge* self;
	GitgRef* source;
	GgitOId* result;
	GgitCommit* ours;
	GgitCommit* theirs;
	gchar* ours_name;
	GitgRef* _tmp0_;
	GitgRef* _tmp1_;
	GitgParsedRefName* _tmp2_;
	GitgParsedRefName* _tmp3_;
	GitgParsedRefName* _tmp4_;
	gchar* _tmp5_;
	gchar* _tmp6_;
	gchar* _tmp7_;
	gchar* theirs_name;
	GitgRef* _tmp8_;
	GitgParsedRefName* _tmp9_;
	GitgParsedRefName* _tmp10_;
	GitgParsedRefName* _tmp11_;
	gchar* _tmp12_;
	gchar* _tmp13_;
	gchar* _tmp14_;
	GitgSimpleNotification* notification;
	const gchar* _tmp15_;
	const gchar* _tmp16_;
	const gchar* _tmp17_;
	gchar* _tmp18_;
	gchar* _tmp19_;
	const gchar* _tmp20_;
	const gchar* _tmp21_;
	gchar* _tmp22_;
	gchar* _tmp23_;
	gchar* _tmp24_;
	gchar* _tmp25_;
	GitgSimpleNotification* _tmp26_;
	GitgSimpleNotification* _tmp27_;
	GitgExtApplication* _tmp28_;
	GitgExtApplication* _tmp29_;
	GitgExtApplication* _tmp30_;
	GitgExtNotifications* _tmp31_;
	GitgExtNotifications* _tmp32_;
	GitgExtNotifications* _tmp33_;
	GitgSimpleNotification* _tmp34_;
	GgitRef* _tmp35_;
	GitgRef* _tmp36_;
	GitgRef* _tmp37_;
	GgitRef* _tmp38_;
	GgitObject* _tmp39_;
	GgitRef* _tmp40_;
	GgitRef* _tmp41_;
	GgitObject* _tmp42_;
	GgitObject* _tmp43_;
	GgitObject* _tmp44_;
	GgitCommit* _tmp45_;
	GError* e;
	GitgSimpleNotification* _tmp46_;
	const gchar* _tmp47_;
	GError* _tmp48_;
	const gchar* _tmp49_;
	gchar* _tmp50_;
	gchar* _tmp51_;
	GgitRef* _tmp52_;
	GitgRef* _tmp53_;
	GgitRef* _tmp54_;
	GgitObject* _tmp55_;
	GgitRef* _tmp56_;
	GgitRef* _tmp57_;
	GgitObject* _tmp58_;
	GgitObject* _tmp59_;
	GgitObject* _tmp60_;
	GgitCommit* _tmp61_;
	GError* _vala1_e;
	GitgSimpleNotification* _tmp62_;
	const gchar* _tmp63_;
	GError* _tmp64_;
	const gchar* _tmp65_;
	gchar* _tmp66_;
	gchar* _tmp67_;
	GgitIndex* index;
	GitgSimpleNotification* _tmp68_;
	GgitCommit* _tmp69_;
	GgitCommit* _tmp70_;
	GgitIndex* _tmp71_;
	GgitIndex* _tmp72_;
	GgitIndex* _tmp73_;
	gboolean _tmp74_;
	GitgSimpleNotification* _tmp75_;
	GgitIndex* _tmp76_;
	GitgRef* _tmp77_;
	gchar* msg;
	GitgRef* _tmp78_;
	GitgParsedRefName* _tmp79_;
	GitgParsedRefName* _tmp80_;
	GitgParsedRefName* _tmp81_;
	GitgRefType _tmp82_;
	GitgRefType _tmp83_;
	gboolean _tmp84_;
	const gchar* _tmp85_;
	const gchar* _tmp86_;
	gchar* _tmp87_;
	const gchar* _tmp88_;
	const gchar* _tmp89_;
	gchar* _tmp90_;
	GgitOId* oid;
	GitgActionSupport* _tmp91_;
	GitgSimpleNotification* _tmp92_;
	GitgRef* _tmp93_;
	GitgRef* _tmp94_;
	GgitIndex* _tmp95_;
	GgitCommit* _tmp96_;
	GgitOId* _tmp97_;
	GgitCommit* _tmp98_;
	GgitOId* _tmp99_;
	GgitOId** _tmp100_;
	const gchar* _tmp101_;
	GgitOId* _tmp102_;
	GgitOId* _tmp103_;
	GitgSimpleNotification* _tmp104_;
	const gchar* _tmp105_;
	const gchar* _tmp106_;
	const gchar* _tmp107_;
	gchar* _tmp108_;
	gchar* _tmp109_;
	const gchar* _tmp110_;
	const gchar* _tmp111_;
	gchar* _tmp112_;
	gchar* _tmp113_;
	gchar* _tmp114_;
	gchar* _tmp115_;
	GError * _inner_error_;
};

struct _Block24Data {
	int _ref_count_;
	GitgRefActionMerge* self;
	GitgRef* source;
};


static gpointer gitg_ref_action_merge_parent_class = NULL;
static GitgExtUIElementIface* gitg_ref_action_merge_gitg_ext_ui_element_parent_iface = NULL;
static GitgExtActionIface* gitg_ref_action_merge_gitg_ext_action_parent_iface = NULL;
static GitgExtRefActionIface* gitg_ref_action_merge_gitg_ext_ref_action_parent_iface = NULL;

GType gitg_ref_action_merge_get_type (void) G_GNUC_CONST;
static GType gitg_ref_action_merge_remote_source_get_type (void) G_GNUC_CONST G_GNUC_UNUSED;
static GitgRefActionMergeRemoteSource* gitg_ref_action_merge_remote_source_dup (const GitgRefActionMergeRemoteSource* self);
static void gitg_ref_action_merge_remote_source_free (GitgRefActionMergeRemoteSource* self);
static void gitg_ref_action_merge_remote_source_copy (const GitgRefActionMergeRemoteSource* self, GitgRefActionMergeRemoteSource* dest);
static void gitg_ref_action_merge_remote_source_destroy (GitgRefActionMergeRemoteSource* self);
GType gitg_action_support_get_type (void) G_GNUC_CONST;
#define GITG_REF_ACTION_MERGE_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GITG_TYPE_REF_ACTION_MERGE, GitgRefActionMergePrivate))
enum  {
	GITG_REF_ACTION_MERGE_DUMMY_PROPERTY,
	GITG_REF_ACTION_MERGE_APPLICATION,
	GITG_REF_ACTION_MERGE_ACTION_INTERFACE,
	GITG_REF_ACTION_MERGE_REFERENCE,
	GITG_REF_ACTION_MERGE_ID,
	GITG_REF_ACTION_MERGE_DISPLAY_NAME,
	GITG_REF_ACTION_MERGE_DESCRIPTION,
	GITG_REF_ACTION_MERGE_AVAILABLE,
	GITG_REF_ACTION_MERGE_ENABLED
};
static void _vala_GitgRefActionMergeRemoteSource_array_free (GitgRefActionMergeRemoteSource* array, gint array_length);
#define GITG_REF_ACTION_MERGE_version VERSION
GitgRefActionMerge* gitg_ref_action_merge_new (GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference);
GitgRefActionMerge* gitg_ref_action_merge_construct (GType object_type, GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference);
GitgActionSupport* gitg_action_support_new (GitgExtApplication* application, GitgExtRefActionInterface* action_interface);
GitgActionSupport* gitg_action_support_construct (GType object_type, GitgExtApplication* application, GitgExtRefActionInterface* action_interface);
static void gitg_ref_action_merge_create_merge_index_data_free (gpointer _data);
GType gitg_simple_notification_get_type (void) G_GNUC_CONST;
static void gitg_ref_action_merge_create_merge_index (GitgRefActionMerge* self, GitgSimpleNotification* notification, GgitCommit* ours, GgitCommit* theirs, GAsyncReadyCallback _callback_, gpointer _user_data_);
static GgitIndex* gitg_ref_action_merge_create_merge_index_finish (GitgRefActionMerge* self, GAsyncResult* _res_);
static gboolean gitg_ref_action_merge_create_merge_index_co (GitgRefActionMergeCreateMergeIndexData* _data_);
static Block23Data* block23_data_ref (Block23Data* _data23_);
static void block23_data_unref (void * _userdata_);
static void __lambda14_ (Block23Data* _data23_, GError** error);
void gitg_simple_notification_error (GitgSimpleNotification* self, const gchar* message);
static void _vala_GgitMergeOptions_free (GgitMergeOptions* self);
static void ___lambda14__gitg_async_thread_func (gpointer self, GError** error);
static void gitg_ref_action_merge_create_merge_index_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
static void gitg_ref_action_merge_write_merge_state_files (GitgRefActionMerge* self, GgitIndex* index, GitgRef* source);
static void _vala_GgitOId_free (GgitOId* self);
static void gitg_ref_action_merge_checkout_conflicts_data_free (gpointer _data);
static void gitg_ref_action_merge_checkout_conflicts (GitgRefActionMerge* self, GitgSimpleNotification* notification, GgitIndex* index, GitgRef* source, GAsyncReadyCallback _callback_, gpointer _user_data_);
static gboolean gitg_ref_action_merge_checkout_conflicts_finish (GitgRefActionMerge* self, GAsyncResult* _res_);
static gboolean gitg_ref_action_merge_checkout_conflicts_co (GitgRefActionMergeCheckoutConflictsData* _data_);
void gitg_simple_notification_set_message (GitgSimpleNotification* self, const gchar* value);
gboolean gitg_action_support_reference_is_head (GitgActionSupport* self, GitgRef* reference, GitgRef** head);
static void gitg_ref_action_merge_checkout_conflicts_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
void gitg_action_support_checkout_conflicts (GitgActionSupport* self, GitgSimpleNotification* notification, GitgRef* reference, GgitIndex* index, GitgRef* head, GAsyncReadyCallback _callback_, gpointer _user_data_);
gboolean gitg_action_support_checkout_conflicts_finish (GitgActionSupport* self, GAsyncResult* _res_);
void gitg_simple_notification_success (GitgSimpleNotification* self, const gchar* message);
static void gitg_ref_action_merge_merge_data_free (gpointer _data);
void gitg_ref_action_merge_merge (GitgRefActionMerge* self, GitgRef* source, GAsyncReadyCallback _callback_, gpointer _user_data_);
GgitOId* gitg_ref_action_merge_merge_finish (GitgRefActionMerge* self, GAsyncResult* _res_);
static gboolean gitg_ref_action_merge_merge_co (GitgRefActionMergeMergeData* _data_);
GitgSimpleNotification* gitg_simple_notification_new (const gchar* title, const gchar* message);
GitgSimpleNotification* gitg_simple_notification_construct (GType object_type, const gchar* title, const gchar* message);
static void gitg_ref_action_merge_merge_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_);
void gitg_action_support_commit_index (GitgActionSupport* self, GitgSimpleNotification* notification, GitgRef* reference, GgitIndex* index, GgitOId** parents, int parents_length1, GgitSignature* author, const gchar* message, GAsyncReadyCallback _callback_, gpointer _user_data_);
GgitOId* gitg_action_support_commit_index_finish (GitgActionSupport* self, GAsyncResult* _res_);
void gitg_ref_action_merge_activate_source (GitgRefActionMerge* self, GitgRef* source);
static void __lambda15_ (GitgRefActionMerge* self, GObject* obj, GAsyncResult* res);
static void ___lambda15__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self);
static GitgRef* gitg_ref_action_merge_upstream_reference (GitgRefActionMerge* self);
static void gitg_ref_action_merge_add_merge_source (GitgRefActionMerge* self, GtkMenu* submenu, GitgRef* source);
static Block24Data* block24_data_ref (Block24Data* _data24_);
static void block24_data_unref (void * _userdata_);
static void __lambda16_ (Block24Data* _data24_);
static void ___lambda16__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self);
static void gitg_ref_action_merge_ensure_sources (GitgRefActionMerge* self);
static void _vala_array_add12 (GitgRef*** array, int* length, int* size, GitgRef* value);
static void _vala_array_add13 (GitgRef*** array, int* length, int* size, GitgRef* value);
static void _vala_array_add14 (GitgRefActionMergeRemoteSource** array, int* length, int* size, const GitgRefActionMergeRemoteSource* value);
static void _vala_array_add15 (GitgRef*** array, int* length, int* size, GitgRef* value);
static void gitg_ref_action_merge_real_populate_menu (GitgExtAction* base, GtkMenu* menu);
static GitgRef** _vala_array_dup1 (GitgRef** self, int length);
static void gitg_ref_action_merge_finalize (GObject* obj);
static void _vala_gitg_ref_action_merge_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec);
static void _vala_gitg_ref_action_merge_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec);
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);


static void _vala_GitgRefActionMergeRemoteSource_array_free (GitgRefActionMergeRemoteSource* array, gint array_length) {
#line 41 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (array != NULL) {
#line 467 "gitg-ref-action-merge.c"
		int i;
#line 41 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		for (i = 0; i < array_length; i = i + 1) {
#line 41 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			gitg_ref_action_merge_remote_source_destroy (&array[i]);
#line 473 "gitg-ref-action-merge.c"
		}
	}
#line 41 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_free (array);
#line 478 "gitg-ref-action-merge.c"
}


GitgRefActionMerge* gitg_ref_action_merge_construct (GType object_type, GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference) {
	GitgRefActionMerge * self = NULL;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtRefActionInterface* _tmp1_ = NULL;
	GitgRef* _tmp2_ = NULL;
	GitgExtApplication* _tmp3_ = NULL;
	GitgExtRefActionInterface* _tmp4_ = NULL;
	GitgActionSupport* _tmp5_ = NULL;
#line 45 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_return_val_if_fail (application != NULL, NULL);
#line 45 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_return_val_if_fail (action_interface != NULL, NULL);
#line 45 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_return_val_if_fail (reference != NULL, NULL);
#line 49 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = application;
#line 49 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp1_ = action_interface;
#line 49 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp2_ = reference;
#line 49 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self = (GitgRefActionMerge*) g_object_new (object_type, "application", _tmp0_, "action-interface", _tmp1_, "reference", _tmp2_, NULL);
#line 53 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp3_ = application;
#line 53 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp4_ = action_interface;
#line 53 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp5_ = gitg_action_support_new (_tmp3_, _tmp4_);
#line 53 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (self->priv->d_support);
#line 53 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self->priv->d_support = _tmp5_;
#line 45 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return self;
#line 516 "gitg-ref-action-merge.c"
}


GitgRefActionMerge* gitg_ref_action_merge_new (GitgExtApplication* application, GitgExtRefActionInterface* action_interface, GitgRef* reference) {
#line 45 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return gitg_ref_action_merge_construct (GITG_TYPE_REF_ACTION_MERGE, application, action_interface, reference);
#line 523 "gitg-ref-action-merge.c"
}


static void gitg_ref_action_merge_create_merge_index_data_free (gpointer _data) {
	GitgRefActionMergeCreateMergeIndexData* _data_;
	_data_ = _data;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->result);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->self);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_slice_free (GitgRefActionMergeCreateMergeIndexData, _data_);
#line 536 "gitg-ref-action-merge.c"
}


static gpointer _g_object_ref0 (gpointer self) {
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return self ? g_object_ref (self) : NULL;
#line 543 "gitg-ref-action-merge.c"
}


static void gitg_ref_action_merge_create_merge_index (GitgRefActionMerge* self, GitgSimpleNotification* notification, GgitCommit* ours, GgitCommit* theirs, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GitgRefActionMergeCreateMergeIndexData* _data_;
	GitgRefActionMerge* _tmp0_ = NULL;
	GitgSimpleNotification* _tmp1_ = NULL;
	GitgSimpleNotification* _tmp2_ = NULL;
	GgitCommit* _tmp3_ = NULL;
	GgitCommit* _tmp4_ = NULL;
	GgitCommit* _tmp5_ = NULL;
	GgitCommit* _tmp6_ = NULL;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_ = g_slice_new0 (GitgRefActionMergeCreateMergeIndexData);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gitg_ref_action_merge_create_merge_index);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gitg_ref_action_merge_create_merge_index_data_free);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->self = _tmp0_;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp1_ = notification;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->notification);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->notification = _tmp2_;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp3_ = ours;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->ours);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->ours = _tmp4_;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp5_ = theirs;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp6_ = _g_object_ref0 (_tmp5_);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->theirs);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->theirs = _tmp6_;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_ref_action_merge_create_merge_index_co (_data_);
#line 592 "gitg-ref-action-merge.c"
}


static GgitIndex* gitg_ref_action_merge_create_merge_index_finish (GitgRefActionMerge* self, GAsyncResult* _res_) {
	GgitIndex* result;
	GitgRefActionMergeCreateMergeIndexData* _data_;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	result = _data_->result;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->result = NULL;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return result;
#line 607 "gitg-ref-action-merge.c"
}


static Block23Data* block23_data_ref (Block23Data* _data23_) {
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_atomic_int_inc (&_data23_->_ref_count_);
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return _data23_;
#line 616 "gitg-ref-action-merge.c"
}


static void block23_data_unref (void * _userdata_) {
	Block23Data* _data23_;
	_data23_ = (Block23Data*) _userdata_;
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (g_atomic_int_dec_and_test (&_data23_->_ref_count_)) {
#line 625 "gitg-ref-action-merge.c"
		GitgRefActionMerge* self;
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		self = _data23_->self;
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data23_->index);
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data23_->notification);
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data23_->ours);
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data23_->theirs);
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (self);
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_slice_free (Block23Data, _data23_);
#line 641 "gitg-ref-action-merge.c"
	}
}


static void _vala_GgitMergeOptions_free (GgitMergeOptions* self) {
#line 107 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_boxed_free (ggit_merge_options_get_type (), self);
#line 649 "gitg-ref-action-merge.c"
}


static void __lambda14_ (Block23Data* _data23_, GError** error) {
	GitgRefActionMerge* self;
	GgitMergeOptions* options = NULL;
	GgitMergeOptions* _tmp0_ = NULL;
	GError * _inner_error_ = NULL;
#line 97 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self = _data23_->self;
#line 98 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = ggit_merge_options_new ();
#line 98 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	options = _tmp0_;
#line 664 "gitg-ref-action-merge.c"
	{
		GgitIndex* _tmp1_ = NULL;
		GitgExtApplication* _tmp2_ = NULL;
		GitgExtApplication* _tmp3_ = NULL;
		GitgExtApplication* _tmp4_ = NULL;
		GitgRepository* _tmp5_ = NULL;
		GitgRepository* _tmp6_ = NULL;
		GitgRepository* _tmp7_ = NULL;
		GgitCommit* _tmp8_ = NULL;
		GgitCommit* _tmp9_ = NULL;
		GgitMergeOptions* _tmp10_ = NULL;
		GgitIndex* _tmp11_ = NULL;
		GgitIndex* _tmp12_ = NULL;
		GgitIndex* _tmp13_ = NULL;
#line 102 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp2_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 102 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp3_ = _tmp2_;
#line 102 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp4_ = _tmp3_;
#line 102 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp5_ = gitg_ext_application_get_repository (_tmp4_);
#line 102 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp6_ = _tmp5_;
#line 102 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp7_ = _tmp6_;
#line 102 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp8_ = _data23_->ours;
#line 102 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp9_ = _data23_->theirs;
#line 102 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp10_ = options;
#line 102 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp11_ = ggit_repository_merge_commits ((GgitRepository*) _tmp7_, _tmp8_, _tmp9_, _tmp10_, &_inner_error_);
#line 102 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp12_ = _tmp11_;
#line 102 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_tmp7_);
#line 102 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_tmp4_);
#line 102 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp1_ = _tmp12_;
#line 102 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 709 "gitg-ref-action-merge.c"
			goto __catch26_g_error;
		}
#line 102 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp13_ = _tmp1_;
#line 102 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp1_ = NULL;
#line 102 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data23_->index);
#line 102 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data23_->index = _tmp13_;
#line 100 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_tmp1_);
#line 722 "gitg-ref-action-merge.c"
	}
	goto __finally26;
	__catch26_g_error:
	{
		GError* e = NULL;
		GitgSimpleNotification* _tmp14_ = NULL;
		const gchar* _tmp15_ = NULL;
		GError* _tmp16_ = NULL;
		const gchar* _tmp17_ = NULL;
		gchar* _tmp18_ = NULL;
		gchar* _tmp19_ = NULL;
#line 100 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		e = _inner_error_;
#line 100 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_inner_error_ = NULL;
#line 106 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp14_ = _data23_->notification;
#line 106 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp15_ = _ ("Failed to merge commits: %s");
#line 106 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp16_ = e;
#line 106 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp17_ = _tmp16_->message;
#line 106 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp18_ = g_strdup_printf (_tmp15_, _tmp17_);
#line 106 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp19_ = _tmp18_;
#line 106 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		gitg_simple_notification_error (_tmp14_, _tmp19_);
#line 106 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_tmp19_);
#line 107 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_error_free0 (e);
#line 107 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		__vala_GgitMergeOptions_free0 (options);
#line 107 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		return;
#line 760 "gitg-ref-action-merge.c"
	}
	__finally26:
#line 100 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 100 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_propagate_error (error, _inner_error_);
#line 100 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		__vala_GgitMergeOptions_free0 (options);
#line 100 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		return;
#line 771 "gitg-ref-action-merge.c"
	}
#line 97 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	__vala_GgitMergeOptions_free0 (options);
#line 775 "gitg-ref-action-merge.c"
}


static void ___lambda14__gitg_async_thread_func (gpointer self, GError** error) {
#line 97 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	__lambda14_ (self, error);
#line 782 "gitg-ref-action-merge.c"
}


static void gitg_ref_action_merge_create_merge_index_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	GitgRefActionMergeCreateMergeIndexData* _data_;
#line 97 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_ = _user_data_;
#line 97 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_source_object_ = source_object;
#line 97 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_res_ = _res_;
#line 97 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_ref_action_merge_create_merge_index_co (_data_);
#line 796 "gitg-ref-action-merge.c"
}


static gboolean gitg_ref_action_merge_create_merge_index_co (GitgRefActionMergeCreateMergeIndexData* _data_) {
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	switch (_data_->_state_) {
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		case 0:
#line 805 "gitg-ref-action-merge.c"
		goto _state_0;
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		case 1:
#line 809 "gitg-ref-action-merge.c"
		goto _state_1;
		default:
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_assert_not_reached ();
#line 814 "gitg-ref-action-merge.c"
	}
	_state_0:
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_data23_ = g_slice_new0 (Block23Data);
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_data23_->_ref_count_ = 1;
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_data23_->self = g_object_ref (_data_->self);
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp0_ = NULL;
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp0_ = _data_->notification;
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->_data23_->notification);
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_data23_->notification = _data_->_tmp0_;
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp1_ = NULL;
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp1_ = _data_->ours;
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->_data23_->ours);
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_data23_->ours = _data_->_tmp1_;
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp2_ = NULL;
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp2_ = _data_->theirs;
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->_data23_->theirs);
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_data23_->theirs = _data_->_tmp2_;
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_data23_->_async_data_ = _data_;
#line 95 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_data23_->index = NULL;
#line 97 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_state_ = 1;
#line 97 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_async_thread_try (___lambda14__gitg_async_thread_func, _data_->_data23_, gitg_ref_action_merge_create_merge_index_ready, _data_);
#line 97 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return FALSE;
#line 857 "gitg-ref-action-merge.c"
	_state_1:
#line 97 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_async_thread_try_finish (_data_->_res_);
#line 111 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp3_ = NULL;
#line 111 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp3_ = _g_object_ref0 (_data_->_data23_->index);
#line 111 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->result = _data_->_tmp3_;
#line 111 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	block23_data_unref (_data_->_data23_);
#line 111 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_data23_ = NULL;
#line 111 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (_data_->_state_ == 0) {
#line 111 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 875 "gitg-ref-action-merge.c"
	} else {
#line 111 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 879 "gitg-ref-action-merge.c"
	}
#line 111 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_object_unref (_data_->_async_result);
#line 111 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return FALSE;
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	block23_data_unref (_data_->_data23_);
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_data23_ = NULL;
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (_data_->_state_ == 0) {
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 893 "gitg-ref-action-merge.c"
	} else {
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 897 "gitg-ref-action-merge.c"
	}
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_object_unref (_data_->_async_result);
#line 93 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return FALSE;
#line 903 "gitg-ref-action-merge.c"
}


static void _vala_GgitOId_free (GgitOId* self) {
#line 122 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_boxed_free (ggit_oid_get_type (), self);
#line 910 "gitg-ref-action-merge.c"
}


static const gchar* string_to_string (const gchar* self) {
	const gchar* result = NULL;
#line 1412 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	g_return_val_if_fail (self != NULL, NULL);
#line 1413 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	result = self;
#line 1413 "/usr/share/vala-0.34/vapi/glib-2.0.vapi"
	return result;
#line 922 "gitg-ref-action-merge.c"
}


static void gitg_ref_action_merge_write_merge_state_files (GitgRefActionMerge* self, GgitIndex* index, GitgRef* source) {
	gchar* wd = NULL;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
	GitgExtApplication* _tmp2_ = NULL;
	GitgRepository* _tmp3_ = NULL;
	GitgRepository* _tmp4_ = NULL;
	GitgRepository* _tmp5_ = NULL;
	GFile* _tmp6_ = NULL;
	GFile* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gchar* theirs_name = NULL;
	GitgRef* _tmp10_ = NULL;
	GitgParsedRefName* _tmp11_ = NULL;
	GitgParsedRefName* _tmp12_ = NULL;
	GitgParsedRefName* _tmp13_ = NULL;
	gchar* _tmp14_ = NULL;
	gchar* _tmp15_ = NULL;
	gchar* _tmp16_ = NULL;
	GError * _inner_error_ = NULL;
#line 114 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_return_if_fail (self != NULL);
#line 114 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_return_if_fail (index != NULL);
#line 114 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_return_if_fail (source != NULL);
#line 116 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) self);
#line 116 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp1_ = _tmp0_;
#line 116 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp2_ = _tmp1_;
#line 116 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp3_ = gitg_ext_application_get_repository (_tmp2_);
#line 116 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp4_ = _tmp3_;
#line 116 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp5_ = _tmp4_;
#line 116 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp6_ = ggit_repository_get_location ((GgitRepository*) _tmp5_);
#line 116 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp7_ = _tmp6_;
#line 116 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp8_ = g_file_get_path (_tmp7_);
#line 116 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp9_ = _tmp8_;
#line 116 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_tmp7_);
#line 116 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_tmp5_);
#line 116 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_tmp2_);
#line 116 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	wd = _tmp9_;
#line 117 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp10_ = source;
#line 117 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp11_ = gitg_ref_get_parsed_name (_tmp10_);
#line 117 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp12_ = _tmp11_;
#line 117 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp13_ = _tmp12_;
#line 117 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp14_ = gitg_parsed_ref_name_get_shortname (_tmp13_);
#line 117 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp15_ = _tmp14_;
#line 117 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp16_ = _tmp15_;
#line 117 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_tmp13_);
#line 117 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	theirs_name = _tmp16_;
#line 999 "gitg-ref-action-merge.c"
	{
		GgitRef* _tmp17_ = NULL;
		GitgRef* _tmp18_ = NULL;
		GitgRef* _tmp19_ = NULL;
		GgitRef* _tmp20_ = NULL;
		GgitOId* dest_oid = NULL;
		GgitRef* _tmp21_ = NULL;
		GgitRef* _tmp22_ = NULL;
		GgitOId* _tmp23_ = NULL;
		GgitOId* _tmp24_ = NULL;
		const gchar* _tmp25_ = NULL;
		gchar* _tmp26_ = NULL;
		gchar* _tmp27_ = NULL;
		GgitOId* _tmp28_ = NULL;
		gchar* _tmp29_ = NULL;
		gchar* _tmp30_ = NULL;
		gchar* _tmp31_ = NULL;
		gchar* _tmp32_ = NULL;
#line 121 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp18_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 121 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp19_ = _tmp18_;
#line 121 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp20_ = ggit_ref_resolve ((GgitRef*) _tmp19_, &_inner_error_);
#line 121 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp17_ = _tmp20_;
#line 121 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1028 "gitg-ref-action-merge.c"
			goto __catch27_g_error;
		}
#line 121 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp21_ = _tmp17_;
#line 121 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp17_ = NULL;
#line 121 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp22_ = _tmp21_;
#line 121 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp23_ = ggit_ref_get_target (_tmp22_);
#line 121 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp24_ = _tmp23_;
#line 121 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_tmp22_);
#line 121 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		dest_oid = _tmp24_;
#line 122 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp25_ = wd;
#line 122 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp26_ = g_build_filename (_tmp25_, "ORIG_HEAD", NULL);
#line 122 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp27_ = _tmp26_;
#line 122 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp28_ = dest_oid;
#line 122 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp29_ = ggit_oid_to_string (_tmp28_);
#line 122 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp30_ = _tmp29_;
#line 122 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp31_ = g_strdup_printf ("%s\n", _tmp30_);
#line 122 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp32_ = _tmp31_;
#line 122 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_file_set_contents (_tmp27_, _tmp32_, (gssize) -1, &_inner_error_);
#line 122 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_tmp32_);
#line 122 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_tmp30_);
#line 122 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_tmp27_);
#line 122 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 122 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			__vala_GgitOId_free0 (dest_oid);
#line 122 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_g_object_unref0 (_tmp17_);
#line 1075 "gitg-ref-action-merge.c"
			goto __catch27_g_error;
		}
#line 119 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		__vala_GgitOId_free0 (dest_oid);
#line 119 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_tmp17_);
#line 1082 "gitg-ref-action-merge.c"
	}
	goto __finally27;
	__catch27_g_error:
	{
#line 119 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_clear_error (&_inner_error_);
#line 119 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_inner_error_ = NULL;
#line 1091 "gitg-ref-action-merge.c"
	}
	__finally27:
#line 119 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 119 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (theirs_name);
#line 119 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (wd);
#line 119 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.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 119 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_clear_error (&_inner_error_);
#line 119 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		return;
#line 1106 "gitg-ref-action-merge.c"
	}
	{
		GgitRef* _tmp33_ = NULL;
		GitgRef* _tmp34_ = NULL;
		GgitRef* _tmp35_ = NULL;
		GgitOId* source_oid = NULL;
		GgitRef* _tmp36_ = NULL;
		GgitRef* _tmp37_ = NULL;
		GgitOId* _tmp38_ = NULL;
		GgitOId* _tmp39_ = NULL;
		const gchar* _tmp40_ = NULL;
		gchar* _tmp41_ = NULL;
		gchar* _tmp42_ = NULL;
		GgitOId* _tmp43_ = NULL;
		gchar* _tmp44_ = NULL;
		gchar* _tmp45_ = NULL;
		gchar* _tmp46_ = NULL;
		gchar* _tmp47_ = NULL;
#line 127 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp34_ = source;
#line 127 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp35_ = ggit_ref_resolve ((GgitRef*) _tmp34_, &_inner_error_);
#line 127 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp33_ = _tmp35_;
#line 127 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1133 "gitg-ref-action-merge.c"
			goto __catch28_g_error;
		}
#line 127 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp36_ = _tmp33_;
#line 127 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp33_ = NULL;
#line 127 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp37_ = _tmp36_;
#line 127 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp38_ = ggit_ref_get_target (_tmp37_);
#line 127 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp39_ = _tmp38_;
#line 127 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_tmp37_);
#line 127 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		source_oid = _tmp39_;
#line 128 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp40_ = wd;
#line 128 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp41_ = g_build_filename (_tmp40_, "MERGE_HEAD", NULL);
#line 128 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp42_ = _tmp41_;
#line 128 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp43_ = source_oid;
#line 128 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp44_ = ggit_oid_to_string (_tmp43_);
#line 128 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp45_ = _tmp44_;
#line 128 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp46_ = g_strdup_printf ("%s\n", _tmp45_);
#line 128 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp47_ = _tmp46_;
#line 128 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_file_set_contents (_tmp42_, _tmp47_, (gssize) -1, &_inner_error_);
#line 128 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_tmp47_);
#line 128 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_tmp45_);
#line 128 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_tmp42_);
#line 128 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 128 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			__vala_GgitOId_free0 (source_oid);
#line 128 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_g_object_unref0 (_tmp33_);
#line 1180 "gitg-ref-action-merge.c"
			goto __catch28_g_error;
		}
#line 125 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		__vala_GgitOId_free0 (source_oid);
#line 125 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_tmp33_);
#line 1187 "gitg-ref-action-merge.c"
	}
	goto __finally28;
	__catch28_g_error:
	{
#line 125 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_clear_error (&_inner_error_);
#line 125 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_inner_error_ = NULL;
#line 1196 "gitg-ref-action-merge.c"
	}
	__finally28:
#line 125 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 125 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (theirs_name);
#line 125 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (wd);
#line 125 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.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 125 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_clear_error (&_inner_error_);
#line 125 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		return;
#line 1211 "gitg-ref-action-merge.c"
	}
	{
		const gchar* _tmp48_ = NULL;
		gchar* _tmp49_ = NULL;
		gchar* _tmp50_ = NULL;
#line 133 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp48_ = wd;
#line 133 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp49_ = g_build_filename (_tmp48_, "MERGE_MODE", NULL);
#line 133 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp50_ = _tmp49_;
#line 133 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_file_set_contents (_tmp50_, "no-ff\n", (gssize) -1, &_inner_error_);
#line 133 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_tmp50_);
#line 133 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 1229 "gitg-ref-action-merge.c"
			goto __catch29_g_error;
		}
	}
	goto __finally29;
	__catch29_g_error:
	{
#line 131 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_clear_error (&_inner_error_);
#line 131 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_inner_error_ = NULL;
#line 1240 "gitg-ref-action-merge.c"
	}
	__finally29:
#line 131 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 131 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (theirs_name);
#line 131 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (wd);
#line 131 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.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 131 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_clear_error (&_inner_error_);
#line 131 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		return;
#line 1255 "gitg-ref-action-merge.c"
	}
	{
		gchar* msg = NULL;
		GitgRef* _tmp51_ = NULL;
		GitgParsedRefName* _tmp52_ = NULL;
		GitgParsedRefName* _tmp53_ = NULL;
		GitgParsedRefName* _tmp54_ = NULL;
		GitgRefType _tmp55_ = 0;
		GitgRefType _tmp56_ = 0;
		gboolean _tmp57_ = FALSE;
		const gchar* _tmp64_ = NULL;
		gchar* _tmp65_ = NULL;
		GgitIndexEntries* entries = NULL;
		GgitIndex* _tmp66_ = NULL;
		GgitIndexEntries* _tmp67_ = NULL;
		GeeHashSet* seen = NULL;
		GeeHashSet* _tmp68_ = NULL;
		const gchar* _tmp93_ = NULL;
		gchar* _tmp94_ = NULL;
		gchar* _tmp95_ = NULL;
		const gchar* _tmp96_ = NULL;
#line 140 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp51_ = source;
#line 140 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp52_ = gitg_ref_get_parsed_name (_tmp51_);
#line 140 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp53_ = _tmp52_;
#line 140 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp54_ = _tmp53_;
#line 140 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp55_ = gitg_parsed_ref_name_get_rtype (_tmp54_);
#line 140 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp56_ = _tmp55_;
#line 140 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp57_ = _tmp56_ == GITG_REF_TYPE_REMOTE;
#line 140 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_tmp54_);
#line 140 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (_tmp57_) {
#line 1295 "gitg-ref-action-merge.c"
			const gchar* _tmp58_ = NULL;
			const gchar* _tmp59_ = NULL;
			gchar* _tmp60_ = NULL;
#line 142 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp58_ = theirs_name;
#line 142 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp59_ = string_to_string (_tmp58_);
#line 142 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp60_ = g_strconcat ("Merge remote branch '", _tmp59_, "'", NULL);
#line 142 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_g_free0 (msg);
#line 142 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			msg = _tmp60_;
#line 1309 "gitg-ref-action-merge.c"
		} else {
			const gchar* _tmp61_ = NULL;
			const gchar* _tmp62_ = NULL;
			gchar* _tmp63_ = NULL;
#line 146 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp61_ = theirs_name;
#line 146 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp62_ = string_to_string (_tmp61_);
#line 146 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp63_ = g_strconcat ("Merge branch '", _tmp62_, "'", NULL);
#line 146 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_g_free0 (msg);
#line 146 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			msg = _tmp63_;
#line 1324 "gitg-ref-action-merge.c"
		}
#line 149 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp64_ = msg;
#line 149 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp65_ = g_strconcat (_tmp64_, "\n\nConflicts:\n", NULL);
#line 149 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (msg);
#line 149 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		msg = _tmp65_;
#line 151 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp66_ = index;
#line 151 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp67_ = ggit_index_get_entries (_tmp66_);
#line 151 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		entries = _tmp67_;
#line 152 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp68_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, (GDestroyNotify) g_free, NULL, NULL, NULL, NULL, NULL, NULL);
#line 152 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		seen = _tmp68_;
#line 1344 "gitg-ref-action-merge.c"
		{
			gint i = 0;
#line 154 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			i = 0;
#line 1349 "gitg-ref-action-merge.c"
			{
				gboolean _tmp69_ = FALSE;
#line 154 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp69_ = TRUE;
#line 154 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				while (TRUE) {
#line 1356 "gitg-ref-action-merge.c"
					gint _tmp71_ = 0;
					GgitIndexEntries* _tmp72_ = NULL;
					guint _tmp73_ = 0U;
					GgitIndexEntry* entry = NULL;
					GgitIndexEntries* _tmp74_ = NULL;
					gint _tmp75_ = 0;
					GgitIndexEntry* _tmp76_ = NULL;
					gchar* p = NULL;
					GgitIndexEntry* _tmp77_ = NULL;
					const gchar* _tmp78_ = NULL;
					gchar* _tmp79_ = NULL;
					gboolean _tmp80_ = FALSE;
					GgitIndexEntry* _tmp81_ = NULL;
					gboolean _tmp82_ = FALSE;
#line 154 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					if (!_tmp69_) {
#line 1373 "gitg-ref-action-merge.c"
						gint _tmp70_ = 0;
#line 154 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp70_ = i;
#line 154 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						i = _tmp70_ + 1;
#line 1379 "gitg-ref-action-merge.c"
					}
#line 154 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp69_ = FALSE;
#line 154 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp71_ = i;
#line 154 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp72_ = entries;
#line 154 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp73_ = ggit_index_entries_size (_tmp72_);
#line 154 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					if (!(((guint) _tmp71_) < _tmp73_)) {
#line 154 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						break;
#line 1393 "gitg-ref-action-merge.c"
					}
#line 156 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp74_ = entries;
#line 156 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp75_ = i;
#line 156 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp76_ = ggit_index_entries_get_by_index (_tmp74_, (gsize) _tmp75_);
#line 156 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					entry = _tmp76_;
#line 157 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp77_ = entry;
#line 157 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp78_ = ggit_index_entry_get_path (_tmp77_);
#line 157 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp79_ = g_strdup (_tmp78_);
#line 157 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					p = _tmp79_;
#line 159 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp81_ = entry;
#line 159 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp82_ = ggit_index_entry_is_conflict (_tmp81_);
#line 159 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					if (_tmp82_) {
#line 1417 "gitg-ref-action-merge.c"
						GeeHashSet* _tmp83_ = NULL;
						const gchar* _tmp84_ = NULL;
						gboolean _tmp85_ = FALSE;
#line 159 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp83_ = seen;
#line 159 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp84_ = p;
#line 159 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp85_ = gee_abstract_collection_contains ((GeeAbstractCollection*) _tmp83_, _tmp84_);
#line 159 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp80_ = !_tmp85_;
#line 1429 "gitg-ref-action-merge.c"
					} else {
#line 159 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp80_ = FALSE;
#line 1433 "gitg-ref-action-merge.c"
					}
#line 159 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					if (_tmp80_) {
#line 1437 "gitg-ref-action-merge.c"
						const gchar* _tmp86_ = NULL;
						const gchar* _tmp87_ = NULL;
						gchar* _tmp88_ = NULL;
						gchar* _tmp89_ = NULL;
						gchar* _tmp90_ = NULL;
						GeeHashSet* _tmp91_ = NULL;
						const gchar* _tmp92_ = NULL;
#line 161 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp86_ = msg;
#line 161 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp87_ = p;
#line 161 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp88_ = g_strdup_printf ("\t%s\n", _tmp87_);
#line 161 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp89_ = _tmp88_;
#line 161 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp90_ = g_strconcat (_tmp86_, _tmp89_, NULL);
#line 161 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_g_free0 (msg);
#line 161 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						msg = _tmp90_;
#line 161 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_g_free0 (_tmp89_);
#line 162 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp91_ = seen;
#line 162 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp92_ = p;
#line 162 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						gee_abstract_collection_add ((GeeAbstractCollection*) _tmp91_, _tmp92_);
#line 1467 "gitg-ref-action-merge.c"
					}
#line 154 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_g_free0 (p);
#line 154 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_ggit_index_entry_unref0 (entry);
#line 1473 "gitg-ref-action-merge.c"
				}
			}
		}
#line 166 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp93_ = wd;
#line 166 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp94_ = g_build_filename (_tmp93_, "MERGE_MSG", NULL);
#line 166 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp95_ = _tmp94_;
#line 166 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp96_ = msg;
#line 166 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_file_set_contents (_tmp95_, _tmp96_, (gssize) -1, &_inner_error_);
#line 166 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_tmp95_);
#line 166 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 166 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_g_object_unref0 (seen);
#line 166 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_ggit_index_entries_unref0 (entries);
#line 166 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_g_free0 (msg);
#line 1497 "gitg-ref-action-merge.c"
			goto __catch30_g_error;
		}
#line 136 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (seen);
#line 136 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_ggit_index_entries_unref0 (entries);
#line 136 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (msg);
#line 1506 "gitg-ref-action-merge.c"
	}
	goto __finally30;
	__catch30_g_error:
	{
#line 136 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_clear_error (&_inner_error_);
#line 136 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_inner_error_ = NULL;
#line 1515 "gitg-ref-action-merge.c"
	}
	__finally30:
#line 136 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 136 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (theirs_name);
#line 136 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (wd);
#line 136 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.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 136 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_clear_error (&_inner_error_);
#line 136 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		return;
#line 1530 "gitg-ref-action-merge.c"
	}
#line 114 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (theirs_name);
#line 114 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (wd);
#line 1536 "gitg-ref-action-merge.c"
}


static void gitg_ref_action_merge_checkout_conflicts_data_free (gpointer _data) {
	GitgRefActionMergeCheckoutConflictsData* _data_;
	_data_ = _data;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->notification);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->index);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->source);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->self);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_slice_free (GitgRefActionMergeCheckoutConflictsData, _data_);
#line 1553 "gitg-ref-action-merge.c"
}


static void gitg_ref_action_merge_checkout_conflicts (GitgRefActionMerge* self, GitgSimpleNotification* notification, GgitIndex* index, GitgRef* source, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GitgRefActionMergeCheckoutConflictsData* _data_;
	GitgRefActionMerge* _tmp0_ = NULL;
	GitgSimpleNotification* _tmp1_ = NULL;
	GitgSimpleNotification* _tmp2_ = NULL;
	GgitIndex* _tmp3_ = NULL;
	GgitIndex* _tmp4_ = NULL;
	GitgRef* _tmp5_ = NULL;
	GitgRef* _tmp6_ = NULL;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_ = g_slice_new0 (GitgRefActionMergeCheckoutConflictsData);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gitg_ref_action_merge_checkout_conflicts);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gitg_ref_action_merge_checkout_conflicts_data_free);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->self = _tmp0_;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp1_ = notification;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->notification);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->notification = _tmp2_;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp3_ = index;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp4_ = _g_object_ref0 (_tmp3_);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->index);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->index = _tmp4_;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp5_ = source;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp6_ = _g_object_ref0 (_tmp5_);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->source);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->source = _tmp6_;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_ref_action_merge_checkout_conflicts_co (_data_);
#line 1602 "gitg-ref-action-merge.c"
}


static gboolean gitg_ref_action_merge_checkout_conflicts_finish (GitgRefActionMerge* self, GAsyncResult* _res_) {
	gboolean result;
	GitgRefActionMergeCheckoutConflictsData* _data_;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	result = _data_->result;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return result;
#line 1615 "gitg-ref-action-merge.c"
}


static void gitg_ref_action_merge_checkout_conflicts_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	GitgRefActionMergeCheckoutConflictsData* _data_;
#line 197 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_ = _user_data_;
#line 197 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_source_object_ = source_object;
#line 197 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_res_ = _res_;
#line 197 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_ref_action_merge_checkout_conflicts_co (_data_);
#line 1629 "gitg-ref-action-merge.c"
}


static gboolean gitg_ref_action_merge_checkout_conflicts_co (GitgRefActionMergeCheckoutConflictsData* _data_) {
#line 170 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	switch (_data_->_state_) {
#line 170 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		case 0:
#line 1638 "gitg-ref-action-merge.c"
		goto _state_0;
#line 170 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		case 1:
#line 1642 "gitg-ref-action-merge.c"
		goto _state_1;
#line 170 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		case 2:
#line 1646 "gitg-ref-action-merge.c"
		goto _state_2;
		default:
#line 170 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_assert_not_reached ();
#line 1651 "gitg-ref-action-merge.c"
	}
	_state_0:
#line 172 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp0_ = NULL;
#line 172 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp0_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) _data_->self);
#line 172 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp1_ = NULL;
#line 172 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp1_ = _data_->_tmp0_;
#line 172 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp2_ = NULL;
#line 172 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp2_ = gitg_ref_get_parsed_name (_data_->_tmp1_);
#line 172 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp3_ = NULL;
#line 172 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp3_ = _data_->_tmp2_;
#line 172 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp4_ = NULL;
#line 172 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 172 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp5_ = NULL;
#line 172 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp5_ = gitg_parsed_ref_name_get_shortname (_data_->_tmp4_);
#line 172 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp6_ = NULL;
#line 172 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp6_ = _data_->_tmp5_;
#line 172 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp7_ = NULL;
#line 172 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp7_ = _data_->_tmp6_;
#line 172 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->_tmp4_);
#line 172 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->ours_name = _data_->_tmp7_;
#line 173 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp8_ = NULL;
#line 173 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp8_ = _data_->source;
#line 173 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp9_ = NULL;
#line 173 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp9_ = gitg_ref_get_parsed_name (_data_->_tmp8_);
#line 173 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp10_ = NULL;
#line 173 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp10_ = _data_->_tmp9_;
#line 173 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp11_ = NULL;
#line 173 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp11_ = _data_->_tmp10_;
#line 173 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp12_ = NULL;
#line 173 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp12_ = gitg_parsed_ref_name_get_shortname (_data_->_tmp11_);
#line 173 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp13_ = NULL;
#line 173 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp13_ = _data_->_tmp12_;
#line 173 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp14_ = NULL;
#line 173 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp14_ = _data_->_tmp13_;
#line 173 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->_tmp11_);
#line 173 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->theirs_name = _data_->_tmp14_;
#line 175 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp15_ = NULL;
#line 175 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp15_ = _data_->notification;
#line 175 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp16_ = NULL;
#line 175 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp16_ = _ ("Merge has conflicts");
#line 175 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_simple_notification_set_message (_data_->_tmp15_, _data_->_tmp16_);
#line 177 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->head = NULL;
#line 178 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp17_ = NULL;
#line 178 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp17_ = _data_->self->priv->d_support;
#line 178 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp18_ = NULL;
#line 178 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp18_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) _data_->self);
#line 178 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp19_ = NULL;
#line 178 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp19_ = _data_->_tmp18_;
#line 178 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp20_ = FALSE;
#line 178 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp20_ = gitg_action_support_reference_is_head (_data_->_tmp17_, _data_->_tmp19_, &_data_->head);
#line 178 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->ishead = _data_->_tmp20_;
#line 182 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp21_ = FALSE;
#line 182 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp21_ = _data_->ishead;
#line 182 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (_data_->_tmp21_) {
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp22_ = NULL;
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp22_ = _ ("The merge of %s into %s has caused conflicts, would you like to checko" \
"ut branch %s with the merge to your working directory to resolve the c" \
"onflicts?");
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp23_ = NULL;
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp23_ = _data_->theirs_name;
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp24_ = NULL;
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp24_ = string_to_string (_data_->_tmp23_);
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp25_ = NULL;
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp25_ = g_strconcat ("'", _data_->_tmp24_, "'", NULL);
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp26_ = NULL;
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp26_ = _data_->_tmp25_;
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp27_ = NULL;
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp27_ = _data_->ours_name;
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp28_ = NULL;
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp28_ = string_to_string (_data_->_tmp27_);
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp29_ = NULL;
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp29_ = g_strconcat ("'", _data_->_tmp28_, "'", NULL);
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp30_ = NULL;
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp30_ = _data_->_tmp29_;
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp31_ = NULL;
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp31_ = _data_->ours_name;
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp32_ = NULL;
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp32_ = string_to_string (_data_->_tmp31_);
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp33_ = NULL;
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp33_ = g_strconcat ("'", _data_->_tmp32_, "'", NULL);
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp34_ = NULL;
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp34_ = _data_->_tmp33_;
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp35_ = NULL;
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp35_ = g_strdup_printf (_data_->_tmp22_, _data_->_tmp26_, _data_->_tmp30_, _data_->_tmp34_);
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->message);
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->message = _data_->_tmp35_;
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->_tmp34_);
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->_tmp30_);
#line 184 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->_tmp26_);
#line 1824 "gitg-ref-action-merge.c"
	} else {
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp36_ = NULL;
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp36_ = _ ("The merge of %s into %s has caused conflicts, would you like to checko" \
"ut the merge to your working directory to resolve the conflicts?");
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp37_ = NULL;
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp37_ = _data_->theirs_name;
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp38_ = NULL;
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp38_ = string_to_string (_data_->_tmp37_);
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp39_ = NULL;
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp39_ = g_strconcat ("'", _data_->_tmp38_, "'", NULL);
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp40_ = NULL;
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp40_ = _data_->_tmp39_;
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp41_ = NULL;
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp41_ = _data_->ours_name;
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp42_ = NULL;
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp42_ = string_to_string (_data_->_tmp41_);
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp43_ = NULL;
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp43_ = g_strconcat ("'", _data_->_tmp42_, "'", NULL);
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp44_ = NULL;
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp44_ = _data_->_tmp43_;
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp45_ = NULL;
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp45_ = g_strdup_printf (_data_->_tmp36_, _data_->_tmp40_, _data_->_tmp44_);
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->message);
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->message = _data_->_tmp45_;
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->_tmp44_);
#line 188 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->_tmp40_);
#line 1874 "gitg-ref-action-merge.c"
	}
#line 191 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp46_ = NULL;
#line 191 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp46_ = _ ("Merge has conflicts");
#line 191 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp47_ = NULL;
#line 191 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp47_ = _data_->message;
#line 191 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp48_ = NULL;
#line 191 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp48_ = _ ("Cancel");
#line 191 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp49_ = NULL;
#line 191 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp49_ = _ ("Checkout");
#line 191 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp50_ = NULL;
#line 191 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp50_ = gitg_ext_user_query_new_full (_data_->_tmp46_, _data_->_tmp47_, GTK_MESSAGE_QUESTION, _data_->_tmp48_, GTK_RESPONSE_CANCEL, _data_->_tmp49_, GTK_RESPONSE_OK, NULL);
#line 191 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->q = _data_->_tmp50_;
#line 197 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp51_ = NULL;
#line 197 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp51_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) _data_->self);
#line 197 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp52_ = NULL;
#line 197 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp52_ = _data_->_tmp51_;
#line 197 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp53_ = NULL;
#line 197 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp53_ = _data_->_tmp52_;
#line 197 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp54_ = NULL;
#line 197 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp54_ = _data_->q;
#line 197 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_state_ = 1;
#line 197 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_ext_application_user_query_async (_data_->_tmp53_, _data_->_tmp54_, gitg_ref_action_merge_checkout_conflicts_ready, _data_);
#line 197 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return FALSE;
#line 1920 "gitg-ref-action-merge.c"
	_state_1:
#line 197 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp55_ = 0;
#line 197 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp55_ = gitg_ext_application_user_query_finish (_data_->_tmp53_, _data_->_res_);
#line 197 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp56_ = FALSE;
#line 197 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp56_ = _data_->_tmp55_ != GTK_RESPONSE_OK;
#line 197 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->_tmp53_);
#line 197 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (_data_->_tmp56_) {
#line 199 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp57_ = NULL;
#line 199 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp57_ = _data_->notification;
#line 199 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp58_ = NULL;
#line 199 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp58_ = _ ("Merge failed with conflicts");
#line 199 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		gitg_simple_notification_error (_data_->_tmp57_, _data_->_tmp58_);
#line 200 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->result = FALSE;
#line 200 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->q);
#line 200 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->message);
#line 200 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->head);
#line 200 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->theirs_name);
#line 200 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->ours_name);
#line 200 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (_data_->_state_ == 0) {
#line 200 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 1960 "gitg-ref-action-merge.c"
		} else {
#line 200 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 1964 "gitg-ref-action-merge.c"
		}
#line 200 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_object_unref (_data_->_async_result);
#line 200 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		return FALSE;
#line 1970 "gitg-ref-action-merge.c"
	}
#line 203 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp59_ = NULL;
#line 203 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp59_ = _data_->self->priv->d_support;
#line 203 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp60_ = NULL;
#line 203 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp60_ = _data_->notification;
#line 203 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp61_ = NULL;
#line 203 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp61_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) _data_->self);
#line 203 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp62_ = NULL;
#line 203 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp62_ = _data_->_tmp61_;
#line 203 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp63_ = NULL;
#line 203 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp63_ = _data_->index;
#line 203 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp64_ = NULL;
#line 203 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp64_ = _data_->head;
#line 203 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_state_ = 2;
#line 203 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_action_support_checkout_conflicts (_data_->_tmp59_, _data_->_tmp60_, _data_->_tmp62_, _data_->_tmp63_, _data_->_tmp64_, gitg_ref_action_merge_checkout_conflicts_ready, _data_);
#line 203 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return FALSE;
#line 2002 "gitg-ref-action-merge.c"
	_state_2:
#line 203 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp65_ = FALSE;
#line 203 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp65_ = gitg_action_support_checkout_conflicts_finish (_data_->_tmp59_, _data_->_res_);
#line 203 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (!_data_->_tmp65_) {
#line 205 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->result = FALSE;
#line 205 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->q);
#line 205 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->message);
#line 205 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->head);
#line 205 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->theirs_name);
#line 205 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->ours_name);
#line 205 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (_data_->_state_ == 0) {
#line 205 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2026 "gitg-ref-action-merge.c"
		} else {
#line 205 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2030 "gitg-ref-action-merge.c"
		}
#line 205 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_object_unref (_data_->_async_result);
#line 205 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		return FALSE;
#line 2036 "gitg-ref-action-merge.c"
	}
#line 208 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp66_ = NULL;
#line 208 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp66_ = _data_->index;
#line 208 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp67_ = NULL;
#line 208 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp67_ = _data_->source;
#line 208 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_ref_action_merge_write_merge_state_files (_data_->self, _data_->_tmp66_, _data_->_tmp67_);
#line 210 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp68_ = NULL;
#line 210 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp68_ = _data_->notification;
#line 210 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp69_ = NULL;
#line 210 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp69_ = _ ("Finished merge with conflicts in working directory");
#line 210 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_simple_notification_success (_data_->_tmp68_, _data_->_tmp69_);
#line 211 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->result = TRUE;
#line 211 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->q);
#line 211 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (_data_->message);
#line 211 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->head);
#line 211 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (_data_->theirs_name);
#line 211 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (_data_->ours_name);
#line 211 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (_data_->_state_ == 0) {
#line 211 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2074 "gitg-ref-action-merge.c"
	} else {
#line 211 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2078 "gitg-ref-action-merge.c"
	}
#line 211 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_object_unref (_data_->_async_result);
#line 211 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return FALSE;
#line 170 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->q);
#line 170 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (_data_->message);
#line 170 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->head);
#line 170 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (_data_->theirs_name);
#line 170 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (_data_->ours_name);
#line 170 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (_data_->_state_ == 0) {
#line 170 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2098 "gitg-ref-action-merge.c"
	} else {
#line 170 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 2102 "gitg-ref-action-merge.c"
	}
#line 170 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_object_unref (_data_->_async_result);
#line 170 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return FALSE;
#line 2108 "gitg-ref-action-merge.c"
}


static void gitg_ref_action_merge_merge_data_free (gpointer _data) {
	GitgRefActionMergeMergeData* _data_;
	_data_ = _data;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->source);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	__vala_GgitOId_free0 (_data_->result);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->self);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_slice_free (GitgRefActionMergeMergeData, _data_);
#line 2123 "gitg-ref-action-merge.c"
}


void gitg_ref_action_merge_merge (GitgRefActionMerge* self, GitgRef* source, GAsyncReadyCallback _callback_, gpointer _user_data_) {
	GitgRefActionMergeMergeData* _data_;
	GitgRefActionMerge* _tmp0_ = NULL;
	GitgRef* _tmp1_ = NULL;
	GitgRef* _tmp2_ = NULL;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_ = g_slice_new0 (GitgRefActionMergeMergeData);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, gitg_ref_action_merge_merge);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, gitg_ref_action_merge_merge_data_free);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = _g_object_ref0 (self);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->self = _tmp0_;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp1_ = source;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp2_ = _g_object_ref0 (_tmp1_);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->source);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->source = _tmp2_;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_ref_action_merge_merge_co (_data_);
#line 2152 "gitg-ref-action-merge.c"
}


GgitOId* gitg_ref_action_merge_merge_finish (GitgRefActionMerge* self, GAsyncResult* _res_) {
	GgitOId* result;
	GitgRefActionMergeMergeData* _data_;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	result = _data_->result;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->result = NULL;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return result;
#line 2167 "gitg-ref-action-merge.c"
}


static void gitg_ref_action_merge_merge_ready (GObject* source_object, GAsyncResult* _res_, gpointer _user_data_) {
	GitgRefActionMergeMergeData* _data_;
#line 245 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_ = _user_data_;
#line 245 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_source_object_ = source_object;
#line 245 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_res_ = _res_;
#line 245 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_ref_action_merge_merge_co (_data_);
#line 2181 "gitg-ref-action-merge.c"
}


static gboolean gitg_ref_action_merge_merge_co (GitgRefActionMergeMergeData* _data_) {
#line 214 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	switch (_data_->_state_) {
#line 214 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		case 0:
#line 2190 "gitg-ref-action-merge.c"
		goto _state_0;
#line 214 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		case 1:
#line 2194 "gitg-ref-action-merge.c"
		goto _state_1;
#line 214 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		case 2:
#line 2198 "gitg-ref-action-merge.c"
		goto _state_2;
#line 214 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		case 3:
#line 2202 "gitg-ref-action-merge.c"
		goto _state_3;
		default:
#line 214 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_assert_not_reached ();
#line 2207 "gitg-ref-action-merge.c"
	}
	_state_0:
#line 219 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp0_ = NULL;
#line 219 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp0_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) _data_->self);
#line 219 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp1_ = NULL;
#line 219 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp1_ = _data_->_tmp0_;
#line 219 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp2_ = NULL;
#line 219 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp2_ = gitg_ref_get_parsed_name (_data_->_tmp1_);
#line 219 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp3_ = NULL;
#line 219 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp3_ = _data_->_tmp2_;
#line 219 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp4_ = NULL;
#line 219 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp4_ = _data_->_tmp3_;
#line 219 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp5_ = NULL;
#line 219 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp5_ = gitg_parsed_ref_name_get_shortname (_data_->_tmp4_);
#line 219 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp6_ = NULL;
#line 219 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp6_ = _data_->_tmp5_;
#line 219 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp7_ = NULL;
#line 219 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp7_ = _data_->_tmp6_;
#line 219 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->_tmp4_);
#line 219 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->ours_name = _data_->_tmp7_;
#line 220 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp8_ = NULL;
#line 220 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp8_ = _data_->source;
#line 220 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp9_ = NULL;
#line 220 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp9_ = gitg_ref_get_parsed_name (_data_->_tmp8_);
#line 220 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp10_ = NULL;
#line 220 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp10_ = _data_->_tmp9_;
#line 220 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp11_ = NULL;
#line 220 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp11_ = _data_->_tmp10_;
#line 220 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp12_ = NULL;
#line 220 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp12_ = gitg_parsed_ref_name_get_shortname (_data_->_tmp11_);
#line 220 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp13_ = NULL;
#line 220 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp13_ = _data_->_tmp12_;
#line 220 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp14_ = NULL;
#line 220 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp14_ = _data_->_tmp13_;
#line 220 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->_tmp11_);
#line 220 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->theirs_name = _data_->_tmp14_;
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp15_ = NULL;
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp15_ = _ ("Merge %s into %s");
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp16_ = NULL;
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp16_ = _data_->theirs_name;
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp17_ = NULL;
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp17_ = string_to_string (_data_->_tmp16_);
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp18_ = NULL;
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp18_ = g_strconcat ("'", _data_->_tmp17_, "'", NULL);
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp19_ = NULL;
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp19_ = _data_->_tmp18_;
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp20_ = NULL;
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp20_ = _data_->ours_name;
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp21_ = NULL;
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp21_ = string_to_string (_data_->_tmp20_);
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp22_ = NULL;
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp22_ = g_strconcat ("'", _data_->_tmp21_, "'", NULL);
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp23_ = NULL;
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp23_ = _data_->_tmp22_;
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp24_ = NULL;
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp24_ = g_strdup_printf (_data_->_tmp15_, _data_->_tmp19_, _data_->_tmp23_);
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp25_ = NULL;
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp25_ = _data_->_tmp24_;
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp26_ = NULL;
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp26_ = gitg_simple_notification_new (_data_->_tmp25_, NULL);
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp27_ = NULL;
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp27_ = _data_->_tmp26_;
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (_data_->_tmp25_);
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (_data_->_tmp23_);
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (_data_->_tmp19_);
#line 222 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->notification = _data_->_tmp27_;
#line 223 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp28_ = NULL;
#line 223 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp28_ = gitg_ext_ui_element_get_application ((GitgExtUIElement*) _data_->self);
#line 223 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp29_ = NULL;
#line 223 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp29_ = _data_->_tmp28_;
#line 223 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp30_ = NULL;
#line 223 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp30_ = _data_->_tmp29_;
#line 223 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp31_ = NULL;
#line 223 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp31_ = gitg_ext_application_get_notifications (_data_->_tmp30_);
#line 223 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp32_ = NULL;
#line 223 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp32_ = _data_->_tmp31_;
#line 223 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp33_ = NULL;
#line 223 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp33_ = _data_->_tmp32_;
#line 223 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp34_ = NULL;
#line 223 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp34_ = _data_->notification;
#line 223 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_ext_notifications_add (_data_->_tmp33_, (GitgExtNotification*) _data_->_tmp34_);
#line 223 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->_tmp33_);
#line 223 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->_tmp30_);
#line 2372 "gitg-ref-action-merge.c"
	{
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp36_ = NULL;
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp36_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) _data_->self);
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp37_ = NULL;
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp37_ = _data_->_tmp36_;
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp38_ = NULL;
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp38_ = ggit_ref_resolve ((GgitRef*) _data_->_tmp37_, &_data_->_inner_error_);
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp35_ = _data_->_tmp38_;
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 2390 "gitg-ref-action-merge.c"
			goto __catch31_g_error;
		}
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp40_ = NULL;
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp40_ = _data_->_tmp35_;
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp35_ = NULL;
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp41_ = NULL;
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp41_ = _data_->_tmp40_;
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp42_ = NULL;
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp42_ = ggit_ref_lookup (_data_->_tmp41_, &_data_->_inner_error_);
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp43_ = NULL;
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp43_ = _data_->_tmp42_;
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->_tmp41_);
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp39_ = _data_->_tmp43_;
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_g_object_unref0 (_data_->_tmp35_);
#line 2419 "gitg-ref-action-merge.c"
			goto __catch31_g_error;
		}
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp44_ = NULL;
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp44_ = _data_->_tmp39_;
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp39_ = NULL;
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp45_ = NULL;
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp45_ = G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp44_, ggit_commit_get_type ()) ? ((GgitCommit*) _data_->_tmp44_) : NULL;
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (_data_->_tmp45_ == NULL) {
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_g_object_unref0 (_data_->_tmp44_);
#line 2436 "gitg-ref-action-merge.c"
		}
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->ours);
#line 227 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->ours = _data_->_tmp45_;
#line 225 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->_tmp39_);
#line 225 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->_tmp35_);
#line 2446 "gitg-ref-action-merge.c"
	}
	goto __finally31;
	__catch31_g_error:
	{
#line 225 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->e = _data_->_inner_error_;
#line 225 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_inner_error_ = NULL;
#line 231 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp46_ = NULL;
#line 231 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp46_ = _data_->notification;
#line 231 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp47_ = NULL;
#line 231 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp47_ = _ ("Failed to lookup our commit: %s");
#line 231 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp48_ = NULL;
#line 231 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp48_ = _data_->e;
#line 231 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp49_ = NULL;
#line 231 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp49_ = _data_->_tmp48_->message;
#line 231 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp50_ = NULL;
#line 231 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp50_ = g_strdup_printf (_data_->_tmp47_, _data_->_tmp49_);
#line 231 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp51_ = NULL;
#line 231 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp51_ = _data_->_tmp50_;
#line 231 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		gitg_simple_notification_error (_data_->_tmp46_, _data_->_tmp51_);
#line 231 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->_tmp51_);
#line 232 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->result = NULL;
#line 232 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_error_free0 (_data_->e);
#line 232 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->notification);
#line 232 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->theirs_name);
#line 232 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->ours_name);
#line 232 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->theirs);
#line 232 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->ours);
#line 232 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (_data_->_state_ == 0) {
#line 232 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2501 "gitg-ref-action-merge.c"
		} else {
#line 232 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2505 "gitg-ref-action-merge.c"
		}
#line 232 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_object_unref (_data_->_async_result);
#line 232 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		return FALSE;
#line 2511 "gitg-ref-action-merge.c"
	}
	__finally31:
#line 225 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 225 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->notification);
#line 225 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->theirs_name);
#line 225 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->ours_name);
#line 225 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->theirs);
#line 225 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->ours);
#line 225 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 225 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_clear_error (&_data_->_inner_error_);
#line 225 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		return FALSE;
#line 2532 "gitg-ref-action-merge.c"
	}
	{
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp53_ = NULL;
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp53_ = _data_->source;
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp54_ = NULL;
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp54_ = ggit_ref_resolve ((GgitRef*) _data_->_tmp53_, &_data_->_inner_error_);
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp52_ = _data_->_tmp54_;
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 2547 "gitg-ref-action-merge.c"
			goto __catch32_g_error;
		}
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp56_ = NULL;
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp56_ = _data_->_tmp52_;
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp52_ = NULL;
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp57_ = NULL;
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp57_ = _data_->_tmp56_;
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp58_ = NULL;
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp58_ = ggit_ref_lookup (_data_->_tmp57_, &_data_->_inner_error_);
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp59_ = NULL;
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp59_ = _data_->_tmp58_;
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->_tmp57_);
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp55_ = _data_->_tmp59_;
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_g_object_unref0 (_data_->_tmp52_);
#line 2576 "gitg-ref-action-merge.c"
			goto __catch32_g_error;
		}
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp60_ = NULL;
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp60_ = _data_->_tmp55_;
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp55_ = NULL;
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp61_ = NULL;
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp61_ = G_TYPE_CHECK_INSTANCE_TYPE (_data_->_tmp60_, ggit_commit_get_type ()) ? ((GgitCommit*) _data_->_tmp60_) : NULL;
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (_data_->_tmp61_ == NULL) {
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_g_object_unref0 (_data_->_tmp60_);
#line 2593 "gitg-ref-action-merge.c"
		}
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->theirs);
#line 237 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->theirs = _data_->_tmp61_;
#line 235 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->_tmp55_);
#line 235 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->_tmp52_);
#line 2603 "gitg-ref-action-merge.c"
	}
	goto __finally32;
	__catch32_g_error:
	{
#line 235 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_vala1_e = _data_->_inner_error_;
#line 235 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_inner_error_ = NULL;
#line 241 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp62_ = NULL;
#line 241 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp62_ = _data_->notification;
#line 241 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp63_ = NULL;
#line 241 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp63_ = _ ("Failed to lookup their commit: %s");
#line 241 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp64_ = NULL;
#line 241 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp64_ = _data_->_vala1_e;
#line 241 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp65_ = NULL;
#line 241 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp65_ = _data_->_tmp64_->message;
#line 241 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp66_ = NULL;
#line 241 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp66_ = g_strdup_printf (_data_->_tmp63_, _data_->_tmp65_);
#line 241 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp67_ = NULL;
#line 241 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp67_ = _data_->_tmp66_;
#line 241 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		gitg_simple_notification_error (_data_->_tmp62_, _data_->_tmp67_);
#line 241 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->_tmp67_);
#line 242 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->result = NULL;
#line 242 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_error_free0 (_data_->_vala1_e);
#line 242 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->notification);
#line 242 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->theirs_name);
#line 242 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->ours_name);
#line 242 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->theirs);
#line 242 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->ours);
#line 242 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (_data_->_state_ == 0) {
#line 242 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2658 "gitg-ref-action-merge.c"
		} else {
#line 242 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2662 "gitg-ref-action-merge.c"
		}
#line 242 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_object_unref (_data_->_async_result);
#line 242 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		return FALSE;
#line 2668 "gitg-ref-action-merge.c"
	}
	__finally32:
#line 235 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (G_UNLIKELY (_data_->_inner_error_ != NULL)) {
#line 235 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->notification);
#line 235 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->theirs_name);
#line 235 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->ours_name);
#line 235 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->theirs);
#line 235 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->ours);
#line 235 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
#line 235 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_clear_error (&_data_->_inner_error_);
#line 235 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		return FALSE;
#line 2689 "gitg-ref-action-merge.c"
	}
#line 245 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp68_ = NULL;
#line 245 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp68_ = _data_->notification;
#line 245 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp69_ = NULL;
#line 245 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp69_ = _data_->ours;
#line 245 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp70_ = NULL;
#line 245 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp70_ = _data_->theirs;
#line 245 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_state_ = 1;
#line 245 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_ref_action_merge_create_merge_index (_data_->self, _data_->_tmp68_, _data_->_tmp69_, _data_->_tmp70_, gitg_ref_action_merge_merge_ready, _data_);
#line 245 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return FALSE;
#line 2709 "gitg-ref-action-merge.c"
	_state_1:
#line 245 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp71_ = NULL;
#line 245 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp71_ = gitg_ref_action_merge_create_merge_index_finish (_data_->self, _data_->_res_);
#line 245 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->index = _data_->_tmp71_;
#line 247 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp72_ = NULL;
#line 247 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp72_ = _data_->index;
#line 247 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (_data_->_tmp72_ == NULL) {
#line 249 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->result = NULL;
#line 249 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->index);
#line 249 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->notification);
#line 249 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->theirs_name);
#line 249 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->ours_name);
#line 249 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->theirs);
#line 249 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->ours);
#line 249 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (_data_->_state_ == 0) {
#line 249 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2741 "gitg-ref-action-merge.c"
		} else {
#line 249 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2745 "gitg-ref-action-merge.c"
		}
#line 249 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_object_unref (_data_->_async_result);
#line 249 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		return FALSE;
#line 2751 "gitg-ref-action-merge.c"
	}
#line 252 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp73_ = NULL;
#line 252 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp73_ = _data_->index;
#line 252 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp74_ = FALSE;
#line 252 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp74_ = ggit_index_has_conflicts (_data_->_tmp73_);
#line 252 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (_data_->_tmp74_) {
#line 254 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp75_ = NULL;
#line 254 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp75_ = _data_->notification;
#line 254 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp76_ = NULL;
#line 254 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp76_ = _data_->index;
#line 254 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp77_ = NULL;
#line 254 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp77_ = _data_->source;
#line 254 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_state_ = 2;
#line 254 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		gitg_ref_action_merge_checkout_conflicts (_data_->self, _data_->_tmp75_, _data_->_tmp76_, _data_->_tmp77_, gitg_ref_action_merge_merge_ready, _data_);
#line 254 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		return FALSE;
#line 2781 "gitg-ref-action-merge.c"
		_state_2:
#line 254 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		gitg_ref_action_merge_checkout_conflicts_finish (_data_->self, _data_->_res_);
#line 255 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->result = NULL;
#line 255 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->index);
#line 255 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->notification);
#line 255 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->theirs_name);
#line 255 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->ours_name);
#line 255 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->theirs);
#line 255 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data_->ours);
#line 255 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (_data_->_state_ == 0) {
#line 255 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 2803 "gitg-ref-action-merge.c"
		} else {
#line 255 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			g_simple_async_result_complete (_data_->_async_result);
#line 2807 "gitg-ref-action-merge.c"
		}
#line 255 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_object_unref (_data_->_async_result);
#line 255 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		return FALSE;
#line 2813 "gitg-ref-action-merge.c"
	}
#line 260 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp78_ = NULL;
#line 260 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp78_ = _data_->source;
#line 260 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp79_ = NULL;
#line 260 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp79_ = gitg_ref_get_parsed_name (_data_->_tmp78_);
#line 260 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp80_ = NULL;
#line 260 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp80_ = _data_->_tmp79_;
#line 260 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp81_ = NULL;
#line 260 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp81_ = _data_->_tmp80_;
#line 260 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp82_ = 0;
#line 260 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp82_ = gitg_parsed_ref_name_get_rtype (_data_->_tmp81_);
#line 260 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp83_ = 0;
#line 260 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp83_ = _data_->_tmp82_;
#line 260 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp84_ = FALSE;
#line 260 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp84_ = _data_->_tmp83_ == GITG_REF_TYPE_REMOTE;
#line 260 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->_tmp81_);
#line 260 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (_data_->_tmp84_) {
#line 262 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp85_ = NULL;
#line 262 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp85_ = _data_->theirs_name;
#line 262 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp86_ = NULL;
#line 262 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp86_ = string_to_string (_data_->_tmp85_);
#line 262 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp87_ = NULL;
#line 262 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp87_ = g_strconcat ("Merge remote branch '", _data_->_tmp86_, "'", NULL);
#line 262 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->msg);
#line 262 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->msg = _data_->_tmp87_;
#line 2863 "gitg-ref-action-merge.c"
	} else {
#line 266 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp88_ = NULL;
#line 266 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp88_ = _data_->theirs_name;
#line 266 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp89_ = NULL;
#line 266 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp89_ = string_to_string (_data_->_tmp88_);
#line 266 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp90_ = NULL;
#line 266 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp90_ = g_strconcat ("Merge branch '", _data_->_tmp89_, "'", NULL);
#line 266 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->msg);
#line 266 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->msg = _data_->_tmp90_;
#line 2881 "gitg-ref-action-merge.c"
	}
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp91_ = NULL;
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp91_ = _data_->self->priv->d_support;
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp92_ = NULL;
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp92_ = _data_->notification;
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp93_ = NULL;
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp93_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) _data_->self);
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp94_ = NULL;
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp94_ = _data_->_tmp93_;
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp95_ = NULL;
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp95_ = _data_->index;
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp96_ = NULL;
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp96_ = _data_->ours;
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp97_ = NULL;
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp97_ = ggit_object_get_id ((GgitObject*) _data_->_tmp96_);
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp98_ = NULL;
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp98_ = _data_->theirs;
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp99_ = NULL;
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp99_ = ggit_object_get_id ((GgitObject*) _data_->_tmp98_);
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp100_ = NULL;
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp100_ = g_new0 (GgitOId*, 2 + 1);
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp100_[0] = _data_->_tmp97_;
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp100_[1] = _data_->_tmp99_;
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp101_ = NULL;
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp101_ = _data_->msg;
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_state_ = 3;
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_action_support_commit_index (_data_->_tmp91_, _data_->_tmp92_, _data_->_tmp94_, _data_->_tmp95_, _data_->_tmp100_, 2, NULL, _data_->_tmp101_, gitg_ref_action_merge_merge_ready, _data_);
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return FALSE;
#line 2937 "gitg-ref-action-merge.c"
	_state_3:
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp102_ = NULL;
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp102_ = gitg_action_support_commit_index_finish (_data_->_tmp91_, _data_->_res_);
#line 269 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->oid = _data_->_tmp102_;
#line 276 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp103_ = NULL;
#line 276 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->_tmp103_ = _data_->oid;
#line 276 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (_data_->_tmp103_ != NULL) {
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp104_ = NULL;
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp104_ = _data_->notification;
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp105_ = NULL;
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp105_ = _ ("Successfully merged %s into %s");
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp106_ = NULL;
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp106_ = _data_->theirs_name;
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp107_ = NULL;
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp107_ = string_to_string (_data_->_tmp106_);
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp108_ = NULL;
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp108_ = g_strconcat ("'", _data_->_tmp107_, "'", NULL);
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp109_ = NULL;
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp109_ = _data_->_tmp108_;
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp110_ = NULL;
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp110_ = _data_->ours_name;
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp111_ = NULL;
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp111_ = string_to_string (_data_->_tmp110_);
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp112_ = NULL;
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp112_ = g_strconcat ("'", _data_->_tmp111_, "'", NULL);
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp113_ = NULL;
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp113_ = _data_->_tmp112_;
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp114_ = NULL;
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp114_ = g_strdup_printf (_data_->_tmp105_, _data_->_tmp109_, _data_->_tmp113_);
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp115_ = NULL;
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data_->_tmp115_ = _data_->_tmp114_;
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		gitg_simple_notification_success (_data_->_tmp104_, _data_->_tmp115_);
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->_tmp115_);
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->_tmp113_);
#line 278 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_free0 (_data_->_tmp109_);
#line 3007 "gitg-ref-action-merge.c"
	}
#line 281 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data_->result = _data_->oid;
#line 281 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (_data_->msg);
#line 281 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->index);
#line 281 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->notification);
#line 281 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (_data_->theirs_name);
#line 281 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (_data_->ours_name);
#line 281 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->theirs);
#line 281 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->ours);
#line 281 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (_data_->_state_ == 0) {
#line 281 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3029 "gitg-ref-action-merge.c"
	} else {
#line 281 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 3033 "gitg-ref-action-merge.c"
	}
#line 281 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_object_unref (_data_->_async_result);
#line 281 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return FALSE;
#line 214 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	__vala_GgitOId_free0 (_data_->oid);
#line 214 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (_data_->msg);
#line 214 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->index);
#line 214 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->notification);
#line 214 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (_data_->theirs_name);
#line 214 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (_data_->ours_name);
#line 214 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->theirs);
#line 214 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data_->ours);
#line 214 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (_data_->_state_ == 0) {
#line 214 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_simple_async_result_complete_in_idle (_data_->_async_result);
#line 3059 "gitg-ref-action-merge.c"
	} else {
#line 214 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_simple_async_result_complete (_data_->_async_result);
#line 3063 "gitg-ref-action-merge.c"
	}
#line 214 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_object_unref (_data_->_async_result);
#line 214 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return FALSE;
#line 3069 "gitg-ref-action-merge.c"
}


static void __lambda15_ (GitgRefActionMerge* self, GObject* obj, GAsyncResult* res) {
	GAsyncResult* _tmp0_ = NULL;
	GgitOId* _tmp1_ = NULL;
	GgitOId* _tmp2_ = NULL;
#line 286 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_return_if_fail (res != NULL);
#line 287 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = res;
#line 287 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp1_ = gitg_ref_action_merge_merge_finish (self, _tmp0_);
#line 287 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp2_ = _tmp1_;
#line 287 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	__vala_GgitOId_free0 (_tmp2_);
#line 3087 "gitg-ref-action-merge.c"
}


static void ___lambda15__gasync_ready_callback (GObject* source_object, GAsyncResult* res, gpointer self) {
#line 286 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	__lambda15_ ((GitgRefActionMerge*) self, source_object, res);
#line 286 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_object_unref (self);
#line 3096 "gitg-ref-action-merge.c"
}


void gitg_ref_action_merge_activate_source (GitgRefActionMerge* self, GitgRef* source) {
	GitgRef* _tmp0_ = NULL;
#line 284 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_return_if_fail (self != NULL);
#line 284 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_return_if_fail (source != NULL);
#line 286 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = source;
#line 286 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_ref_action_merge_merge (self, _tmp0_, ___lambda15__gasync_ready_callback, g_object_ref (self));
#line 3110 "gitg-ref-action-merge.c"
}


static GitgRef* gitg_ref_action_merge_upstream_reference (GitgRefActionMerge* self) {
	GitgRef* result = NULL;
	GgitBranch* branch = NULL;
	GitgRef* _tmp0_ = NULL;
	GitgRef* _tmp1_ = NULL;
	GgitBranch* _tmp2_ = NULL;
	GgitBranch* _tmp3_ = NULL;
	GError * _inner_error_ = NULL;
#line 291 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_return_val_if_fail (self != NULL, NULL);
#line 293 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 293 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp1_ = _tmp0_;
#line 293 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp2_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_TYPE (_tmp1_, ggit_branch_get_type ()) ? ((GgitBranch*) _tmp1_) : NULL);
#line 293 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	branch = _tmp2_;
#line 295 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp3_ = branch;
#line 295 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (_tmp3_ != NULL) {
#line 3136 "gitg-ref-action-merge.c"
		{
			GgitRef* _tmp4_ = NULL;
			GgitBranch* _tmp5_ = NULL;
			GgitRef* _tmp6_ = NULL;
			GgitRef* _tmp7_ = NULL;
			GitgRef* _tmp8_ = NULL;
#line 299 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp5_ = branch;
#line 299 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp6_ = ggit_branch_get_upstream (_tmp5_, &_inner_error_);
#line 299 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp4_ = _tmp6_;
#line 299 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3151 "gitg-ref-action-merge.c"
				goto __catch33_g_error;
			}
#line 299 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp7_ = _tmp4_;
#line 299 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp4_ = NULL;
#line 299 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp8_ = G_TYPE_CHECK_INSTANCE_TYPE (_tmp7_, GITG_TYPE_REF) ? ((GitgRef*) _tmp7_) : NULL;
#line 299 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			if (_tmp8_ == NULL) {
#line 299 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_g_object_unref0 (_tmp7_);
#line 3164 "gitg-ref-action-merge.c"
			}
#line 299 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			result = _tmp8_;
#line 299 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_g_object_unref0 (_tmp4_);
#line 299 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_g_object_unref0 (branch);
#line 299 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			return result;
#line 3174 "gitg-ref-action-merge.c"
		}
		goto __finally33;
		__catch33_g_error:
		{
#line 297 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			g_clear_error (&_inner_error_);
#line 297 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_inner_error_ = NULL;
#line 3183 "gitg-ref-action-merge.c"
		}
		__finally33:
#line 297 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 297 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_g_object_unref0 (branch);
#line 297 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.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 297 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			g_clear_error (&_inner_error_);
#line 297 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			return NULL;
#line 3196 "gitg-ref-action-merge.c"
		}
	}
#line 303 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	result = NULL;
#line 303 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (branch);
#line 303 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return result;
#line 3205 "gitg-ref-action-merge.c"
}


static Block24Data* block24_data_ref (Block24Data* _data24_) {
#line 306 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_atomic_int_inc (&_data24_->_ref_count_);
#line 306 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return _data24_;
#line 3214 "gitg-ref-action-merge.c"
}


static void block24_data_unref (void * _userdata_) {
	Block24Data* _data24_;
	_data24_ = (Block24Data*) _userdata_;
#line 306 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (g_atomic_int_dec_and_test (&_data24_->_ref_count_)) {
#line 3223 "gitg-ref-action-merge.c"
		GitgRefActionMerge* self;
#line 306 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		self = _data24_->self;
#line 306 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_data24_->source);
#line 306 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (self);
#line 306 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_slice_free (Block24Data, _data24_);
#line 3233 "gitg-ref-action-merge.c"
	}
}


static void __lambda16_ (Block24Data* _data24_) {
	GitgRefActionMerge* self;
	GitgRef* _tmp0_ = NULL;
#line 322 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self = _data24_->self;
#line 323 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = _data24_->source;
#line 323 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_ref_action_merge_activate_source (self, _tmp0_);
#line 3247 "gitg-ref-action-merge.c"
}


static void ___lambda16__gtk_menu_item_activate (GtkMenuItem* _sender, gpointer self) {
#line 322 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	__lambda16_ (self);
#line 3254 "gitg-ref-action-merge.c"
}


static void gitg_ref_action_merge_add_merge_source (GitgRefActionMerge* self, GtkMenu* submenu, GitgRef* source) {
	Block24Data* _data24_;
	GitgRef* _tmp0_ = NULL;
	GitgRef* _tmp1_ = NULL;
	GitgRef* _tmp2_ = NULL;
	gchar* name = NULL;
	GitgRef* _tmp7_ = NULL;
	GitgParsedRefName* _tmp8_ = NULL;
	GitgParsedRefName* _tmp9_ = NULL;
	GitgParsedRefName* _tmp10_ = NULL;
	gchar* _tmp11_ = NULL;
	gchar* _tmp12_ = NULL;
	gchar* _tmp13_ = NULL;
	GtkMenuItem* item = NULL;
	const gchar* _tmp14_ = NULL;
	GtkMenuItem* _tmp15_ = NULL;
	GtkMenuItem* _tmp16_ = NULL;
	GtkMenuItem* _tmp17_ = NULL;
	const gchar* _tmp18_ = NULL;
	const gchar* _tmp19_ = NULL;
	const gchar* _tmp20_ = NULL;
	gchar* _tmp21_ = NULL;
	gchar* _tmp22_ = NULL;
	GitgRef* _tmp23_ = NULL;
	GitgRef* _tmp24_ = NULL;
	GitgParsedRefName* _tmp25_ = NULL;
	GitgParsedRefName* _tmp26_ = NULL;
	GitgParsedRefName* _tmp27_ = NULL;
	gchar* _tmp28_ = NULL;
	gchar* _tmp29_ = NULL;
	gchar* _tmp30_ = NULL;
	const gchar* _tmp31_ = NULL;
	gchar* _tmp32_ = NULL;
	gchar* _tmp33_ = NULL;
	gchar* _tmp34_ = NULL;
	gchar* _tmp35_ = NULL;
	GtkMenuItem* _tmp36_ = NULL;
	GtkMenu* _tmp37_ = NULL;
	GtkMenuItem* _tmp38_ = NULL;
#line 306 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_return_if_fail (self != NULL);
#line 306 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_return_if_fail (submenu != NULL);
#line 306 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data24_ = g_slice_new0 (Block24Data);
#line 306 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data24_->_ref_count_ = 1;
#line 306 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data24_->self = g_object_ref (self);
#line 306 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = source;
#line 306 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 306 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_data24_->source);
#line 306 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data24_->source = _tmp1_;
#line 308 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp2_ = _data24_->source;
#line 308 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (_tmp2_ == NULL) {
#line 3319 "gitg-ref-action-merge.c"
		GtkSeparatorMenuItem* sep = NULL;
		GtkSeparatorMenuItem* _tmp3_ = NULL;
		GtkSeparatorMenuItem* _tmp4_ = NULL;
		GtkMenu* _tmp5_ = NULL;
		GtkSeparatorMenuItem* _tmp6_ = NULL;
#line 310 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp3_ = (GtkSeparatorMenuItem*) gtk_separator_menu_item_new ();
#line 310 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_object_ref_sink (_tmp3_);
#line 310 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		sep = _tmp3_;
#line 311 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp4_ = sep;
#line 311 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		gtk_widget_show ((GtkWidget*) _tmp4_);
#line 312 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp5_ = submenu;
#line 312 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp6_ = sep;
#line 312 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		gtk_menu_shell_append ((GtkMenuShell*) _tmp5_, (GtkWidget*) ((GtkMenuItem*) _tmp6_));
#line 313 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (sep);
#line 313 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		block24_data_unref (_data24_);
#line 313 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_data24_ = NULL;
#line 313 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		return;
#line 3349 "gitg-ref-action-merge.c"
	}
#line 316 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp7_ = _data24_->source;
#line 316 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp8_ = gitg_ref_get_parsed_name (_tmp7_);
#line 316 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp9_ = _tmp8_;
#line 316 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp10_ = _tmp9_;
#line 316 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp11_ = gitg_parsed_ref_name_get_shortname (_tmp10_);
#line 316 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp12_ = _tmp11_;
#line 316 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp13_ = _tmp12_;
#line 316 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_tmp10_);
#line 316 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	name = _tmp13_;
#line 317 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp14_ = name;
#line 317 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp15_ = (GtkMenuItem*) gtk_menu_item_new_with_label (_tmp14_);
#line 317 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_object_ref_sink (_tmp15_);
#line 317 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	item = _tmp15_;
#line 319 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp16_ = item;
#line 319 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gtk_widget_show ((GtkWidget*) _tmp16_);
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp17_ = item;
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp18_ = _ ("Merge %s into branch %s");
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp19_ = name;
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp20_ = string_to_string (_tmp19_);
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp21_ = g_strconcat ("'", _tmp20_, "'", NULL);
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp22_ = _tmp21_;
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp23_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp24_ = _tmp23_;
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp25_ = gitg_ref_get_parsed_name (_tmp24_);
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp26_ = _tmp25_;
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp27_ = _tmp26_;
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp28_ = gitg_parsed_ref_name_get_shortname (_tmp27_);
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp29_ = _tmp28_;
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp30_ = _tmp29_;
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp31_ = string_to_string (_tmp30_);
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp32_ = g_strconcat ("'", _tmp31_, "'", NULL);
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp33_ = _tmp32_;
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp34_ = g_strdup_printf (_tmp18_, _tmp22_, _tmp33_);
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp35_ = _tmp34_;
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp17_, _tmp35_);
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (_tmp35_);
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (_tmp33_);
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (_tmp30_);
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_tmp27_);
#line 320 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (_tmp22_);
#line 322 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp36_ = item;
#line 322 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_signal_connect_data (_tmp36_, "activate", (GCallback) ___lambda16__gtk_menu_item_activate, block24_data_ref (_data24_), (GClosureNotify) block24_data_unref, 0);
#line 326 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp37_ = submenu;
#line 326 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp38_ = item;
#line 326 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gtk_menu_shell_append ((GtkMenuShell*) _tmp37_, (GtkWidget*) _tmp38_);
#line 306 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (item);
#line 306 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (name);
#line 306 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	block24_data_unref (_data24_);
#line 306 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_data24_ = NULL;
#line 3449 "gitg-ref-action-merge.c"
}


static void _vala_array_add12 (GitgRef*** array, int* length, int* size, GitgRef* value) {
#line 385 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if ((*length) == (*size)) {
#line 385 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 385 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		*array = g_renew (GitgRef*, *array, (*size) + 1);
#line 3460 "gitg-ref-action-merge.c"
	}
#line 385 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	(*array)[(*length)++] = value;
#line 385 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	(*array)[*length] = NULL;
#line 3466 "gitg-ref-action-merge.c"
}


static void _vala_array_add13 (GitgRef*** array, int* length, int* size, GitgRef* value) {
#line 389 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if ((*length) == (*size)) {
#line 389 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 389 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		*array = g_renew (GitgRef*, *array, (*size) + 1);
#line 3477 "gitg-ref-action-merge.c"
	}
#line 389 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	(*array)[(*length)++] = value;
#line 389 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	(*array)[*length] = NULL;
#line 3483 "gitg-ref-action-merge.c"
}


static void _vala_array_add14 (GitgRefActionMergeRemoteSource** array, int* length, int* size, const GitgRefActionMergeRemoteSource* value) {
#line 402 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if ((*length) == (*size)) {
#line 402 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 402 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		*array = g_renew (GitgRefActionMergeRemoteSource, *array, *size);
#line 3494 "gitg-ref-action-merge.c"
	}
#line 402 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	(*array)[(*length)++] = *value;
#line 3498 "gitg-ref-action-merge.c"
}


static void _vala_array_add15 (GitgRef*** array, int* length, int* size, GitgRef* value) {
#line 406 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if ((*length) == (*size)) {
#line 406 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		*size = (*size) ? (2 * (*size)) : 4;
#line 406 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		*array = g_renew (GitgRef*, *array, (*size) + 1);
#line 3509 "gitg-ref-action-merge.c"
	}
#line 406 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	(*array)[(*length)++] = value;
#line 406 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	(*array)[*length] = NULL;
#line 3515 "gitg-ref-action-merge.c"
}


static void gitg_ref_action_merge_ensure_sources (GitgRefActionMerge* self) {
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
	GitgRef* _tmp3_ = NULL;
	GitgRef** _tmp4_ = NULL;
	GitgRefActionMergeRemoteSource* _tmp5_ = NULL;
	GitgRef** _tmp6_ = NULL;
	GgitOId* target_oid = NULL;
	gchar* last_remote = NULL;
	GError * _inner_error_ = NULL;
#line 329 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_return_if_fail (self != NULL);
#line 331 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = self->priv->d_has_sourced;
#line 331 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (_tmp0_) {
#line 333 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		return;
#line 3538 "gitg-ref-action-merge.c"
	}
#line 336 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self->priv->d_has_sourced = TRUE;
#line 338 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp1_ = gitg_ext_ui_element_get_available ((GitgExtUIElement*) self);
#line 338 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp2_ = _tmp1_;
#line 338 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (!_tmp2_) {
#line 340 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		return;
#line 3550 "gitg-ref-action-merge.c"
	}
#line 345 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp3_ = gitg_ref_action_merge_upstream_reference (self);
#line 345 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (self->priv->d_upstream);
#line 345 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self->priv->d_upstream = _tmp3_;
#line 347 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp4_ = g_new0 (GitgRef*, 0 + 1);
#line 347 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self->priv->d_local_sources = (_vala_array_free (self->priv->d_local_sources, self->priv->d_local_sources_length1, (GDestroyNotify) g_object_unref), NULL);
#line 347 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self->priv->d_local_sources = _tmp4_;
#line 347 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self->priv->d_local_sources_length1 = 0;
#line 347 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self->priv->_d_local_sources_size_ = self->priv->d_local_sources_length1;
#line 348 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp5_ = g_new0 (GitgRefActionMergeRemoteSource, 0);
#line 348 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self->priv->d_remote_sources = (_vala_GitgRefActionMergeRemoteSource_array_free (self->priv->d_remote_sources, self->priv->d_remote_sources_length1), NULL);
#line 348 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self->priv->d_remote_sources = _tmp5_;
#line 348 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self->priv->d_remote_sources_length1 = 0;
#line 348 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self->priv->_d_remote_sources_size_ = self->priv->d_remote_sources_length1;
#line 349 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp6_ = g_new0 (GitgRef*, 0 + 1);
#line 349 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self->priv->d_tag_sources = (_vala_array_free (self->priv->d_tag_sources, self->priv->d_tag_sources_length1, (GDestroyNotify) g_object_unref), NULL);
#line 349 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self->priv->d_tag_sources = _tmp6_;
#line 349 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self->priv->d_tag_sources_length1 = 0;
#line 349 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self->priv->_d_tag_sources_size_ = self->priv->d_tag_sources_length1;
#line 351 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	target_oid = NULL;
#line 3590 "gitg-ref-action-merge.c"
	{
		GgitRef* _tmp7_ = NULL;
		GitgRef* _tmp8_ = NULL;
		GitgRef* _tmp9_ = NULL;
		GgitRef* _tmp10_ = NULL;
		GgitRef* _tmp11_ = NULL;
		GgitRef* _tmp12_ = NULL;
		GgitOId* _tmp13_ = NULL;
#line 355 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp8_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 355 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp9_ = _tmp8_;
#line 355 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp10_ = ggit_ref_resolve ((GgitRef*) _tmp9_, &_inner_error_);
#line 355 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp7_ = _tmp10_;
#line 355 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3609 "gitg-ref-action-merge.c"
			goto __catch34_g_error;
		}
#line 355 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp11_ = _tmp7_;
#line 355 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp7_ = NULL;
#line 355 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp12_ = _tmp11_;
#line 355 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp13_ = ggit_ref_get_target (_tmp12_);
#line 355 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		__vala_GgitOId_free0 (target_oid);
#line 355 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		target_oid = _tmp13_;
#line 355 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_tmp12_);
#line 353 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_tmp7_);
#line 3628 "gitg-ref-action-merge.c"
	}
	goto __finally34;
	__catch34_g_error:
	{
#line 353 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_clear_error (&_inner_error_);
#line 353 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_inner_error_ = NULL;
#line 3637 "gitg-ref-action-merge.c"
	}
	__finally34:
#line 353 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 353 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		__vala_GgitOId_free0 (target_oid);
#line 353 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.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 353 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_clear_error (&_inner_error_);
#line 353 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		return;
#line 3650 "gitg-ref-action-merge.c"
	}
#line 358 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	last_remote = NULL;
#line 3654 "gitg-ref-action-merge.c"
	{
		GeeList* _r_list = NULL;
		GitgExtRefActionInterface* _tmp14_ = NULL;
		GitgExtRefActionInterface* _tmp15_ = NULL;
		GeeList* _tmp16_ = NULL;
		GeeList* _tmp17_ = NULL;
		gint _r_size = 0;
		GeeList* _tmp18_ = NULL;
		gint _tmp19_ = 0;
		gint _tmp20_ = 0;
		gint _r_index = 0;
#line 360 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp14_ = gitg_ext_ref_action_get_action_interface ((GitgExtRefAction*) self);
#line 360 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp15_ = _tmp14_;
#line 360 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp16_ = gitg_ext_ref_action_interface_get_references (_tmp15_);
#line 360 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp17_ = _tmp16_;
#line 360 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_r_list = _tmp17_;
#line 360 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp18_ = _r_list;
#line 360 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp19_ = gee_collection_get_size ((GeeCollection*) _tmp18_);
#line 360 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp20_ = _tmp19_;
#line 360 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_r_size = _tmp20_;
#line 360 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_r_index = -1;
#line 360 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		while (TRUE) {
#line 3688 "gitg-ref-action-merge.c"
			gint _tmp21_ = 0;
			gint _tmp22_ = 0;
			gint _tmp23_ = 0;
			GitgRef* r = NULL;
			GeeList* _tmp24_ = NULL;
			gint _tmp25_ = 0;
			gpointer _tmp26_ = NULL;
			gboolean _tmp27_ = FALSE;
			GitgRef* _tmp28_ = NULL;
			GgitOId* _tmp33_ = NULL;
			GitgRef* _tmp45_ = NULL;
			gboolean _tmp46_ = FALSE;
#line 360 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp21_ = _r_index;
#line 360 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_r_index = _tmp21_ + 1;
#line 360 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp22_ = _r_index;
#line 360 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp23_ = _r_size;
#line 360 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			if (!(_tmp22_ < _tmp23_)) {
#line 360 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				break;
#line 3713 "gitg-ref-action-merge.c"
			}
#line 360 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp24_ = _r_list;
#line 360 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp25_ = _r_index;
#line 360 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp26_ = gee_list_get (_tmp24_, _tmp25_);
#line 360 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			r = (GitgRef*) _tmp26_;
#line 362 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp28_ = self->priv->d_upstream;
#line 362 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			if (_tmp28_ != NULL) {
#line 3727 "gitg-ref-action-merge.c"
				GitgRef* _tmp29_ = NULL;
				const gchar* _tmp30_ = NULL;
				GitgRef* _tmp31_ = NULL;
				const gchar* _tmp32_ = NULL;
#line 362 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp29_ = r;
#line 362 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp30_ = ggit_ref_get_name ((GgitRef*) _tmp29_);
#line 362 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp31_ = self->priv->d_upstream;
#line 362 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp32_ = ggit_ref_get_name ((GgitRef*) _tmp31_);
#line 362 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp27_ = g_strcmp0 (_tmp30_, _tmp32_) == 0;
#line 3742 "gitg-ref-action-merge.c"
			} else {
#line 362 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp27_ = FALSE;
#line 3746 "gitg-ref-action-merge.c"
			}
#line 362 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			if (_tmp27_) {
#line 364 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_g_object_unref0 (r);
#line 364 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				continue;
#line 3754 "gitg-ref-action-merge.c"
			}
#line 368 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp33_ = target_oid;
#line 368 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			if (_tmp33_ != NULL) {
#line 3760 "gitg-ref-action-merge.c"
				GgitOId* oid = NULL;
				gboolean _tmp40_ = FALSE;
				GgitOId* _tmp41_ = NULL;
#line 370 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				oid = NULL;
#line 3766 "gitg-ref-action-merge.c"
				{
					GgitRef* _tmp34_ = NULL;
					GitgRef* _tmp35_ = NULL;
					GgitRef* _tmp36_ = NULL;
					GgitRef* _tmp37_ = NULL;
					GgitRef* _tmp38_ = NULL;
					GgitOId* _tmp39_ = NULL;
#line 374 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp35_ = r;
#line 374 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp36_ = ggit_ref_resolve ((GgitRef*) _tmp35_, &_inner_error_);
#line 374 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp34_ = _tmp36_;
#line 374 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 3782 "gitg-ref-action-merge.c"
						goto __catch35_g_error;
					}
#line 374 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp37_ = _tmp34_;
#line 374 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp34_ = NULL;
#line 374 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp38_ = _tmp37_;
#line 374 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp39_ = ggit_ref_get_target (_tmp38_);
#line 374 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					__vala_GgitOId_free0 (oid);
#line 374 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					oid = _tmp39_;
#line 374 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_g_object_unref0 (_tmp38_);
#line 372 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_g_object_unref0 (_tmp34_);
#line 3801 "gitg-ref-action-merge.c"
				}
				goto __finally35;
				__catch35_g_error:
				{
#line 372 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					g_clear_error (&_inner_error_);
#line 372 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_inner_error_ = NULL;
#line 3810 "gitg-ref-action-merge.c"
				}
				__finally35:
#line 372 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				if (G_UNLIKELY (_inner_error_ != NULL)) {
#line 372 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					__vala_GgitOId_free0 (oid);
#line 372 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_g_object_unref0 (r);
#line 372 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_g_object_unref0 (_r_list);
#line 372 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_g_free0 (last_remote);
#line 372 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					__vala_GgitOId_free0 (target_oid);
#line 372 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.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 372 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					g_clear_error (&_inner_error_);
#line 372 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					return;
#line 3831 "gitg-ref-action-merge.c"
				}
#line 377 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp41_ = oid;
#line 377 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				if (_tmp41_ != NULL) {
#line 3837 "gitg-ref-action-merge.c"
					GgitOId* _tmp42_ = NULL;
					GgitOId* _tmp43_ = NULL;
					gboolean _tmp44_ = FALSE;
#line 377 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp42_ = oid;
#line 377 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp43_ = target_oid;
#line 377 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp44_ = ggit_oid_equal (_tmp42_, _tmp43_);
#line 377 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp40_ = _tmp44_;
#line 3849 "gitg-ref-action-merge.c"
				} else {
#line 377 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp40_ = FALSE;
#line 3853 "gitg-ref-action-merge.c"
				}
#line 377 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				if (_tmp40_) {
#line 379 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					__vala_GgitOId_free0 (oid);
#line 379 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_g_object_unref0 (r);
#line 379 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					continue;
#line 3863 "gitg-ref-action-merge.c"
				}
#line 368 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				__vala_GgitOId_free0 (oid);
#line 3867 "gitg-ref-action-merge.c"
			}
#line 383 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp45_ = r;
#line 383 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp46_ = ggit_ref_is_branch ((GgitRef*) _tmp45_);
#line 383 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			if (_tmp46_) {
#line 3875 "gitg-ref-action-merge.c"
				GitgRef** _tmp47_ = NULL;
				gint _tmp47__length1 = 0;
				GitgRef* _tmp48_ = NULL;
				GitgRef* _tmp49_ = NULL;
#line 385 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp47_ = self->priv->d_local_sources;
#line 385 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp47__length1 = self->priv->d_local_sources_length1;
#line 385 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp48_ = r;
#line 385 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp49_ = _g_object_ref0 (_tmp48_);
#line 385 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_vala_array_add12 (&self->priv->d_local_sources, &self->priv->d_local_sources_length1, &self->priv->_d_local_sources_size_, _tmp49_);
#line 3890 "gitg-ref-action-merge.c"
			} else {
				GitgRef* _tmp50_ = NULL;
				gboolean _tmp51_ = FALSE;
#line 387 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp50_ = r;
#line 387 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp51_ = ggit_ref_is_tag ((GgitRef*) _tmp50_);
#line 387 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				if (_tmp51_) {
#line 3900 "gitg-ref-action-merge.c"
					GitgRef** _tmp52_ = NULL;
					gint _tmp52__length1 = 0;
					GitgRef* _tmp53_ = NULL;
					GitgRef* _tmp54_ = NULL;
#line 389 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp52_ = self->priv->d_tag_sources;
#line 389 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp52__length1 = self->priv->d_tag_sources_length1;
#line 389 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp53_ = r;
#line 389 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp54_ = _g_object_ref0 (_tmp53_);
#line 389 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_vala_array_add13 (&self->priv->d_tag_sources, &self->priv->d_tag_sources_length1, &self->priv->_d_tag_sources_size_, _tmp54_);
#line 3915 "gitg-ref-action-merge.c"
				} else {
					GitgRef* _tmp55_ = NULL;
					GitgParsedRefName* _tmp56_ = NULL;
					GitgParsedRefName* _tmp57_ = NULL;
					GitgParsedRefName* _tmp58_ = NULL;
					GitgRefType _tmp59_ = 0;
					GitgRefType _tmp60_ = 0;
					gboolean _tmp61_ = FALSE;
#line 391 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp55_ = r;
#line 391 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp56_ = gitg_ref_get_parsed_name (_tmp55_);
#line 391 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp57_ = _tmp56_;
#line 391 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp58_ = _tmp57_;
#line 391 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp59_ = gitg_parsed_ref_name_get_rtype (_tmp58_);
#line 391 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp60_ = _tmp59_;
#line 391 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp61_ = _tmp60_ == GITG_REF_TYPE_REMOTE;
#line 391 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_g_object_unref0 (_tmp58_);
#line 391 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					if (_tmp61_) {
#line 3942 "gitg-ref-action-merge.c"
						gchar* remote_name = NULL;
						GitgRef* _tmp62_ = NULL;
						GitgParsedRefName* _tmp63_ = NULL;
						GitgParsedRefName* _tmp64_ = NULL;
						GitgParsedRefName* _tmp65_ = NULL;
						gchar* _tmp66_ = NULL;
						gchar* _tmp67_ = NULL;
						gchar* _tmp68_ = NULL;
						const gchar* _tmp69_ = NULL;
						const gchar* _tmp70_ = NULL;
						const gchar* _tmp87_ = NULL;
						gchar* _tmp88_ = NULL;
#line 393 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp62_ = r;
#line 393 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp63_ = gitg_ref_get_parsed_name (_tmp62_);
#line 393 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp64_ = _tmp63_;
#line 393 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp65_ = _tmp64_;
#line 393 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp66_ = gitg_parsed_ref_name_get_remote_name (_tmp65_);
#line 393 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp67_ = _tmp66_;
#line 393 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp68_ = _tmp67_;
#line 393 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_g_object_unref0 (_tmp65_);
#line 393 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						remote_name = _tmp68_;
#line 395 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp69_ = remote_name;
#line 395 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp70_ = last_remote;
#line 395 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						if (g_strcmp0 (_tmp69_, _tmp70_) != 0) {
#line 3979 "gitg-ref-action-merge.c"
							GitgRefActionMergeRemoteSource source = {0};
							const gchar* _tmp71_ = NULL;
							gchar* _tmp72_ = NULL;
							GitgRef* _tmp73_ = NULL;
							GitgRef* _tmp74_ = NULL;
							GitgRef** _tmp75_ = NULL;
							GitgRefActionMergeRemoteSource _tmp76_ = {0};
							GitgRefActionMergeRemoteSource* _tmp77_ = NULL;
							gint _tmp77__length1 = 0;
							GitgRefActionMergeRemoteSource _tmp78_ = {0};
							GitgRefActionMergeRemoteSource _tmp79_ = {0};
#line 397 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp71_ = remote_name;
#line 397 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp72_ = g_strdup (_tmp71_);
#line 397 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp73_ = r;
#line 397 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp74_ = _g_object_ref0 (_tmp73_);
#line 397 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp75_ = g_new0 (GitgRef*, 1 + 1);
#line 397 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp75_[0] = _tmp74_;
#line 397 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							memset (&_tmp76_, 0, sizeof (GitgRefActionMergeRemoteSource));
#line 397 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_g_free0 (_tmp76_.name);
#line 397 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp76_.name = _tmp72_;
#line 397 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp76_.sources = (_vala_array_free (_tmp76_.sources, _tmp76_.sources_length1, (GDestroyNotify) g_object_unref), NULL);
#line 397 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp76_.sources = _tmp75_;
#line 397 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp76_.sources_length1 = 1;
#line 397 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp76_._sources_size_ = _tmp76_.sources_length1;
#line 397 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							source = _tmp76_;
#line 402 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp77_ = self->priv->d_remote_sources;
#line 402 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp77__length1 = self->priv->d_remote_sources_length1;
#line 402 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp78_ = source;
#line 402 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							gitg_ref_action_merge_remote_source_copy (&_tmp78_, &_tmp79_);
#line 402 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_vala_array_add14 (&self->priv->d_remote_sources, &self->priv->d_remote_sources_length1, &self->priv->_d_remote_sources_size_, &_tmp79_);
#line 395 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							gitg_ref_action_merge_remote_source_destroy (&source);
#line 4031 "gitg-ref-action-merge.c"
						} else {
							GitgRefActionMergeRemoteSource* _tmp80_ = NULL;
							gint _tmp80__length1 = 0;
							GitgRefActionMergeRemoteSource* _tmp81_ = NULL;
							gint _tmp81__length1 = 0;
							GitgRefActionMergeRemoteSource* _tmp82_ = NULL;
							gint _tmp82__length1 = 0;
							GitgRefActionMergeRemoteSource* _tmp83_ = NULL;
							gint _tmp83__length1 = 0;
							GitgRef** _tmp84_ = NULL;
							gint _tmp84__length1 = 0;
							GitgRef* _tmp85_ = NULL;
							GitgRef* _tmp86_ = NULL;
#line 406 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp80_ = self->priv->d_remote_sources;
#line 406 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp80__length1 = self->priv->d_remote_sources_length1;
#line 406 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp81_ = self->priv->d_remote_sources;
#line 406 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp81__length1 = self->priv->d_remote_sources_length1;
#line 406 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp82_ = self->priv->d_remote_sources;
#line 406 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp82__length1 = self->priv->d_remote_sources_length1;
#line 406 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp83_ = self->priv->d_remote_sources;
#line 406 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp83__length1 = self->priv->d_remote_sources_length1;
#line 406 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp84_ = _tmp82_[_tmp83__length1 - 1].sources;
#line 406 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp84__length1 = _tmp82_[_tmp83__length1 - 1].sources_length1;
#line 406 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp85_ = r;
#line 406 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_tmp86_ = _g_object_ref0 (_tmp85_);
#line 406 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							_vala_array_add15 (&_tmp80_[_tmp81__length1 - 1].sources, &_tmp80_[_tmp81__length1 - 1].sources_length1, &_tmp80_[_tmp81__length1 - 1]._sources_size_, _tmp86_);
#line 4071 "gitg-ref-action-merge.c"
						}
#line 409 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp87_ = remote_name;
#line 409 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp88_ = g_strdup (_tmp87_);
#line 409 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_g_free0 (last_remote);
#line 409 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						last_remote = _tmp88_;
#line 391 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_g_free0 (remote_name);
#line 4083 "gitg-ref-action-merge.c"
					}
				}
			}
#line 360 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_g_object_unref0 (r);
#line 4089 "gitg-ref-action-merge.c"
		}
#line 360 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (_r_list);
#line 4093 "gitg-ref-action-merge.c"
	}
#line 329 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (last_remote);
#line 329 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	__vala_GgitOId_free0 (target_oid);
#line 4099 "gitg-ref-action-merge.c"
}


static void gitg_ref_action_merge_real_populate_menu (GitgExtAction* base, GtkMenu* menu) {
	GitgRefActionMerge * self;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	GtkMenuItem* item = NULL;
	gchar* _tmp2_ = NULL;
	gchar* _tmp3_ = NULL;
	gchar* _tmp4_ = NULL;
	GtkMenuItem* _tmp5_ = NULL;
	GtkMenuItem* _tmp6_ = NULL;
	GtkMenuItem* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
	gboolean _tmp11_ = FALSE;
	gboolean _tmp12_ = FALSE;
	GtkMenuItem* _tmp70_ = NULL;
	GtkMenu* _tmp71_ = NULL;
	GtkMenuItem* _tmp72_ = NULL;
#line 414 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self = (GitgRefActionMerge*) base;
#line 414 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_return_if_fail (menu != NULL);
#line 416 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = gitg_ext_ui_element_get_available ((GitgExtUIElement*) self);
#line 416 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp1_ = _tmp0_;
#line 416 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (!_tmp1_) {
#line 418 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		return;
#line 4134 "gitg-ref-action-merge.c"
	}
#line 421 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp2_ = gitg_ext_ui_element_get_display_name ((GitgExtUIElement*) self);
#line 421 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp3_ = _tmp2_;
#line 421 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp4_ = _tmp3_;
#line 421 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp5_ = (GtkMenuItem*) gtk_menu_item_new_with_label (_tmp4_);
#line 421 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_object_ref_sink (_tmp5_);
#line 421 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp6_ = _tmp5_;
#line 421 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (_tmp4_);
#line 421 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	item = _tmp6_;
#line 422 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp7_ = item;
#line 422 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp8_ = gitg_ext_ui_element_get_description ((GitgExtUIElement*) self);
#line 422 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp9_ = _tmp8_;
#line 422 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp10_ = _tmp9_;
#line 422 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gtk_widget_set_tooltip_text ((GtkWidget*) _tmp7_, _tmp10_);
#line 422 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (_tmp10_);
#line 424 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp11_ = gitg_ext_ui_element_get_enabled ((GitgExtUIElement*) self);
#line 424 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp12_ = _tmp11_;
#line 424 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (_tmp12_) {
#line 4170 "gitg-ref-action-merge.c"
		GtkMenu* submenu = NULL;
		GtkMenu* _tmp13_ = NULL;
		GtkMenu* _tmp14_ = NULL;
		GitgRef* _tmp15_ = NULL;
		GitgRef** _tmp18_ = NULL;
		gint _tmp18__length1 = 0;
		GitgRefActionMergeRemoteSource* _tmp25_ = NULL;
		gint _tmp25__length1 = 0;
		GitgRef** _tmp47_ = NULL;
		gint _tmp47__length1 = 0;
		GtkMenuItem* _tmp67_ = NULL;
		GtkMenu* _tmp68_ = NULL;
#line 426 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp13_ = (GtkMenu*) gtk_menu_new ();
#line 426 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_object_ref_sink (_tmp13_);
#line 426 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		submenu = _tmp13_;
#line 427 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp14_ = submenu;
#line 427 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		gtk_widget_show ((GtkWidget*) _tmp14_);
#line 429 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp15_ = self->priv->d_upstream;
#line 429 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (_tmp15_ != NULL) {
#line 4197 "gitg-ref-action-merge.c"
			GtkMenu* _tmp16_ = NULL;
			GitgRef* _tmp17_ = NULL;
#line 431 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp16_ = submenu;
#line 431 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp17_ = self->priv->d_upstream;
#line 431 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			gitg_ref_action_merge_add_merge_source (self, _tmp16_, _tmp17_);
#line 4206 "gitg-ref-action-merge.c"
		}
#line 434 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp18_ = self->priv->d_local_sources;
#line 434 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp18__length1 = self->priv->d_local_sources_length1;
#line 434 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (_tmp18__length1 != 0) {
#line 4214 "gitg-ref-action-merge.c"
			GitgRef* _tmp19_ = NULL;
			GitgRef** _tmp21_ = NULL;
			gint _tmp21__length1 = 0;
#line 436 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp19_ = self->priv->d_upstream;
#line 436 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			if (_tmp19_ != NULL) {
#line 4222 "gitg-ref-action-merge.c"
				GtkMenu* _tmp20_ = NULL;
#line 439 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp20_ = submenu;
#line 439 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				gitg_ref_action_merge_add_merge_source (self, _tmp20_, NULL);
#line 4228 "gitg-ref-action-merge.c"
			}
#line 442 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp21_ = self->priv->d_local_sources;
#line 442 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp21__length1 = self->priv->d_local_sources_length1;
#line 4234 "gitg-ref-action-merge.c"
			{
				GitgRef** source_collection = NULL;
				gint source_collection_length1 = 0;
				gint _source_collection_size_ = 0;
				gint source_it = 0;
#line 442 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				source_collection = _tmp21_;
#line 442 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				source_collection_length1 = _tmp21__length1;
#line 442 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				for (source_it = 0; source_it < _tmp21__length1; source_it = source_it + 1) {
#line 4246 "gitg-ref-action-merge.c"
					GitgRef* _tmp22_ = NULL;
					GitgRef* source = NULL;
#line 442 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp22_ = _g_object_ref0 (source_collection[source_it]);
#line 442 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					source = _tmp22_;
#line 4253 "gitg-ref-action-merge.c"
					{
						GtkMenu* _tmp23_ = NULL;
						GitgRef* _tmp24_ = NULL;
#line 444 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp23_ = submenu;
#line 444 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp24_ = source;
#line 444 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						gitg_ref_action_merge_add_merge_source (self, _tmp23_, _tmp24_);
#line 442 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_g_object_unref0 (source);
#line 4265 "gitg-ref-action-merge.c"
					}
				}
			}
		}
#line 448 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp25_ = self->priv->d_remote_sources;
#line 448 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp25__length1 = self->priv->d_remote_sources_length1;
#line 448 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (_tmp25__length1 != 0) {
#line 4276 "gitg-ref-action-merge.c"
			gboolean _tmp26_ = FALSE;
			GitgRef** _tmp27_ = NULL;
			gint _tmp27__length1 = 0;
			GitgRefActionMergeRemoteSource* _tmp30_ = NULL;
			gint _tmp30__length1 = 0;
#line 450 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp27_ = self->priv->d_local_sources;
#line 450 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp27__length1 = self->priv->d_local_sources_length1;
#line 450 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			if (_tmp27__length1 != 0) {
#line 450 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp26_ = TRUE;
#line 4290 "gitg-ref-action-merge.c"
			} else {
				GitgRef* _tmp28_ = NULL;
#line 450 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp28_ = self->priv->d_upstream;
#line 450 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp26_ = _tmp28_ != NULL;
#line 4297 "gitg-ref-action-merge.c"
			}
#line 450 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			if (_tmp26_) {
#line 4301 "gitg-ref-action-merge.c"
				GtkMenu* _tmp29_ = NULL;
#line 453 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp29_ = submenu;
#line 453 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				gitg_ref_action_merge_add_merge_source (self, _tmp29_, NULL);
#line 4307 "gitg-ref-action-merge.c"
			}
#line 456 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp30_ = self->priv->d_remote_sources;
#line 456 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp30__length1 = self->priv->d_remote_sources_length1;
#line 4313 "gitg-ref-action-merge.c"
			{
				GitgRefActionMergeRemoteSource* remote_collection = NULL;
				gint remote_collection_length1 = 0;
				gint _remote_collection_size_ = 0;
				gint remote_it = 0;
#line 456 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				remote_collection = _tmp30_;
#line 456 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				remote_collection_length1 = _tmp30__length1;
#line 456 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				for (remote_it = 0; remote_it < _tmp30__length1; remote_it = remote_it + 1) {
#line 4325 "gitg-ref-action-merge.c"
					GitgRefActionMergeRemoteSource _tmp31_ = {0};
					GitgRefActionMergeRemoteSource remote = {0};
#line 456 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					gitg_ref_action_merge_remote_source_copy (&remote_collection[remote_it], &_tmp31_);
#line 456 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					remote = _tmp31_;
#line 4332 "gitg-ref-action-merge.c"
					{
						GtkMenuItem* subitem = NULL;
						GitgRefActionMergeRemoteSource _tmp32_ = {0};
						const gchar* _tmp33_ = NULL;
						GtkMenuItem* _tmp34_ = NULL;
						GtkMenuItem* _tmp35_ = NULL;
						GtkMenu* subsubmenu = NULL;
						GtkMenu* _tmp36_ = NULL;
						GtkMenu* _tmp37_ = NULL;
						GitgRefActionMergeRemoteSource _tmp38_ = {0};
						GitgRef** _tmp39_ = NULL;
						gint _tmp39__length1 = 0;
						GtkMenuItem* _tmp43_ = NULL;
						GtkMenu* _tmp44_ = NULL;
						GtkMenu* _tmp45_ = NULL;
						GtkMenuItem* _tmp46_ = NULL;
#line 458 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp32_ = remote;
#line 458 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp33_ = _tmp32_.name;
#line 458 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp34_ = (GtkMenuItem*) gtk_menu_item_new_with_label (_tmp33_);
#line 458 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						g_object_ref_sink (_tmp34_);
#line 458 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						subitem = _tmp34_;
#line 459 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp35_ = subitem;
#line 459 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						gtk_widget_show ((GtkWidget*) _tmp35_);
#line 461 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp36_ = (GtkMenu*) gtk_menu_new ();
#line 461 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						g_object_ref_sink (_tmp36_);
#line 461 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						subsubmenu = _tmp36_;
#line 462 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp37_ = subsubmenu;
#line 462 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						gtk_widget_show ((GtkWidget*) _tmp37_);
#line 464 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp38_ = remote;
#line 464 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp39_ = _tmp38_.sources;
#line 464 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp39__length1 = _tmp38_.sources_length1;
#line 4379 "gitg-ref-action-merge.c"
						{
							GitgRef** source_collection = NULL;
							gint source_collection_length1 = 0;
							gint _source_collection_size_ = 0;
							gint source_it = 0;
#line 464 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							source_collection = _tmp39_;
#line 464 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							source_collection_length1 = _tmp39__length1;
#line 464 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
							for (source_it = 0; source_it < _tmp39__length1; source_it = source_it + 1) {
#line 4391 "gitg-ref-action-merge.c"
								GitgRef* _tmp40_ = NULL;
								GitgRef* source = NULL;
#line 464 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
								_tmp40_ = _g_object_ref0 (source_collection[source_it]);
#line 464 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
								source = _tmp40_;
#line 4398 "gitg-ref-action-merge.c"
								{
									GtkMenu* _tmp41_ = NULL;
									GitgRef* _tmp42_ = NULL;
#line 466 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
									_tmp41_ = subsubmenu;
#line 466 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
									_tmp42_ = source;
#line 466 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
									gitg_ref_action_merge_add_merge_source (self, _tmp41_, _tmp42_);
#line 464 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
									_g_object_unref0 (source);
#line 4410 "gitg-ref-action-merge.c"
								}
							}
						}
#line 469 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp43_ = subitem;
#line 469 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp44_ = subsubmenu;
#line 469 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						gtk_menu_item_set_submenu (_tmp43_, _tmp44_);
#line 470 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp45_ = submenu;
#line 470 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp46_ = subitem;
#line 470 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						gtk_menu_shell_append ((GtkMenuShell*) _tmp45_, (GtkWidget*) _tmp46_);
#line 456 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_g_object_unref0 (subsubmenu);
#line 456 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_g_object_unref0 (subitem);
#line 456 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						gitg_ref_action_merge_remote_source_destroy (&remote);
#line 4432 "gitg-ref-action-merge.c"
					}
				}
			}
		}
#line 474 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp47_ = self->priv->d_tag_sources;
#line 474 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp47__length1 = self->priv->d_tag_sources_length1;
#line 474 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		if (_tmp47__length1 != 0) {
#line 4443 "gitg-ref-action-merge.c"
			gboolean _tmp48_ = FALSE;
			gboolean _tmp49_ = FALSE;
			GitgRefActionMergeRemoteSource* _tmp50_ = NULL;
			gint _tmp50__length1 = 0;
			GtkMenuItem* subitem = NULL;
			const gchar* _tmp54_ = NULL;
			GtkMenuItem* _tmp55_ = NULL;
			GtkMenuItem* _tmp56_ = NULL;
			GtkMenu* subsubmenu = NULL;
			GtkMenu* _tmp57_ = NULL;
			GtkMenu* _tmp58_ = NULL;
			GitgRef** _tmp59_ = NULL;
			gint _tmp59__length1 = 0;
			GtkMenuItem* _tmp63_ = NULL;
			GtkMenu* _tmp64_ = NULL;
			GtkMenu* _tmp65_ = NULL;
			GtkMenuItem* _tmp66_ = NULL;
#line 476 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp50_ = self->priv->d_remote_sources;
#line 476 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp50__length1 = self->priv->d_remote_sources_length1;
#line 476 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			if (_tmp50__length1 != 0) {
#line 476 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp49_ = TRUE;
#line 4469 "gitg-ref-action-merge.c"
			} else {
				GitgRef** _tmp51_ = NULL;
				gint _tmp51__length1 = 0;
#line 476 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp51_ = self->priv->d_local_sources;
#line 476 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp51__length1 = self->priv->d_local_sources_length1;
#line 476 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp49_ = _tmp51__length1 != 0;
#line 4479 "gitg-ref-action-merge.c"
			}
#line 476 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			if (_tmp49_) {
#line 476 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp48_ = TRUE;
#line 4485 "gitg-ref-action-merge.c"
			} else {
				GitgRef* _tmp52_ = NULL;
#line 476 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp52_ = self->priv->d_upstream;
#line 476 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp48_ = _tmp52_ != NULL;
#line 4492 "gitg-ref-action-merge.c"
			}
#line 476 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			if (_tmp48_) {
#line 4496 "gitg-ref-action-merge.c"
				GtkMenu* _tmp53_ = NULL;
#line 479 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				_tmp53_ = submenu;
#line 479 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				gitg_ref_action_merge_add_merge_source (self, _tmp53_, NULL);
#line 4502 "gitg-ref-action-merge.c"
			}
#line 482 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp54_ = _ ("Tags");
#line 482 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp55_ = (GtkMenuItem*) gtk_menu_item_new_with_label (_tmp54_);
#line 482 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			g_object_ref_sink (_tmp55_);
#line 482 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			subitem = _tmp55_;
#line 483 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp56_ = subitem;
#line 483 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			gtk_widget_show ((GtkWidget*) _tmp56_);
#line 485 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp57_ = (GtkMenu*) gtk_menu_new ();
#line 485 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			g_object_ref_sink (_tmp57_);
#line 485 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			subsubmenu = _tmp57_;
#line 486 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp58_ = subsubmenu;
#line 486 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			gtk_widget_show ((GtkWidget*) _tmp58_);
#line 488 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp59_ = self->priv->d_tag_sources;
#line 488 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp59__length1 = self->priv->d_tag_sources_length1;
#line 4530 "gitg-ref-action-merge.c"
			{
				GitgRef** source_collection = NULL;
				gint source_collection_length1 = 0;
				gint _source_collection_size_ = 0;
				gint source_it = 0;
#line 488 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				source_collection = _tmp59_;
#line 488 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				source_collection_length1 = _tmp59__length1;
#line 488 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
				for (source_it = 0; source_it < _tmp59__length1; source_it = source_it + 1) {
#line 4542 "gitg-ref-action-merge.c"
					GitgRef* _tmp60_ = NULL;
					GitgRef* source = NULL;
#line 488 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					_tmp60_ = _g_object_ref0 (source_collection[source_it]);
#line 488 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
					source = _tmp60_;
#line 4549 "gitg-ref-action-merge.c"
					{
						GtkMenu* _tmp61_ = NULL;
						GitgRef* _tmp62_ = NULL;
#line 490 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp61_ = subsubmenu;
#line 490 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_tmp62_ = source;
#line 490 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						gitg_ref_action_merge_add_merge_source (self, _tmp61_, _tmp62_);
#line 488 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
						_g_object_unref0 (source);
#line 4561 "gitg-ref-action-merge.c"
					}
				}
			}
#line 493 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp63_ = subitem;
#line 493 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp64_ = subsubmenu;
#line 493 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			gtk_menu_item_set_submenu (_tmp63_, _tmp64_);
#line 494 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp65_ = submenu;
#line 494 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_tmp66_ = subitem;
#line 494 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			gtk_menu_shell_append ((GtkMenuShell*) _tmp65_, (GtkWidget*) _tmp66_);
#line 474 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_g_object_unref0 (subsubmenu);
#line 474 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
			_g_object_unref0 (subitem);
#line 4581 "gitg-ref-action-merge.c"
		}
#line 497 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp67_ = item;
#line 497 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp68_ = submenu;
#line 497 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		gtk_menu_item_set_submenu (_tmp67_, _tmp68_);
#line 424 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_g_object_unref0 (submenu);
#line 4591 "gitg-ref-action-merge.c"
	} else {
		GtkMenuItem* _tmp69_ = NULL;
#line 501 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp69_ = item;
#line 501 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		gtk_widget_set_sensitive ((GtkWidget*) _tmp69_, FALSE);
#line 4598 "gitg-ref-action-merge.c"
	}
#line 504 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp70_ = item;
#line 504 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gtk_widget_show ((GtkWidget*) _tmp70_);
#line 505 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp71_ = menu;
#line 505 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp72_ = item;
#line 505 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gtk_menu_shell_append ((GtkMenuShell*) _tmp71_, (GtkWidget*) _tmp72_);
#line 414 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (item);
#line 4612 "gitg-ref-action-merge.c"
}


static GitgExtApplication* gitg_ref_action_merge_real_get_application (GitgExtUIElement* base) {
	GitgExtApplication* result;
	GitgRefActionMerge* self;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
#line 28 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self = (GitgRefActionMerge*) base;
#line 28 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = self->priv->_application;
#line 28 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 28 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	result = _tmp1_;
#line 28 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return result;
#line 4631 "gitg-ref-action-merge.c"
}


static void gitg_ref_action_merge_real_set_application (GitgExtUIElement* base, GitgExtApplication* value) {
	GitgRefActionMerge* self;
	GitgExtApplication* _tmp0_ = NULL;
	GitgExtApplication* _tmp1_ = NULL;
#line 28 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self = (GitgRefActionMerge*) base;
#line 28 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = value;
#line 28 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 28 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (self->priv->_application);
#line 28 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self->priv->_application = _tmp1_;
#line 28 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_object_notify ((GObject *) self, "application");
#line 4651 "gitg-ref-action-merge.c"
}


static GitgExtRefActionInterface* gitg_ref_action_merge_real_get_action_interface (GitgExtRefAction* base) {
	GitgExtRefActionInterface* result;
	GitgRefActionMerge* self;
	GitgExtRefActionInterface* _tmp0_ = NULL;
#line 29 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self = (GitgRefActionMerge*) base;
#line 29 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = self->priv->_action_interface;
#line 29 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	result = _tmp0_;
#line 29 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return result;
#line 4667 "gitg-ref-action-merge.c"
}


static void gitg_ref_action_merge_real_set_action_interface (GitgExtRefAction* base, GitgExtRefActionInterface* value) {
	GitgRefActionMerge* self;
	GitgExtRefActionInterface* _tmp0_ = NULL;
	GitgExtRefActionInterface* _tmp1_ = NULL;
#line 29 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self = (GitgRefActionMerge*) base;
#line 29 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = value;
#line 29 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 29 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (self->priv->_action_interface);
#line 29 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self->priv->_action_interface = _tmp1_;
#line 29 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_object_notify ((GObject *) self, "action-interface");
#line 4687 "gitg-ref-action-merge.c"
}


static GitgRef* gitg_ref_action_merge_real_get_reference (GitgExtRefAction* base) {
	GitgRef* result;
	GitgRefActionMerge* self;
	GitgRef* _tmp0_ = NULL;
#line 30 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self = (GitgRefActionMerge*) base;
#line 30 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = self->priv->_reference;
#line 30 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	result = _tmp0_;
#line 30 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return result;
#line 4703 "gitg-ref-action-merge.c"
}


static void gitg_ref_action_merge_real_set_reference (GitgExtRefAction* base, GitgRef* value) {
	GitgRefActionMerge* self;
	GitgRef* _tmp0_ = NULL;
	GitgRef* _tmp1_ = NULL;
#line 30 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self = (GitgRefActionMerge*) base;
#line 30 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = value;
#line 30 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp1_ = _g_object_ref0 (_tmp0_);
#line 30 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (self->priv->_reference);
#line 30 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self->priv->_reference = _tmp1_;
#line 30 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_object_notify ((GObject *) self, "reference");
#line 4723 "gitg-ref-action-merge.c"
}


static gchar* gitg_ref_action_merge_real_get_id (GitgExtUIElement* base) {
	gchar* result;
	GitgRefActionMerge* self;
	gchar* _tmp0_ = NULL;
#line 58 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self = (GitgRefActionMerge*) base;
#line 58 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = g_strdup ("/org/gnome/gitg/ref-actions/merge");
#line 58 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	result = _tmp0_;
#line 58 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return result;
#line 4739 "gitg-ref-action-merge.c"
}


static gchar* gitg_ref_action_merge_real_get_display_name (GitgExtUIElement* base) {
	gchar* result;
	GitgRefActionMerge* self;
	const gchar* _tmp0_ = NULL;
	GitgRef* _tmp1_ = NULL;
	GitgRef* _tmp2_ = NULL;
	GitgParsedRefName* _tmp3_ = NULL;
	GitgParsedRefName* _tmp4_ = NULL;
	GitgParsedRefName* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
#line 63 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self = (GitgRefActionMerge*) base;
#line 63 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = _ ("Merge into %s");
#line 63 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp1_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 63 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp2_ = _tmp1_;
#line 63 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp3_ = gitg_ref_get_parsed_name (_tmp2_);
#line 63 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp4_ = _tmp3_;
#line 63 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp5_ = _tmp4_;
#line 63 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp6_ = gitg_parsed_ref_name_get_shortname (_tmp5_);
#line 63 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp7_ = _tmp6_;
#line 63 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp8_ = _tmp7_;
#line 63 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp9_ = g_strdup_printf (_tmp0_, _tmp8_);
#line 63 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp10_ = _tmp9_;
#line 63 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (_tmp8_);
#line 63 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_tmp5_);
#line 63 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	result = _tmp10_;
#line 63 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return result;
#line 4789 "gitg-ref-action-merge.c"
}


static gchar* gitg_ref_action_merge_real_get_description (GitgExtUIElement* base) {
	gchar* result;
	GitgRefActionMerge* self;
	const gchar* _tmp0_ = NULL;
	GitgRef* _tmp1_ = NULL;
	GitgRef* _tmp2_ = NULL;
	GitgParsedRefName* _tmp3_ = NULL;
	GitgParsedRefName* _tmp4_ = NULL;
	GitgParsedRefName* _tmp5_ = NULL;
	gchar* _tmp6_ = NULL;
	gchar* _tmp7_ = NULL;
	gchar* _tmp8_ = NULL;
	gchar* _tmp9_ = NULL;
	gchar* _tmp10_ = NULL;
#line 69 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self = (GitgRefActionMerge*) base;
#line 69 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = _ ("Merge another branch into branch %s");
#line 69 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp1_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 69 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp2_ = _tmp1_;
#line 69 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp3_ = gitg_ref_get_parsed_name (_tmp2_);
#line 69 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp4_ = _tmp3_;
#line 69 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp5_ = _tmp4_;
#line 69 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp6_ = gitg_parsed_ref_name_get_shortname (_tmp5_);
#line 69 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp7_ = _tmp6_;
#line 69 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp8_ = _tmp7_;
#line 69 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp9_ = g_strdup_printf (_tmp0_, _tmp8_);
#line 69 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp10_ = _tmp9_;
#line 69 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 (_tmp8_);
#line 69 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (_tmp5_);
#line 69 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	result = _tmp10_;
#line 69 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return result;
#line 4839 "gitg-ref-action-merge.c"
}


static gboolean gitg_ref_action_merge_real_get_available (GitgExtUIElement* base) {
	gboolean result;
	GitgRefActionMerge* self;
	GitgRef* _tmp0_ = NULL;
	GitgRef* _tmp1_ = NULL;
	gboolean _tmp2_ = FALSE;
#line 74 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self = (GitgRefActionMerge*) base;
#line 76 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self);
#line 76 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp1_ = _tmp0_;
#line 76 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp2_ = ggit_ref_is_branch ((GgitRef*) _tmp1_);
#line 76 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	result = _tmp2_;
#line 76 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return result;
#line 4861 "gitg-ref-action-merge.c"
}


static gboolean gitg_ref_action_merge_real_get_enabled (GitgExtUIElement* base) {
	gboolean result;
	GitgRefActionMerge* self;
	gboolean _tmp0_ = FALSE;
	gboolean _tmp1_ = FALSE;
	gboolean _tmp2_ = FALSE;
	GitgRef* _tmp3_ = NULL;
#line 82 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self = (GitgRefActionMerge*) base;
#line 84 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_ref_action_merge_ensure_sources (self);
#line 86 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp3_ = self->priv->d_upstream;
#line 86 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (_tmp3_ != NULL) {
#line 86 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp2_ = TRUE;
#line 4882 "gitg-ref-action-merge.c"
	} else {
		GitgRef** _tmp4_ = NULL;
		gint _tmp4__length1 = 0;
#line 87 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp4_ = self->priv->d_local_sources;
#line 87 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp4__length1 = self->priv->d_local_sources_length1;
#line 87 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp2_ = _tmp4__length1 != 0;
#line 4892 "gitg-ref-action-merge.c"
	}
#line 86 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (_tmp2_) {
#line 86 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp1_ = TRUE;
#line 4898 "gitg-ref-action-merge.c"
	} else {
		GitgRefActionMergeRemoteSource* _tmp5_ = NULL;
		gint _tmp5__length1 = 0;
#line 88 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp5_ = self->priv->d_remote_sources;
#line 88 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp5__length1 = self->priv->d_remote_sources_length1;
#line 88 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp1_ = _tmp5__length1 != 0;
#line 4908 "gitg-ref-action-merge.c"
	}
#line 86 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	if (_tmp1_) {
#line 86 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp0_ = TRUE;
#line 4914 "gitg-ref-action-merge.c"
	} else {
		GitgRef** _tmp6_ = NULL;
		gint _tmp6__length1 = 0;
#line 89 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp6_ = self->priv->d_tag_sources;
#line 89 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp6__length1 = self->priv->d_tag_sources_length1;
#line 89 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp0_ = _tmp6__length1 != 0;
#line 4924 "gitg-ref-action-merge.c"
	}
#line 86 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	result = _tmp0_;
#line 86 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return result;
#line 4930 "gitg-ref-action-merge.c"
}


static GitgRef** _vala_array_dup1 (GitgRef** self, int length) {
	GitgRef** result;
	int i;
#line 32 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	result = g_new0 (GitgRef*, length + 1);
#line 32 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	for (i = 0; i < length; i++) {
#line 4941 "gitg-ref-action-merge.c"
		GitgRef* _tmp0_ = NULL;
#line 32 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		_tmp0_ = _g_object_ref0 (self[i]);
#line 32 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		result[i] = _tmp0_;
#line 4947 "gitg-ref-action-merge.c"
	}
#line 32 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return result;
#line 4951 "gitg-ref-action-merge.c"
}


static void gitg_ref_action_merge_remote_source_copy (const GitgRefActionMergeRemoteSource* self, GitgRefActionMergeRemoteSource* dest) {
	const gchar* _tmp0_ = NULL;
	gchar* _tmp1_ = NULL;
	GitgRef** _tmp2_ = NULL;
	gint _tmp2__length1 = 0;
	GitgRef** _tmp3_ = NULL;
	gint _tmp3__length1 = 0;
#line 32 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp0_ = (*self).name;
#line 32 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp1_ = g_strdup (_tmp0_);
#line 32 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 ((*dest).name);
#line 32 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	(*dest).name = _tmp1_;
#line 32 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp2_ = (*self).sources;
#line 32 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp2__length1 = (*self).sources_length1;
#line 32 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp3_ = (_tmp2_ != NULL) ? _vala_array_dup1 (_tmp2_, _tmp2__length1) : ((gpointer) _tmp2_);
#line 32 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_tmp3__length1 = _tmp2__length1;
#line 32 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	(*dest).sources = (_vala_array_free ((*dest).sources, (*dest).sources_length1, (GDestroyNotify) g_object_unref), NULL);
#line 32 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	(*dest).sources = _tmp3_;
#line 32 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	(*dest).sources_length1 = _tmp3__length1;
#line 32 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	(*dest)._sources_size_ = (*dest).sources_length1;
#line 4986 "gitg-ref-action-merge.c"
}


static void gitg_ref_action_merge_remote_source_destroy (GitgRefActionMergeRemoteSource* self) {
#line 34 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_free0 ((*self).name);
#line 35 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	(*self).sources = (_vala_array_free ((*self).sources, (*self).sources_length1, (GDestroyNotify) g_object_unref), NULL);
#line 4995 "gitg-ref-action-merge.c"
}


static GitgRefActionMergeRemoteSource* gitg_ref_action_merge_remote_source_dup (const GitgRefActionMergeRemoteSource* self) {
	GitgRefActionMergeRemoteSource* dup;
#line 32 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	dup = g_new0 (GitgRefActionMergeRemoteSource, 1);
#line 32 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_ref_action_merge_remote_source_copy (self, dup);
#line 32 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	return dup;
#line 5007 "gitg-ref-action-merge.c"
}


static void gitg_ref_action_merge_remote_source_free (GitgRefActionMergeRemoteSource* self) {
#line 32 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_ref_action_merge_remote_source_destroy (self);
#line 32 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_free (self);
#line 5016 "gitg-ref-action-merge.c"
}


static GType gitg_ref_action_merge_remote_source_get_type (void) {
	static volatile gsize gitg_ref_action_merge_remote_source_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_ref_action_merge_remote_source_type_id__volatile)) {
		GType gitg_ref_action_merge_remote_source_type_id;
		gitg_ref_action_merge_remote_source_type_id = g_boxed_type_register_static ("GitgRefActionMergeRemoteSource", (GBoxedCopyFunc) gitg_ref_action_merge_remote_source_dup, (GBoxedFreeFunc) gitg_ref_action_merge_remote_source_free);
		g_once_init_leave (&gitg_ref_action_merge_remote_source_type_id__volatile, gitg_ref_action_merge_remote_source_type_id);
	}
	return gitg_ref_action_merge_remote_source_type_id__volatile;
}


static void gitg_ref_action_merge_class_init (GitgRefActionMergeClass * klass) {
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_ref_action_merge_parent_class = g_type_class_peek_parent (klass);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_type_class_add_private (klass, sizeof (GitgRefActionMergePrivate));
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	G_OBJECT_CLASS (klass)->get_property = _vala_gitg_ref_action_merge_get_property;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	G_OBJECT_CLASS (klass)->set_property = _vala_gitg_ref_action_merge_set_property;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	G_OBJECT_CLASS (klass)->finalize = gitg_ref_action_merge_finalize;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_MERGE_APPLICATION, g_param_spec_object ("application", "application", "application", GITG_EXT_TYPE_APPLICATION, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_MERGE_ACTION_INTERFACE, g_param_spec_object ("action-interface", "action-interface", "action-interface", GITG_EXT_TYPE_REF_ACTION_INTERFACE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_MERGE_REFERENCE, g_param_spec_object ("reference", "reference", "reference", GITG_TYPE_REF, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT));
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_MERGE_ID, g_param_spec_string ("id", "id", "id", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_MERGE_DISPLAY_NAME, g_param_spec_string ("display-name", "display-name", "display-name", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_MERGE_DESCRIPTION, g_param_spec_string ("description", "description", "description", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_MERGE_AVAILABLE, g_param_spec_boolean ("available", "available", "available", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	g_object_class_install_property (G_OBJECT_CLASS (klass), GITG_REF_ACTION_MERGE_ENABLED, g_param_spec_boolean ("enabled", "enabled", "enabled", FALSE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
#line 5058 "gitg-ref-action-merge.c"
}


static void gitg_ref_action_merge_gitg_ext_ui_element_interface_init (GitgExtUIElementIface * iface) {
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_ref_action_merge_gitg_ext_ui_element_parent_iface = g_type_interface_peek_parent (iface);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	iface->get_application = gitg_ref_action_merge_real_get_application;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	iface->set_application = gitg_ref_action_merge_real_set_application;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	iface->get_id = gitg_ref_action_merge_real_get_id;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	iface->get_display_name = gitg_ref_action_merge_real_get_display_name;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	iface->get_description = gitg_ref_action_merge_real_get_description;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	iface->get_available = gitg_ref_action_merge_real_get_available;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	iface->get_enabled = gitg_ref_action_merge_real_get_enabled;
#line 5079 "gitg-ref-action-merge.c"
}


static void gitg_ref_action_merge_gitg_ext_action_interface_init (GitgExtActionIface * iface) {
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_ref_action_merge_gitg_ext_action_parent_iface = g_type_interface_peek_parent (iface);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	iface->populate_menu = (void (*)(GitgExtAction*, GtkMenu*)) gitg_ref_action_merge_real_populate_menu;
#line 5088 "gitg-ref-action-merge.c"
}


static void gitg_ref_action_merge_gitg_ext_ref_action_interface_init (GitgExtRefActionIface * iface) {
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	gitg_ref_action_merge_gitg_ext_ref_action_parent_iface = g_type_interface_peek_parent (iface);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	iface->get_action_interface = gitg_ref_action_merge_real_get_action_interface;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	iface->set_action_interface = gitg_ref_action_merge_real_set_action_interface;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	iface->get_reference = gitg_ref_action_merge_real_get_reference;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	iface->set_reference = gitg_ref_action_merge_real_set_reference;
#line 5103 "gitg-ref-action-merge.c"
}


static void gitg_ref_action_merge_instance_init (GitgRefActionMerge * self) {
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self->priv = GITG_REF_ACTION_MERGE_GET_PRIVATE (self);
#line 5110 "gitg-ref-action-merge.c"
}


static void gitg_ref_action_merge_finalize (GObject* obj) {
	GitgRefActionMerge * self;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self = G_TYPE_CHECK_INSTANCE_CAST (obj, GITG_TYPE_REF_ACTION_MERGE, GitgRefActionMerge);
#line 28 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (self->priv->_application);
#line 29 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (self->priv->_action_interface);
#line 30 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (self->priv->_reference);
#line 39 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (self->priv->d_upstream);
#line 40 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self->priv->d_local_sources = (_vala_array_free (self->priv->d_local_sources, self->priv->d_local_sources_length1, (GDestroyNotify) g_object_unref), NULL);
#line 41 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self->priv->d_remote_sources = (_vala_GitgRefActionMergeRemoteSource_array_free (self->priv->d_remote_sources, self->priv->d_remote_sources_length1), NULL);
#line 42 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	self->priv->d_tag_sources = (_vala_array_free (self->priv->d_tag_sources, self->priv->d_tag_sources_length1, (GDestroyNotify) g_object_unref), NULL);
#line 43 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	_g_object_unref0 (self->priv->d_support);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	G_OBJECT_CLASS (gitg_ref_action_merge_parent_class)->finalize (obj);
#line 5136 "gitg-ref-action-merge.c"
}


GType gitg_ref_action_merge_get_type (void) {
	static volatile gsize gitg_ref_action_merge_type_id__volatile = 0;
	if (g_once_init_enter (&gitg_ref_action_merge_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GitgRefActionMergeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) gitg_ref_action_merge_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (GitgRefActionMerge), 0, (GInstanceInitFunc) gitg_ref_action_merge_instance_init, NULL };
		static const GInterfaceInfo gitg_ext_ui_element_info = { (GInterfaceInitFunc) gitg_ref_action_merge_gitg_ext_ui_element_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		static const GInterfaceInfo gitg_ext_action_info = { (GInterfaceInitFunc) gitg_ref_action_merge_gitg_ext_action_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		static const GInterfaceInfo gitg_ext_ref_action_info = { (GInterfaceInitFunc) gitg_ref_action_merge_gitg_ext_ref_action_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
		GType gitg_ref_action_merge_type_id;
		gitg_ref_action_merge_type_id = g_type_register_static (G_TYPE_OBJECT, "GitgRefActionMerge", &g_define_type_info, 0);
		g_type_add_interface_static (gitg_ref_action_merge_type_id, GITG_EXT_TYPE_UI_ELEMENT, &gitg_ext_ui_element_info);
		g_type_add_interface_static (gitg_ref_action_merge_type_id, GITG_EXT_TYPE_ACTION, &gitg_ext_action_info);
		g_type_add_interface_static (gitg_ref_action_merge_type_id, GITG_EXT_TYPE_REF_ACTION, &gitg_ext_ref_action_info);
		g_once_init_leave (&gitg_ref_action_merge_type_id__volatile, gitg_ref_action_merge_type_id);
	}
	return gitg_ref_action_merge_type_id__volatile;
}


static void _vala_gitg_ref_action_merge_get_property (GObject * object, guint property_id, GValue * value, GParamSpec * pspec) {
	GitgRefActionMerge * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_REF_ACTION_MERGE, GitgRefActionMerge);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	switch (property_id) {
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		case GITG_REF_ACTION_MERGE_APPLICATION:
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_value_take_object (value, gitg_ext_ui_element_get_application ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		break;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		case GITG_REF_ACTION_MERGE_ACTION_INTERFACE:
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_value_set_object (value, gitg_ext_ref_action_get_action_interface ((GitgExtRefAction*) self));
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		break;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		case GITG_REF_ACTION_MERGE_REFERENCE:
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_value_set_object (value, gitg_ext_ref_action_get_reference ((GitgExtRefAction*) self));
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		break;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		case GITG_REF_ACTION_MERGE_ID:
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_id ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		break;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		case GITG_REF_ACTION_MERGE_DISPLAY_NAME:
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_display_name ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		break;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		case GITG_REF_ACTION_MERGE_DESCRIPTION:
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_value_take_string (value, gitg_ext_ui_element_get_description ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		break;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		case GITG_REF_ACTION_MERGE_AVAILABLE:
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_value_set_boolean (value, gitg_ext_ui_element_get_available ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		break;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		case GITG_REF_ACTION_MERGE_ENABLED:
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		g_value_set_boolean (value, gitg_ext_ui_element_get_enabled ((GitgExtUIElement*) self));
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		break;
#line 5211 "gitg-ref-action-merge.c"
		default:
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		break;
#line 5217 "gitg-ref-action-merge.c"
	}
}


static void _vala_gitg_ref_action_merge_set_property (GObject * object, guint property_id, const GValue * value, GParamSpec * pspec) {
	GitgRefActionMerge * self;
	self = G_TYPE_CHECK_INSTANCE_CAST (object, GITG_TYPE_REF_ACTION_MERGE, GitgRefActionMerge);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
	switch (property_id) {
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		case GITG_REF_ACTION_MERGE_APPLICATION:
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		gitg_ext_ui_element_set_application ((GitgExtUIElement*) self, g_value_get_object (value));
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		break;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		case GITG_REF_ACTION_MERGE_ACTION_INTERFACE:
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		gitg_ext_ref_action_set_action_interface ((GitgExtRefAction*) self, g_value_get_object (value));
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		break;
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		case GITG_REF_ACTION_MERGE_REFERENCE:
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		gitg_ext_ref_action_set_reference ((GitgExtRefAction*) self, g_value_get_object (value));
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		break;
#line 5245 "gitg-ref-action-merge.c"
		default:
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
#line 23 "/home/jesse/dev/gitg/tests/gitg/gitg-ref-action-merge.vala"
		break;
#line 5251 "gitg-ref-action-merge.c"
	}
}


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);
}



