summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 17e4642)
raw | patch | inline | side by side (parent: 17e4642)
author | Daniel Barkalow <barkalow@iabervon.org> | |
Thu, 7 Feb 2008 16:39:56 +0000 (11:39 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 10 Feb 2008 07:16:51 +0000 (23:16 -0800) |
This is to keep git-stash from getting confused if you're debugging
unpack-trees.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
unpack-trees.
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
unpack-trees.c | patch | blob | history |
diff --git a/unpack-trees.c b/unpack-trees.c
index 45f40c27755cbe20d1b1c07171b38a9b741bc157..f462a56ad26a05d88ac8e2eebf3587b862762e2e 100644 (file)
--- a/unpack-trees.c
+++ b/unpack-trees.c
#if DBRT_DEBUG > 1
if (first)
- printf("index %s\n", first);
+ fprintf(stderr, "index %s\n", first);
#endif
for (i = 0; i < len; i++) {
if (!posns[i] || posns[i] == df_conflict_list)
continue;
#if DBRT_DEBUG > 1
- printf("%d %s\n", i + 1, posns[i]->name);
+ fprintf(stderr, "%d %s\n", i + 1, posns[i]->name);
#endif
if (!first || entcmp(first, firstdir,
posns[i]->name,
int ret;
#if DBRT_DEBUG > 1
- printf("%s:\n", first);
+ fprintf(stderr, "%s:\n", first);
for (i = 0; i < src_size; i++) {
- printf(" %d ", i);
+ fprintf(stderr, " %d ", i);
if (src[i])
- printf("%s\n", sha1_to_hex(src[i]->sha1));
+ fprintf(stderr, "%06x %s\n", src[i]->ce_mode, sha1_to_hex(src[i]->sha1));
else
- printf("\n");
+ fprintf(stderr, "\n");
}
#endif
ret = o->fn(src, o, remove);
return ret;
#if DBRT_DEBUG > 1
- printf("Added %d entries\n", ret);
+ fprintf(stderr, "Added %d entries\n", ret);
#endif
o->pos += ret;
} else {