Re: way to automatically add untracked files?
- From
Miles Bader <miles@gnu.org>
- Date
- Aug 5, 2007, 04:00 UTC
- Message-ID
- <fc339e4a0708042100jdf0a0f1jd1fddfb5dc1c1052@mail.gmail.com>
- In-Reply-To
- <873ayymzc1.fsf@catnip.gol.com>
I previously wrote
> One thing I often want to do is git-add all untracked files, and also > automatically git-rm all "disappeared" files
...
> One way to do this seems to be just "git add ."
Oh, also, "git add ." doesn't seem to do the right thing with "dissapeared" files: If I do:
mv foo.cc bar.cc
git add .then git-status will show a new file "bar.cc", but will list "foo.cc" as "deleted " in the "Changed but not updated" section. Perhaps the right thing will happen if I do "git-commit -a" (though I don't know, I don't really want to try it), this still results in incorrect "git-diff --cached" output (it shows bar.cc as a new file, not as a rename of foo.cc).
Am I doing something wrong, or is this just missing functionality?
Thanks,
-Miles
-- Do not taunt Happy Fun Ball.