summaryrefslogtreecommitdiff
path: root/diff-stages.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@osdl.org>2005-09-18 18:27:45 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-09-18 21:18:38 (GMT)
commit37539fbda5962cd3b7d8fe5ae8db743b5d9c9940 (patch)
tree211597e2c0da4019f5ca719c7c331b529540f03e /diff-stages.c
parenta8783eeb7988a20664dade2379d380ee1a199a10 (diff)
downloadgit-37539fbda5962cd3b7d8fe5ae8db743b5d9c9940.zip
git-37539fbda5962cd3b7d8fe5ae8db743b5d9c9940.tar.gz
git-37539fbda5962cd3b7d8fe5ae8db743b5d9c9940.tar.bz2
[PATCH] Improved "git add"
This fixes everybodys favourite complaint about "git add", namely that it doesn't take directories. We use "git-ls-files --others" to generate an arbitrary list of filenames, and thus also automatically honor ignore-files while we're at it. Side note: there's a lot of room for improvement here. In particular, if we have a long list of filenames (importing a big archive), this will just do a big stupid for-loop and add them one at a time. Maybe it should use generate-list | xargs -0 git-update-idex --add -- instead. Also, I think we should have a default ignore list if we don't find a .git/info/exclude file. Ignoring "*.o" and ".*" by default would probably be the right thing to do. But I think this is a good first step. Use the "-n" flag to just show the list of files to be added without adding them. Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'diff-stages.c')
0 files changed, 0 insertions, 0 deletions