From: Johannes Sixt Date: Thu, 12 Jun 2008 11:48:10 GMT Subject: git diff --cc bug Message-ID: <48510CFA.3060101@viscovery.net> While resolving a conflict, I noticed this output of 'git diff': @@@ -109,7 -130,8 +114,8 @@@ void CValuesView::UpdateValues... lvc.mask = LVCF_TEXT; lvc.pszText = const_cast(static_castShowPointerValues()) { - // invalidate values in the display - CPoint pt(m_x, m_y); // will be erased - InvalidateValues(); - FindFmtStrings(); - Update(pt.x, pt.y); - } - return 0; -} - void CValuesView::OnUpdate(CView* pSender, LPARAM lHint, ... { switch (lHint) { ++<<<<<<< HEAD:SomUI/ValuesWnd.cpp ++======= + case UPDATE_MONITORFRAME: + { (hunk truncated for exposition) Notice that there are no context lines at the beginning of the second hunk. I would not have expected this, and I think it's a bug in git diff. I don't feel like diving into the diff machinery, and would appreciate if someone could have a closer look. I have prepared a small repository to reproduce the behavior, but I don't want to post it to the public. -- Hannes