Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschu <schu-github@schulog.org>2011-06-14 17:16:43 +0400
committerschu <schu-github@schulog.org>2011-07-06 14:25:27 +0400
commit0ffcf78a30377971d4928439ae387396b3922cbf (patch)
tree45ffc20bdba3bb90dca8ea8c322ef20cd27fcd5f /src/refs.h
parent7ea50f6077d0da28a471e8de2dc32dcdc994c5c6 (diff)
reference_rename: git compliant reference renaming
So far libgit2 didn't handle the following scenarios: * Rename of reference m -> m/m * Rename of reference n/n -> n Fixed. Since we don't write reflogs, we have to delete any old reflog for the renamed reference. Otherwise git.git will possibly fail when it finds invalid logs. Reported-by: nulltoken <emeric.fermas@gmail.com> Signed-off-by: schu <schu-github@schulog.org>
Diffstat (limited to 'src/refs.h')
-rw-r--r--src/refs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/refs.h b/src/refs.h
index a0159b091..dfac455e0 100644
--- a/src/refs.h
+++ b/src/refs.h
@@ -11,6 +11,8 @@
#define GIT_REFS_TAGS_DIR GIT_REFS_DIR "tags/"
#define GIT_REFS_REMOTES_DIR GIT_REFS_DIR "remotes/"
+#define GIT_RENAMED_REF_FILE GIT_REFS_DIR "RENAMED-REF"
+
#define GIT_SYMREF "ref: "
#define GIT_PACKEDREFS_FILE "packed-refs"
#define GIT_PACKEDREFS_HEADER "# pack-refs with: peeled "