Skip to content

Commit

Permalink
patch-id: take "commit" prefix as well as "diff-tree" prefix
Browse files Browse the repository at this point in the history
Some time ago we changed git-log in a massive way, and one consequence is
that the keyword changed. Adjust patch-id for that.

[jc: as Linus suggests, allowing both old and new prefix.]

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Johannes Schindelin authored and Junio C Hamano committed Jun 23, 2006
1 parent f60349a commit 8d3cbd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions patch-id.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ static void generate_id_list(void)

if (!memcmp(line, "diff-tree ", 10))
p += 10;
else if (!memcmp(line, "commit ", 7))
p += 7;

if (!get_sha1_hex(p, n)) {
flush_current_id(patchlen, sha1, &ctx);
Expand Down

0 comments on commit 8d3cbd2

Please sign in to comment.