From 883d60fa97c6397450fb129634054e0a6101baac Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 8 Jan 2007 01:59:54 +0100 Subject: Sanitize for_each_reflog_ent() It used to ignore the return value of the helper function; now, it expects it to return 0, and stops iteration upon non-zero return values; this value is then passed on as the return value of for_each_reflog_ent(). Further, it makes no sense to force the parsing upon the helper functions; for_each_reflog_ent() now calls the helper function with old and new sha1, the email, the timestamp & timezone, and the message. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- reachable.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'reachable.c') diff --git a/reachable.c b/reachable.c index 4dfee1dbe..a6a334822 100644 --- a/reachable.c +++ b/reachable.c @@ -104,7 +104,9 @@ static void walk_commit_list(struct rev_info *revs) } } -static int add_one_reflog_ent(unsigned char *osha1, unsigned char *nsha1, char *datail, void *cb_data) +static int add_one_reflog_ent(unsigned char *osha1, unsigned char *nsha1, + const char *email, unsigned long timestamp, int tz, + const char *message, void *cb_data) { struct object *object; struct rev_info *revs = (struct rev_info *)cb_data; -- cgit v1.2.1