Skip to content

Commit

Permalink
Merge branch 'master' into next
Browse files Browse the repository at this point in the history
* master:
  fix warning from pack-objects.c
  Merge branches 'jc/rev-list' and 'jc/pack-thin'
  gitview: Fix the graph display .
  • Loading branch information
Junio C Hamano committed Feb 25, 2006
2 parents d55e0ff + 8fcf1ad commit ab57c8d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions contrib/gitview/gitview
Original file line number Diff line number Diff line change
Expand Up @@ -938,8 +938,10 @@ class GitView:
def draw_incomplete_line(self, sha1, node_pos, out_line, in_line, index):
for idx, pos in enumerate(self.incomplete_line[sha1]):
if(pos == node_pos):
out_line.append((pos,
pos+0.5, self.colours[sha1]))
#remove the straight line and add a slash
if ((pos, pos, self.colours[sha1]) in out_line):
out_line.remove((pos, pos, self.colours[sha1]))
out_line.append((pos, pos+0.5, self.colours[sha1]))
self.incomplete_line[sha1][idx] = pos = pos+0.5
try:
next_commit = self.commits[index+1]
Expand Down
2 changes: 1 addition & 1 deletion pack-objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static int reused_delta = 0;

static int pack_revindex_ix(struct packed_git *p)
{
unsigned int ui = (unsigned int) p;
unsigned long ui = (unsigned long)(long)p;
int i;

ui = ui ^ (ui >> 16); /* defeat structure alignment */
Expand Down

0 comments on commit ab57c8d

Please sign in to comment.