On Saturday 09 December 2006 01:59, Junio C Hamano wrote: > 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 Wow. Something like this really would be good. And please a way to "unstage" accidently added files/hunks, too ;-) I even miss such a feature in stgit ("specify hunks to break up one patch into two"). Josef - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html