gitview: Remove trailing white space

Do the cleanup using Dave jones vim script

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Aneesh Kumar K.V
2006-02-27 22:42:07 +05:30
committed by Junio C Hamano
parent 68d55b83a5
commit c447f10f99

View File

@ -162,7 +162,7 @@ class CellRendererGraph(gtk.GenericCellRenderer):
for item in names: for item in names:
names_len += len(item) names_len += len(item)
width = box_size * (cols + 1 ) + names_len width = box_size * (cols + 1 ) + names_len
height = box_size height = box_size
# FIXME I have no idea how to use cell_area properly # FIXME I have no idea how to use cell_area properly
@ -261,11 +261,11 @@ class Commit:
children_sha1 = {} children_sha1 = {}
def __init__(self, commit_lines): def __init__(self, commit_lines):
self.message = "" self.message = ""
self.author = "" self.author = ""
self.date = "" self.date = ""
self.committer = "" self.committer = ""
self.commit_date = "" self.commit_date = ""
self.commit_sha1 = "" self.commit_sha1 = ""
self.parent_sha1 = [ ] self.parent_sha1 = [ ]
self.parse_commit(commit_lines) self.parse_commit(commit_lines)
@ -426,7 +426,7 @@ class GitView:
def __init__(self, with_diff=0): def __init__(self, with_diff=0):
self.with_diff = with_diff self.with_diff = with_diff
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL) self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
self.window.set_border_width(0) self.window.set_border_width(0)
self.window.set_title("Git repository browser") self.window.set_title("Git repository browser")
@ -878,15 +878,15 @@ class GitView:
# Reset nodepostion # Reset nodepostion
if (last_nodepos > 5): if (last_nodepos > 5):
last_nodepos = -1 last_nodepos = -1
# Add the incomplete lines of the last cell in this # Add the incomplete lines of the last cell in this
try: try:
colour = self.colours[commit.commit_sha1] colour = self.colours[commit.commit_sha1]
except KeyError: except KeyError:
self.colours[commit.commit_sha1] = last_colour+1 self.colours[commit.commit_sha1] = last_colour+1
last_colour = self.colours[commit.commit_sha1] last_colour = self.colours[commit.commit_sha1]
colour = self.colours[commit.commit_sha1] colour = self.colours[commit.commit_sha1]
try: try:
node_pos = self.nodepos[commit.commit_sha1] node_pos = self.nodepos[commit.commit_sha1]
@ -918,7 +918,7 @@ class GitView:
self.colours[parent_id] = last_colour+1 self.colours[parent_id] = last_colour+1
last_colour = self.colours[parent_id] last_colour = self.colours[parent_id]
self.nodepos[parent_id] = last_nodepos+1 self.nodepos[parent_id] = last_nodepos+1
last_nodepos = self.nodepos[parent_id] last_nodepos = self.nodepos[parent_id]
in_line.append((node_pos, self.nodepos[parent_id], in_line.append((node_pos, self.nodepos[parent_id],
self.colours[parent_id])) self.colours[parent_id]))
@ -954,7 +954,7 @@ class GitView:
try: try:
next_commit = self.commits[index+1] next_commit = self.commits[index+1]
if (next_commit.commit_sha1 == sha1 and pos != int(pos)): if (next_commit.commit_sha1 == sha1 and pos != int(pos)):
# join the line back to the node point # join the line back to the node point
# This need to be done only if we modified it # This need to be done only if we modified it
in_line.append((pos, pos-0.5, self.colours[sha1])) in_line.append((pos, pos-0.5, self.colours[sha1]))
continue; continue;