Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
entry_resolves_to_object(): rename function from ref_resolves_to_object()
author
Michael Haggerty
<mhagger@alum.mit.edu>
Sat, 18 Jun 2016 04:15:13 +0000
(06:15 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 20 Jun 2016 18:38:19 +0000
(11:38 -0700)
Free up the old name for a more general purpose.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/files-backend.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
2eed278
)
diff --git
a/refs/files-backend.c
b/refs/files-backend.c
index b563a7e8756fefb288f0bf02a8725c18cd7949ff..c24a78ea8ebdade20e5524ea8b1189ff3dfbca1a 100644
(file)
--- a/
refs/files-backend.c
+++ b/
refs/files-backend.c
@@
-517,7
+517,7
@@
static void sort_ref_dir(struct ref_dir *dir)
* an object in the database. Emit a warning if the referred-to
* object does not exist.
*/
* an object in the database. Emit a warning if the referred-to
* object does not exist.
*/
-static int
ref
_resolves_to_object(struct ref_entry *entry)
+static int
entry
_resolves_to_object(struct ref_entry *entry)
{
if (entry->flag & REF_ISBROKEN)
return 0;
{
if (entry->flag & REF_ISBROKEN)
return 0;
@@
-563,7
+563,7
@@
static int do_one_ref(struct ref_entry *entry, void *cb_data)
return 0;
if (!(data->flags & DO_FOR_EACH_INCLUDE_BROKEN) &&
return 0;
if (!(data->flags & DO_FOR_EACH_INCLUDE_BROKEN) &&
- !
ref
_resolves_to_object(entry))
+ !
entry
_resolves_to_object(entry))
return 0;
/* Store the old value, in case this is a recursive call: */
return 0;
/* Store the old value, in case this is a recursive call: */
@@
-2228,7
+2228,7
@@
static int pack_if_possible_fn(struct ref_entry *entry, void *cb_data)
return 0;
/* Do not pack symbolic or broken refs: */
return 0;
/* Do not pack symbolic or broken refs: */
- if ((entry->flag & REF_ISSYMREF) || !
ref
_resolves_to_object(entry))
+ if ((entry->flag & REF_ISSYMREF) || !
entry
_resolves_to_object(entry))
return 0;
/* Add a packed ref cache entry equivalent to the loose entry. */
return 0;
/* Add a packed ref cache entry equivalent to the loose entry. */