Re: git-commit: select which files to commit while editing the commit message

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Seth Falcon <sethfalcon@...>
Cc: <git@...>
Date: Friday, December 8, 2006 - 8:59 pm

Seth Falcon <sethfalcon@gmail.com> writes:


Note that output of cat piped to anything is almost always a bad
programming ;-)

Maybe the "git add --interactive" would give you a transcript
like this:

        $ git add --interactive '*.c' '*.h'
	showing list of modified files...
         1) bozbar.c 2) filfre.c 3) frotz.h 4) nitfol.c 5) rezrov.h
         6) xyzzy.c  7) yomin.h  8) z.c
        choice> 2 3 5 6 7
	showing list of modified files...
         1) bozbar.c 2* filfre.c 3* frotz.h 4) nitfol.c 5* rezrov.h
         6* xyzzy.c  7* yomin.h  8) z.c
        choice> 4+
	showing "git diff -- nitfol.c"...
        diff --git a/nitfol.c b/nitfol.c
        @@ -22,x +22,y @@
         {
        -	int i;
        +	long i;
        +	i = 314;
	 
        stage this hunk [Yes/No/All/Done]? y
        ...
 
The latter half is to come up with a subset of diff and then run
"git-apply --cached" to update only the index with the chosen
hunks.

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: git-commit: select which files to commit while editing t..., Junio C Hamano, (Fri Dec 8, 8:59 pm)
Re: git-commit: select which files to commit while editing t..., Josef Weidendorfer, (Sat Dec 9, 8:46 pm)
[PATCH] git-add --interactive (wip), Junio C Hamano, (Mon Dec 11, 5:23 am)
Re: [PATCH] git-add --interactive (wip), Josef Weidendorfer, (Mon Dec 11, 6:47 am)
Re: [PATCH] git-add --interactive (wip), Junio C Hamano, (Tue Dec 12, 5:51 pm)
Re: [PATCH] git-add --interactive (wip), Josef Weidendorfer, (Tue Dec 12, 11:15 pm)
Re: [PATCH] git-add --interactive (wip), Johannes Schindelin, (Tue Dec 12, 6:15 pm)
Re: [PATCH] git-add --interactive (wip), Andreas Ericsson, (Wed Dec 13, 5:20 am)