revision.c: correct a parameter name

This function is a callback of for_each_reflog() which will pass a ref name as the first argument, not a path (to a reflog file). Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed Oct 21, 2018 at 10:08 UTC 061e420a4d3a87ea331eb51f2b92b6b97f3115da
1 file changed +4 -3
revision.c
+4 -3
@@ -1277,13 +1277,14 @@ static int handle_one_reflog_ent(struct object_id *ooid, struct object_id *noid,
1277 return 0;
1278 }
1279
1280 -static int handle_one_reflog(const char *path, const struct object_id *oid,
1280 +static int handle_one_reflog(const char *refname,
1281 + const struct object_id *oid,
1282 int flag, void *cb_data)
1283 {
1284 struct all_refs_cb *cb = cb_data;
1285 cb->warned_bad_reflog = 0;
1285 - cb->name_for_errormsg = path;
1286 - refs_for_each_reflog_ent(cb->refs, path,
1286 + cb->name_for_errormsg = refname;
1287 + refs_for_each_reflog_ent(cb->refs, refname,
1288 handle_one_reflog_ent, cb_data);
1289 return 0;
1290 }