Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
upload-pack.c: do not pass confusing cb_data to mark_our_ref()
author
Junio C Hamano
<gitster@pobox.com>
Tue, 17 Sep 2013 23:03:32 +0000
(16:03 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 18 Sep 2013 04:50:02 +0000
(21:50 -0700)
The callee does not use cb_data, and the caller is an intermediate
function in a callchain that later wants to use the cb_data for its
own use. Clarify the code by breaking the dataflow explicitly by
not passing cb_data down to mark_our_ref().
Signed-off-by: Junio C Hamano <gitster@pobox.com>
upload-pack.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
a4dfee0
)
diff --git
a/upload-pack.c
b/upload-pack.c
index 127e59a6037a14ad63648a727e873fe4a9e38381..a6e107f0b116858597c1a5a5019fc5d8a4b7bfde 100644
(file)
--- a/
upload-pack.c
+++ b/
upload-pack.c
@@
-742,7
+742,7
@@
static int send_ref(const char *refname, const unsigned char *sha1, int flag, vo
const char *refname_nons = strip_namespace(refname);
unsigned char peeled[20];
- if (mark_our_ref(refname, sha1, flag,
cb_data
))
+ if (mark_our_ref(refname, sha1, flag,
NULL
))
return 0;
if (capabilities)