From: Johannes Sixt <hidden> Date: 2016-06-15 22:43:19
Signed-off-by: Johannes Sixt <redacted>
---
git add seems to have a bug, where it doesn't remove stages 1,2,3
if a stage 0 entry is already in the index.
Here is a test (on top of maint) for the kind soul who wants to fix
this border case. Feel free to merge this patch into your patch
that provides the fix.
-- Hannes
t/t3700-add.sh | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
From: Johannes Sixt <hidden> Date: 2016-06-15 22:43:19
Signed-off-by: Johannes Sixt <redacted>
---
HMPF!
The test in the original post failed for the wrong reason. :-/
-- Hannes
t/t3700-add.sh | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
From: Johannes Schindelin <hidden> Date: 2016-06-15 22:43:19
Hi,
On Mon, 2 Jul 2007, Johannes Sixt wrote:
git add seems to have a bug, where it doesn't remove stages 1,2,3
if a stage 0 entry is already in the index.
But how does that happen? I do not know any way to use porcelain to
achieve that bogus state.
AFAIK stages 1,2,3 are only populated when there are conflicts, in which
case there is no stage 0. Literally the only way I see to have both is to
_make_ update-index put them in there.
Pilot error?
Ciao,
Dscho