[gitg] Fixed parsing diff from stash



commit 5a69cec94547ea7dd595d750d94f752eb5a87003
Author: Jesse van den Kieboom <jessevdk gnome org>
Date:   Sat May 29 13:19:03 2010 +0200

    Fixed parsing diff from stash

 gitg/gitg-diff-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gitg/gitg-diff-view.c b/gitg/gitg-diff-view.c
index db939ac..26f4d01 100644
--- a/gitg/gitg-diff-view.c
+++ b/gitg/gitg-diff-view.c
@@ -468,7 +468,7 @@ ensure_scan(GitgDiffView *view, guint last_line)
 
 		gchar *text = gtk_text_iter_get_text(&start, &end);
 
-		if (g_str_has_prefix(text, "@@ "))
+		if (g_str_has_prefix(text, "@@ ") || g_str_has_prefix (text, "@@@"))
 		{
 			/* start new hunk region */
 			Hunk *hunk = g_slice_new(Hunk);



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