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>
Aneesh Kumar K.V committed
Feb 27, 2006 at 22:42 UTC
c447f10f999a7d137aef62f76d765fbc7d24f48a
1 file changed
+11
-11
contrib/gitview/gitview
+11
-11
@@ -162,7 +162,7 @@ class CellRendererGraph(gtk.GenericCellRenderer):
162
for item in names:
163
names_len += len(item)
164
165
- width = box_size * (cols + 1 ) + names_len
165
+ width = box_size * (cols + 1 ) + names_len
166
height = box_size
167
168
# FIXME I have no idea how to use cell_area properly
@@ -261,11 +261,11 @@ class Commit:
261
children_sha1 = {}
262
263
def __init__(self, commit_lines):
264
- self.message = ""
264
+ self.message = ""
265
self.author = ""
266
- self.date = ""
267
- self.committer = ""
268
- self.commit_date = ""
266
+ self.date = ""
267
+ self.committer = ""
268
+ self.commit_date = ""
269
self.commit_sha1 = ""
270
self.parent_sha1 = [ ]
271
self.parse_commit(commit_lines)
@@ -426,7 +426,7 @@ class GitView:
426
427
def __init__(self, with_diff=0):
428
self.with_diff = with_diff
429
- self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
429
+ self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
430
self.window.set_border_width(0)
431
self.window.set_title("Git repository browser")
432
@@ -878,15 +878,15 @@ class GitView:
878
879
# Reset nodepostion
880
if (last_nodepos > 5):
881
- last_nodepos = -1
881
+ last_nodepos = -1
882
883
# Add the incomplete lines of the last cell in this
884
try:
885
colour = self.colours[commit.commit_sha1]
886
except KeyError:
887
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]
890
891
try:
892
node_pos = self.nodepos[commit.commit_sha1]
@@ -918,7 +918,7 @@ class GitView:
918
self.colours[parent_id] = last_colour+1
919
last_colour = self.colours[parent_id]
920
self.nodepos[parent_id] = last_nodepos+1
921
- last_nodepos = self.nodepos[parent_id]
921
+ last_nodepos = self.nodepos[parent_id]
922
923
in_line.append((node_pos, self.nodepos[parent_id],
924
self.colours[parent_id]))
@@ -954,7 +954,7 @@ class GitView:
954
try:
955
next_commit = self.commits[index+1]
956
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
958
# This need to be done only if we modified it
959
in_line.append((pos, pos-0.5, self.colours[sha1]))
960
continue;