Skip to content

Commit c447f10

Browse files
kvaneeshJunio C Hamano
authored andcommitted
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>
1 parent 68d55b8 commit c447f10

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

contrib/gitview/gitview

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ class CellRendererGraph(gtk.GenericCellRenderer):
162162
for item in names:
163163
names_len += len(item)
164164

165-
width = box_size * (cols + 1 ) + names_len
165+
width = box_size * (cols + 1 ) + names_len
166166
height = box_size
167167

168168
# FIXME I have no idea how to use cell_area properly
@@ -261,11 +261,11 @@ class Commit:
261261
children_sha1 = {}
262262

263263
def __init__(self, commit_lines):
264-
self.message = ""
264+
self.message = ""
265265
self.author = ""
266-
self.date = ""
267-
self.committer = ""
268-
self.commit_date = ""
266+
self.date = ""
267+
self.committer = ""
268+
self.commit_date = ""
269269
self.commit_sha1 = ""
270270
self.parent_sha1 = [ ]
271271
self.parse_commit(commit_lines)
@@ -426,7 +426,7 @@ class GitView:
426426

427427
def __init__(self, with_diff=0):
428428
self.with_diff = with_diff
429-
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
429+
self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
430430
self.window.set_border_width(0)
431431
self.window.set_title("Git repository browser")
432432

@@ -878,15 +878,15 @@ class GitView:
878878

879879
# Reset nodepostion
880880
if (last_nodepos > 5):
881-
last_nodepos = -1
881+
last_nodepos = -1
882882

883883
# Add the incomplete lines of the last cell in this
884884
try:
885885
colour = self.colours[commit.commit_sha1]
886886
except KeyError:
887887
self.colours[commit.commit_sha1] = last_colour+1
888-
last_colour = self.colours[commit.commit_sha1]
889-
colour = self.colours[commit.commit_sha1]
888+
last_colour = self.colours[commit.commit_sha1]
889+
colour = self.colours[commit.commit_sha1]
890890

891891
try:
892892
node_pos = self.nodepos[commit.commit_sha1]
@@ -918,7 +918,7 @@ class GitView:
918918
self.colours[parent_id] = last_colour+1
919919
last_colour = self.colours[parent_id]
920920
self.nodepos[parent_id] = last_nodepos+1
921-
last_nodepos = self.nodepos[parent_id]
921+
last_nodepos = self.nodepos[parent_id]
922922

923923
in_line.append((node_pos, self.nodepos[parent_id],
924924
self.colours[parent_id]))
@@ -954,7 +954,7 @@ class GitView:
954954
try:
955955
next_commit = self.commits[index+1]
956956
if (next_commit.commit_sha1 == sha1 and pos != int(pos)):
957-
# join the line back to the node point
957+
# join the line back to the node point
958958
# This need to be done only if we modified it
959959
in_line.append((pos, pos-0.5, self.colours[sha1]))
960960
continue;

0 commit comments

Comments
 (0)