summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/file.c b/file.c
index 302989408..826f3eb51 100644
--- a/file.c
+++ b/file.c
@@ -356,6 +356,10 @@ static void parse_file_buffer(const char *filename, struct memblock *mem, char *
if (!mem->size || !mem->buffer)
return;
+ if (mem->size > 3 && !memcmp(mem->buffer, "git", 3)) {
+ git_load_dives(mem->buffer);
+ return;
+ }
parse_xml_buffer(filename, mem->buffer, mem->size, &dive_table, NULL, error);
}