Possible d/f conflict bug or regression
- From
Christian Couder <chriscool@tuxfamily.org>
- Date
- Mar 29, 2008, 07:13 UTC
- Message-ID
- <200803290813.08419.chriscool@tuxfamily.org>
Hi,
When doing something like:
mkdir testdir &&
cd testdir &&
touch foo &&
git init &&
git add . &&
git commit -m 'Initial commit.' &&
rm foo &&
mkdir foo &&
git commit -a -m 'Test.'I get:
Initialized empty Git repository in .git/ Created initial commit 3f945ca: Initial commit. 0 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 foo fatal: unable to index file foo
I think it's quite bad that it doesn't work.
It seems it also doesn't work when adding "touch foo/bar" before "git commit -a -m 'Test.'".
I used:
$ git --version git version 1.5.5.rc2
It worked with 1.5.3 and I bisected it to the git commit port to C:
commit f5bbc3225c4b073a7ff3218164a0c820299bc9c6 Author: Kristian H<C3><B8>gsberg <krh@redhat.com> Date: Thu Nov 8 11:59:00 2007 -0500
Port git commit to C.
This makes git commit a builtin and moves git-commit.sh to
contrib/examples. This also removes the git-runstatus
helper, which was mostly just a git-status.sh implementation detail. Signed-off-by: Kristian H<C3><B8>gsberg <krh@redhat.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>Thanks, Christian.