summaryrefslogtreecommitdiff
path: root/refs
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2016-04-07 15:03:04 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-04-10 11:35:31 -0700
commit89e82389655e3792bebad311d74541c3c0c6cc86 (patch)
treeabd81e9e75dcf7580ae8db8b45cca5df9ad9d4ee /refs
parentfiles-backend: inline resolve_ref_1() into resolve_ref_unsafe() (diff)
downloadtgif-89e82389655e3792bebad311d74541c3c0c6cc86.tar.xz
read_raw_ref(): change flags parameter to unsigned int
read_raw_ref() is going to be part of the vtable for reference backends, so clean up its interface to use "unsigned int flags" rather than "int flags". Its caller still uses signed int for its flags arguments. But changing that would touch a lot of code, so leave it for now. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: David Turner <dturner@twopensource.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs')
-rw-r--r--refs/files-backend.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/refs/files-backend.c b/refs/files-backend.c
index 120b2dddf8..a15986ccc2 100644
--- a/refs/files-backend.c
+++ b/refs/files-backend.c
@@ -1372,7 +1372,7 @@ static struct ref_entry *get_packed_ref(const char *refname)
*/
static int resolve_missing_loose_ref(const char *refname,
unsigned char *sha1,
- int *flags)
+ unsigned int *flags)
{
struct ref_entry *entry;
@@ -1421,7 +1421,7 @@ static int resolve_missing_loose_ref(const char *refname,
* refname will still be valid and unchanged.
*/
static int read_raw_ref(const char *refname, unsigned char *sha1,
- struct strbuf *symref, int *flags)
+ struct strbuf *symref, unsigned int *flags)
{
struct strbuf sb_contents = STRBUF_INIT;
struct strbuf sb_path = STRBUF_INIT;
@@ -1570,7 +1570,7 @@ const char *resolve_ref_unsafe(const char *refname, int resolve_flags,
}
for (symref_count = 0; symref_count < MAXDEPTH; symref_count++) {
- int read_flags = 0;
+ unsigned int read_flags = 0;
if (read_raw_ref(refname, sha1, &sb_refname, &read_flags)) {
*flags |= read_flags;