]> asedeno.scripts.mit.edu Git - git.git/blobdiff - refs.c
Open external merge tool with original file extensions for all three files
[git.git] / refs.c
diff --git a/refs.c b/refs.c
index 6a04a667bbb84b13f895ea95f1fadc5e2cb1bb33..3e6e98c5eb20fc7a365d25b3abc275644b4c26f9 100644 (file)
--- a/refs.c
+++ b/refs.c
@@ -1464,3 +1464,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;
+}