Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
handle_one_reflog(): rewrite to take an object_id argument
author
Michael Haggerty
<mhagger@alum.mit.edu>
Mon, 25 May 2015 18:39:03 +0000
(18:39 +0000)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 25 May 2015 19:19:35 +0000
(12:19 -0700)
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
0053083
)
diff --git
a/revision.c
b/revision.c
index cfe3876ce832e85a28b21b5592f9c62b801525c9..1d903cf3115b46ab204a877924dded50e7122111 100644
(file)
--- a/
revision.c
+++ b/
revision.c
@@
-1293,7
+1293,8
@@
static int handle_one_reflog_ent(unsigned char *osha1, unsigned char *nsha1,
return 0;
}
return 0;
}
-static int handle_one_reflog(const char *path, const unsigned char *sha1, int flag, void *cb_data)
+static int handle_one_reflog(const char *path, const struct object_id *oid,
+ int flag, void *cb_data)
{
struct all_refs_cb *cb = cb_data;
cb->warned_bad_reflog = 0;
{
struct all_refs_cb *cb = cb_data;
cb->warned_bad_reflog = 0;
@@
-1305,12
+1306,10
@@
static int handle_one_reflog(const char *path, const unsigned char *sha1, int fl
void add_reflogs_to_pending(struct rev_info *revs, unsigned flags)
{
struct all_refs_cb cb;
void add_reflogs_to_pending(struct rev_info *revs, unsigned flags)
{
struct all_refs_cb cb;
- struct each_ref_fn_sha1_adapter wrapped_handle_one_reflog =
- {handle_one_reflog, &cb};
cb.all_revs = revs;
cb.all_flags = flags;
cb.all_revs = revs;
cb.all_flags = flags;
- for_each_reflog(
each_ref_fn_adapter, &wrapped_handle_one_reflog
);
+ for_each_reflog(
handle_one_reflog, &cb
);
}
static void add_cache_tree(struct cache_tree *it, struct rev_info *revs,
}
static void add_cache_tree(struct cache_tree *it, struct rev_info *revs,