Code

branch -m/-M: remove undocumented RENAMED-REF
[git.git] / refs.h
diff --git a/refs.h b/refs.h
index cd1e1d620e6513cd1542d15763ccd5c07f108e48..ce73d5c7ae394c012f828536dd4df8b143819718 100644 (file)
--- a/refs.h
+++ b/refs.h
@@ -47,4 +47,7 @@ extern int read_ref_at(const char *ref, unsigned long at_time, int cnt, unsigned
 /** Returns 0 if target has the right format for a ref. **/
 extern int check_ref_format(const char *target);
 
+/** rename ref, return 0 on success **/
+extern int rename_ref(const char *oldref, const char *newref);
+
 #endif /* REFS_H */