git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git add --patch newfile doesn't add newfile to cache ?
@ 2008-10-20 14:36 Marc Weber
  2008-10-20 23:50 ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: Marc Weber @ 2008-10-20 14:36 UTC (permalink / raw)
  To: git

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 <file>..." 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-10-22 13:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-20 14:36 git add --patch newfile doesn't add newfile to cache ? Marc Weber
2008-10-20 23:50 ` Jeff King
2008-10-22 13:12   ` Marc Weber
2008-10-22 13:29     ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).