diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-12-20 13:25:53 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-12-20 13:25:53 -0800 |
commit | 8d68493f20db71abeb77adc251b2a116fe45cdaa (patch) | |
tree | 5d3dbb7a24b9edbaf82850f4ab2b7d04dc8e4c5a /cache.h | |
parent | 184a541fb54fbb9d062f30ee47ae629af7f5784c (diff) | |
parent | dd73ecd1bc8903036d58cf7afb0010ef4aaf8695 (diff) | |
download | git-8d68493f20db71abeb77adc251b2a116fe45cdaa.tar.gz |
Merge branch 'mh/ref-api'
* mh/ref-api:
add_ref(): take a (struct ref_entry *) parameter
create_ref_entry(): extract function from add_ref()
repack_without_ref(): remove temporary
resolve_gitlink_ref_recursive(): change to work with struct ref_cache
Pass a (ref_cache *) to the resolve_gitlink_*() helper functions
resolve_gitlink_ref(): improve docstring
get_ref_dir(): change signature
refs: change signatures of get_packed_refs() and get_loose_refs()
is_dup_ref(): extract function from sort_ref_array()
add_ref(): add docstring
parse_ref_line(): add docstring
is_refname_available(): remove the "quiet" argument
clear_ref_array(): rename from free_ref_array()
refs: rename parameters result -> sha1
refs: rename "refname" variables
struct ref_entry: document name member
Conflicts:
cache.h
refs.c
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -833,9 +833,9 @@ static inline int get_sha1_with_context(const char *str, unsigned char *sha1, st extern int get_sha1_hex(const char *hex, unsigned char *sha1); extern char *sha1_to_hex(const unsigned char *sha1); /* static buffer result! */ -extern int read_ref_full(const char *filename, unsigned char *sha1, +extern int read_ref_full(const char *refname, unsigned char *sha1, int reading, int *flags); -extern int read_ref(const char *filename, unsigned char *sha1); +extern int read_ref(const char *refname, unsigned char *sha1); /* * Resolve a reference, recursively following symbolic refererences. |