[gitg] Set *cached instead of comparing it if sign == 't'



commit 0e5ab4b0d6080de59e2f06f1f7da4864f3680e1c
Author: Stephen Shaw <sshaw decriptor com>
Date:   Mon May 4 17:05:24 2009 -0600

    Set *cached instead of comparing it if sign == 't'
---
 gitg/gitg-revision-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gitg/gitg-revision-view.c b/gitg/gitg-revision-view.c
index 7d03b32..70db031 100644
--- a/gitg/gitg-revision-view.c
+++ b/gitg/gitg-revision-view.c
@@ -541,7 +541,7 @@ on_diff_end_loading(GitgRunner *runner, gboolean cancelled, GitgRevisionView *se
 		const gchar *cached = NULL;
 		
 		if (sign == 't')
-			cached == "--cached";
+			cached = "--cached";
 
 		gitg_repository_run_commandv(self->priv->repository, self->priv->diff_files_runner, NULL,
 									"diff-index", "--raw", "-M", "--abbrev=40", head, cached, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]