X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=reflog-walk.c;h=4879615cad7527dc5346cd1a85bd56b9d11e052b;hb=7e7db5e4520388d3a6f1efbe2f7a29d43bd06a2b;hp=caba4f743f2dcc1cf7046cec294f242b2af19052;hpb=71f1d729b39ce5c92df6d623151f88bbb5d4c774;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; }