X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=reflog-walk.c;h=4879615cad7527dc5346cd1a85bd56b9d11e052b;hb=71ce42c0a6b3b4c75836cf074fcdf289633f41b4;hp=caba4f743f2dcc1cf7046cec294f242b2af19052;hpb=9e2b8857413127ae200735fa004bd445b2c8ca61;p=git.git diff --git a/reflog-walk.c b/reflog-walk.c index caba4f743..4879615ca 100644 --- a/reflog-walk.c +++ b/reflog-walk.c @@ -162,7 +162,7 @@ int add_reflog_for_walk(struct reflog_walk_info *info, } else recno = 0; - item = string_list_lookup(branch, &info->complete_reflogs); + item = string_list_lookup(&info->complete_reflogs, branch); if (item) reflogs = item->util; else { @@ -190,7 +190,7 @@ int add_reflog_for_walk(struct reflog_walk_info *info, } if (!reflogs || reflogs->nr == 0) return -1; - string_list_insert(branch, &info->complete_reflogs)->util + string_list_insert(&info->complete_reflogs, branch)->util = reflogs; }