[PATCH 2/2] gitview: run blame with -M and -C

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Aneesh Kumar K.V
Date: Tuesday, June 12, 2007 - 10:35 am

From: Aneesh Kumar K.V <aneesh.kumar@gmail.com>

pass -M  and -C option to git-blame so that blame browsing
works when the data is copied over from other files.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com>
---
 contrib/gitview/gitview |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/gitview/gitview b/contrib/gitview/gitview
index 286e974..01128f4 100755
--- a/contrib/gitview/gitview
+++ b/contrib/gitview/gitview
@@ -530,7 +530,7 @@ class AnnotateWindow(object):
 
 		self.add_file_data(filename, commit_sha1, line_num)
 
-		fp = os.popen("git blame --incremental -- " + filename + " " + commit_sha1)
+		fp = os.popen("git blame --incremental -M -C -C -- " + filename + " " + commit_sha1)
 		flags = fcntl.fcntl(fp.fileno(), fcntl.F_GETFL)
 		fcntl.fcntl(fp.fileno(), fcntl.F_SETFL, flags | os.O_NONBLOCK)
 		self.io_watch_tag = gobject.io_add_watch(fp, gobject.IO_IN, self.data_ready)
-- 
1.5.2.1.239.g75d8-dirty

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 1/2] gitview: Fix the blame interface., Aneesh Kumar K.V, (Tue Jun 12, 10:35 am)
[PATCH 2/2] gitview: run blame with -M and -C, Aneesh Kumar K.V, (Tue Jun 12, 10:35 am)
Re: [PATCH 1/2] gitview: Fix the blame interface., Junio C Hamano, (Tue Jun 12, 9:58 pm)
Re: [PATCH 2/2] gitview: run blame with -M and -C, Junio C Hamano, (Tue Jun 12, 9:59 pm)
Re: [PATCH 1/2] gitview: Fix the blame interface., Aneesh Kumar, (Wed Jun 13, 1:33 am)