Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
revision.c: correct a parameter name
author
Nguyễn Thái Ngọc Duy
<pclouds@gmail.com>
Sun, 21 Oct 2018 08:08:55 +0000
(10:08 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 22 Oct 2018 04:32:29 +0000
(13:32 +0900)
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>
revision.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
3a3b9d8
)
diff --git
a/revision.c
b/revision.c
index e18bd530e4c50d0f5a1887714b074a6c2c63875b..63aae722c1ecb51987c2a4d76ff98ab79918029d 100644
(file)
--- a/
revision.c
+++ b/
revision.c
@@
-1277,13
+1277,14
@@
static int handle_one_reflog_ent(struct object_id *ooid, struct object_id *noid,
return 0;
}
return 0;
}
-static int handle_one_reflog(const char *path, const struct object_id *oid,
+static int handle_one_reflog(const char *refname,
+ const struct object_id *oid,
int flag, void *cb_data)
{
struct all_refs_cb *cb = cb_data;
cb->warned_bad_reflog = 0;
int flag, void *cb_data)
{
struct all_refs_cb *cb = cb_data;
cb->warned_bad_reflog = 0;
- cb->name_for_errormsg =
path
;
- refs_for_each_reflog_ent(cb->refs,
path
,
+ cb->name_for_errormsg =
refname
;
+ refs_for_each_reflog_ent(cb->refs,
refname
,
handle_one_reflog_ent, cb_data);
return 0;
}
handle_one_reflog_ent, cb_data);
return 0;
}