From: Marc Weber Date: Mon, 20 Oct 2008 14:36:36 GMT Subject: git add --patch newfile doesn't add newfile to cache ? Message-ID: <20081020143636.GB3988@gmx.de> Is this desired behaviour? Testcase: #!/bin/sh # this script creates testGitAddPatch and will run the testcase there rm -fr testGitAddPatch mkdir testGitAddPatch cd testGitAddPatch git init echo test > test git add --patch test echo "running status, nothing has been added" git status git --version My output marc@mail: /tmp/git ]$ sh test.sh Initialized empty Git repository in /tmp/git/testGitAddPatch/.git/ No changes. running status, nothing has been added # On branch master # # Initial commit # # Untracked files: # (use "git add ..." to include in what will be committed) # # test nothing added to commit but untracked files present (use "git add" to track) git version 1.6.0.2.GIT Marc Weber