Skip to content

Commit

Permalink
gitview: run blame with -C -C
Browse files Browse the repository at this point in the history
pass -C -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>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Aneesh Kumar K.V authored and Junio C Hamano committed Jun 13, 2007
1 parent 30a8448 commit 1be846f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/gitview/gitview
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,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 -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)
Expand Down

0 comments on commit 1be846f

Please sign in to comment.