From: Johannes Schindelin Date: Tue, 14 Apr 2009 17:48:55 GMT Subject: add -e, was Re: What's cooking in git.git (Apr 2009, #02; Sun, 12) Message-ID: In-Reply-To: <7vvdp9w9l1.fsf@gitster.siamese.dyndns.org> Hi, On Sun, 12 Apr 2009, Junio C Hamano wrote: > * js/add-edit (Wed Apr 8 23:30:24 2009 +0200) 1 commit > - git-add: introduce --edit (to edit the diff vs. the index) > > I am Ok with the general idea, but the error detection needs to be more > robust than merely relying on --recount. You mean something like saving an extra copy of the patch, and checking if common or removed lines were either removed or kept intact? That might turn out to be _very_ tricky. Example: @@ common line +added line common line -removed line common line Now, edit it, and come up with @@ common line +removed line common line It is obvious what is meant, but is there a clear semantics a _computer_ could understand? I do not think so. If you had some other error checking in mind, please let me hear it. Ciao, Dscho