Merge branch 'master' into next
* master: fix warning from pack-objects.c Merge branches 'jc/rev-list' and 'jc/pack-thin' gitview: Fix the graph display .
This commit is contained in:
commit
ab57c8dd2a
@ -938,8 +938,10 @@ class GitView:
|
|||||||
def draw_incomplete_line(self, sha1, node_pos, out_line, in_line, index):
|
def draw_incomplete_line(self, sha1, node_pos, out_line, in_line, index):
|
||||||
for idx, pos in enumerate(self.incomplete_line[sha1]):
|
for idx, pos in enumerate(self.incomplete_line[sha1]):
|
||||||
if(pos == node_pos):
|
if(pos == node_pos):
|
||||||
out_line.append((pos,
|
#remove the straight line and add a slash
|
||||||
pos+0.5, self.colours[sha1]))
|
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
|
self.incomplete_line[sha1][idx] = pos = pos+0.5
|
||||||
try:
|
try:
|
||||||
next_commit = self.commits[index+1]
|
next_commit = self.commits[index+1]
|
||||||
|
@ -99,7 +99,7 @@ static int reused_delta = 0;
|
|||||||
|
|
||||||
static int pack_revindex_ix(struct packed_git *p)
|
static int pack_revindex_ix(struct packed_git *p)
|
||||||
{
|
{
|
||||||
unsigned int ui = (unsigned int) p;
|
unsigned long ui = (unsigned long)(long)p;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
ui = ui ^ (ui >> 16); /* defeat structure alignment */
|
ui = ui ^ (ui >> 16); /* defeat structure alignment */
|
||||||
|
Loading…
Reference in New Issue
Block a user