[gitg] Make sure to clear working ref before emitting LOAD signal
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: svn-commits-list gnome org
- Subject: [gitg] Make sure to clear working ref before emitting LOAD signal
- Date: Sun, 5 Jul 2009 18:54:58 +0000 (UTC)
commit d6bdead0b25d99d64968fcedbeafe2362e8d7efd
Author: Jesse van den Kieboom <jessevdk gnome org>
Date: Sun Jul 5 20:40:05 2009 +0200
Make sure to clear working ref before emitting LOAD signal
Since the window title is updated on repository 'load' it was reflecting the
old working ref when a checkout was changed
gitg/gitg-repository.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gitg/gitg-repository.c b/gitg/gitg-repository.c
index 7e12acc..3b7eafa 100644
--- a/gitg/gitg-repository.c
+++ b/gitg/gitg-repository.c
@@ -893,16 +893,16 @@ has_left_right(gchar const **av, int argc)
static gboolean
reload_revisions(GitgRepository *repository, GError **error)
{
- g_signal_emit(repository, repository_signals[LOAD], 0);
-
- repository->priv->load_stage = LOAD_STAGE_STASH;
-
if (repository->priv->working_ref)
{
gitg_ref_free (repository->priv->working_ref);
repository->priv->working_ref = NULL;
}
+ g_signal_emit(repository, repository_signals[LOAD], 0);
+
+ repository->priv->load_stage = LOAD_STAGE_STASH;
+
return gitg_repository_run_commandv(repository, repository->priv->loader, error, "log", "--pretty=format:%H\x01%an\x01%s\x01%at", "-g", "refs/stash", NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]