Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Print the real filename that we failed to open.
[gitweb.git]
/
refs.c
diff --git
a/refs.c
b/refs.c
index ae532540cf2592aee2be7610ac811082c3a9b6be..54ec98d153889f40313dba9a5ee8f07ddd0e160a 100644
(file)
--- a/
refs.c
+++ b/
refs.c
@@
-1433,3
+1433,11
@@
int update_ref(const char *action, const char *refname,
}
return 0;
}
+
+struct ref *find_ref_by_name(struct ref *list, const char *name)
+{
+ for ( ; list; list = list->next)
+ if (!strcmp(list->name, name))
+ return list;
+ return NULL;
+}