Code

Add path-limiting to git-add--interactive
authorWincent Colaiuta <win@wincent.com>
Thu, 22 Nov 2007 01:36:24 +0000 (02:36 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 22 Nov 2007 10:53:40 +0000 (02:53 -0800)
commit4c8416847aa48e2bd60fa26585e32940a1a9c61c
tree0385de75506e2df2ae517a2ac337c12dfba73c68
parent7c0ab4458994aa895855abc4a504cf693ecc0cf1
Add path-limiting to git-add--interactive

Implement Junio's suggestion that git-add--interactive should reproduce the
path-limiting semantics of non-interactive git-add.

In otherwords, if "git add -i" (unrestricted) shows paths from a set A,
"git add -i paths..." should show paths from a subset of the set A and that
subset should be defined with the existing ls-files pathspec semantics.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-add--interactive.perl