login
Header Space

 
 

Re: [TESTCASE] Failing 'git am' when core.autocrlf=true

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
Cc: Junio C Hamano <junkio@...>, Git Mailing List <git@...>
Date: Thursday, August 23, 2007 - 4:11 pm

Linus Torvalds wrote:

Thanks for the detailed analysis of the chain of events. It
really helps understand the inner-workings of Git.

I also tried to track this down after your initial patch, but
couldn't find it. The fact that the index is smudged at the time of
the second commit, so the third failed, made me look in the wrong
place.

How about adding a trace for the smudged case, so it's easier to
find similar issues in the future?

--
=2Emarius


=46rom b858610ff4cd42f57a05c815a3e3b43428d67f99 Mon Sep 17 00:00:00 2001
From: Marius Storm-Olsen <mstormo_git@storm-olsen.com>
Date: Thu, 23 Aug 2007 22:03:35 +0200
Subject: [PATCH] Add a trace to more easily show that the index has been =
smudged.

Signed-off-by: Marius Storm-Olsen <mstormo_git@storm-olsen.com>
---
 read-cache.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/read-cache.c b/read-cache.c
index 849e8d6..000451c 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -1088,6 +1088,7 @@ static void ce_smudge_racily_clean_entry(struct cac=
he_entry *ce)
 		 * for "frotz" stays 6 which does not match the filesystem.
 		 */
 		ce->ce_size =3D htonl(0);
+		trace_printf("trace: index: Index object for '%s' smudged due to being=
 racily clean\n", ce->name);
 	}
 }
=20
--=20
1.5.3.rc4.mingw.2.3.g3318a-dirty
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[TESTCASE] Failing 'git am' when core.autocrlf=true, Marius Storm-Olsen, (Thu Aug 23, 10:07 am)
Re: [TESTCASE] Failing 'git am' when core.autocrlf=true, Linus Torvalds, (Thu Aug 23, 1:18 pm)
Re: [TESTCASE] Failing 'git am' when core.autocrlf=true, Linus Torvalds, (Thu Aug 23, 3:23 pm)
Re: [TESTCASE] Failing 'git am' when core.autocrlf=true, Marius Storm-Olsen, (Thu Aug 23, 4:11 pm)
Re: [TESTCASE] Failing 'git am' when core.autocrlf=true, Junio C Hamano, (Thu Aug 23, 3:44 pm)
Re: [TESTCASE] Failing 'git am' when core.autocrlf=true, Junio C Hamano, (Thu Aug 23, 2:41 pm)
Re: [TESTCASE] Failing 'git am' when core.autocrlf=true, Linus Torvalds, (Thu Aug 23, 3:25 pm)
Re: [TESTCASE] Failing 'git am' when core.autocrlf=true, Marius Storm-Olsen, (Thu Aug 23, 1:45 pm)
speck-geostationary