summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3d89cb4)
raw | patch | inline | side by side (parent: 3d89cb4)
author | Junio C Hamano <junkio@cox.net> | |
Mon, 5 Sep 2005 08:13:36 +0000 (01:13 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 11 Sep 2005 01:27:42 +0000 (18:27 -0700) |
Signed-off-by: Junio C Hamano <junkio@cox.net>
read-tree.c | patch | blob | history |
diff --git a/read-tree.c b/read-tree.c
index 0241c9c6f55c2345d5604ddbb93baee53d11ea9a..fed2a3c544c0090d04175042fe5999d9c86bc1a9 100644 (file)
--- a/read-tree.c
+++ b/read-tree.c
return ret;
}
+#define DBRT_DEBUG 0
+
static int unpack_trees_rec(struct tree_entry_list **posns, int len,
const char *base, merge_fn_t fn, int *indpos)
{
}
}
+#if DBRT_DEBUG
if (first)
printf("index %s\n", first);
-
+#endif
for (i = 0; i < len; i++) {
if (!posns[i] || posns[i] == &df_conflict_list)
continue;
+#if DBRT_DEBUG
printf("%d %s\n", i + 1, posns[i]->name);
+#endif
if (!first || entcmp(first, firstdir,
posns[i]->name,
posns[i]->directory) > 0) {
if (merge) {
int ret;
+#if DBRT_DEBUG
printf("%s:\n", first);
for (i = 0; i < src_size; i++) {
printf(" %d ", i);
else
printf("\n");
}
-
+#endif
ret = fn(src);
+#if DBRT_DEBUG
printf("Added %d entries\n", ret);
-
+#endif
*indpos += ret;
} else {
for (i = 0; i < src_size; i++) {