Skip to content

Commit

Permalink
combine-diff: add a bit more comments.
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Feb 3, 2006
1 parent 30d08b3 commit b469d8b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion combine-diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,23 @@ static struct combine_diff_path *intersect_paths(struct combine_diff_path *curr,
return curr;
}

/* Lines lost from parent */
struct lline {
struct lline *next;
int len;
unsigned long parent_map;
char line[FLEX_ARRAY];
};

/* Lines surviving in the merge result */
struct sline {
struct lline *lost_head, **lost_tail;
char *bol;
int len;
/* bit 0 up to (N-1) are on if the parent does _not_
* have this line (i.e. we changed it).
* bit N is used for "interesting" lines, including context.
*/
unsigned long flag;
};

Expand Down Expand Up @@ -242,7 +248,7 @@ static void combine_diff(const unsigned char *parent, const char *ourtmp,
continue;
}
if (!lost_bucket)
continue;
continue; /* not in any hunk yet */
switch (line[0]) {
case '-':
append_lost(lost_bucket, n, line+1);
Expand Down

0 comments on commit b469d8b

Please sign in to comment.