From: Junio C Hamano Date: Sat, 05 Jan 2008 02:50:08 GMT Subject: Re: git-walkthrough-add script Message-ID: <7vprwhf0kf.fsf@gitster.siamese.dyndns.org> In-Reply-To: <1199500441-sup-4067@south> William Morgan writes: > Excerpts from Jeff King's message of Fri Jan 04 13:07:51 -0800 2008: >> But if you have interface improvement suggestions for "git-add -i" or >> "git-add -p", I'm sure they would be well-received (post-1.5.4 >> release, of course). > > Not to show off my git newbness any more than necessary, but when I run > both git-add -i and git-add -p, I see exactly the same output and > interface. Are they meant to be different? They are meant to be different. $ git reset --hard $ echo >>Makefile $ echo >>psql/Makefile $ git add -p diff --git a/Makefile b/Makefile index a2177bc..eb250b0 100644 --- a/Makefile +++ b/Makefile @@ -54,3 +54,4 @@ snapdiff :: latest=`ls -1dr $(_snap)/release-????-??-?? | head -n 1` && \ diff -X dontdiff -ru "$$latest" . + Stage this hunk [y/n/a/d/?]? ^C $ git add -i staged unstaged path 1: unchanged +1/-0 Makefile 2: unchanged +1/-0 psql/Makefile *** Commands *** 1: [s]tatus 2: [u]pdate 3: [r]evert 4: [a]dd untracked 5: [p]atch 6: [d]iff 7: [q]uit 8: [h]elp What now> ^C There may be something broken with your git installation.