Re: [PATCH v3] git-add--interactive: manual hunk editing mode

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeff King <peff@...>
Cc: <git@...>
Date: Thursday, June 12, 2008 - 2:55 am

Jeff King wrote:

I wanted to make the same special case that 'recount -i' has: Deleting
everything does not "do nothing", but actually aborts the edit.  So in
rebase, deleting everything will not rebase anything (instead of
rebasing "no patches" onto wherever you said).  Along the same lines,
in the above patch deleting everything does not patch "no changes",
but aborts editing the hunk and leaves it unchanged.

Do you think that behaviour confuses users?


=46eeding it the single hunk would be enough, but doing it this way
ensures that the edited hunk cannot step on another hunk's toes,
i.e. produce a conflict that may prevent us from applying the patch at
the end of the hunk selection loop.

It's fairly unlikely of course, because the user would deliberately
have to extend the hunk beyond its current borders by adding extra
context from the original file.

=2D-=20
Thomas Rast
trast@student.ethz.ch
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] git-add--interactive: manual hunk editing mode, Thomas Rast, (Fri May 23, 4:21 pm)
Re: [PATCH] git-add--interactive: manual hunk editing mode, Johannes Schindelin, (Thu May 29, 12:12 pm)
Re: [PATCH v3] git-add--interactive: manual hunk editing mode, Johannes Schindelin, (Sun Jun 8, 7:19 pm)
Re: [PATCH v3] git-add--interactive: manual hunk editing mode, Andreas Ericsson, (Tue Jun 10, 7:19 am)
Re: [PATCH v3] git-add--interactive: manual hunk editing mode, Thomas Rast, (Thu Jun 12, 2:55 am)
Re: [PATCH v4] git-add--interactive: manual hunk editing mode, Johannes Schindelin, (Mon Jun 23, 2:54 pm)
apply --recount, was Re: [PATCH v4] git-add--interactive: ma..., Johannes Schindelin, (Mon Jun 23, 5:16 pm)
Re: [PATCH 1/3] Allow git-apply to ignore the hunk headers (..., Johannes Schindelin, (Fri Jun 27, 1:43 pm)
[PATCH 0/3] Manual editing for 'add' and 'add -p', Thomas Rast, (Tue Jun 24, 3:07 pm)
Re: [PATCH 0/3] Manual editing for 'add' and 'add -p', Miklos Vajna, (Tue Jun 24, 3:53 pm)
Re: [PATCH v3] git-add--interactive: manual hunk editing mode, Johannes Schindelin, (Mon Jun 9, 12:13 pm)
Re: [RFC PATCH] git-add--interactive: manual hunk editing mo..., Johannes Schindelin, (Thu Jun 5, 6:28 am)
Re: [RFC PATCH] git-add--interactive: manual hunk editing mo..., Johannes Schindelin, (Fri Jun 6, 10:31 am)
Re: [RFC PATCH] git-add--interactive: manual hunk editing mo..., Johannes Schindelin, (Sun Jun 8, 7:02 pm)
Re: [RFC PATCH] git-add--interactive: manual hunk editing mo..., Johannes Schindelin, (Sun Jun 8, 7:06 pm)
Re: [PATCH] git-add--interactive: manual hunk editing mode, Junio C Hamano, (Fri May 30, 5:35 pm)
Re: [PATCH] git-add--interactive: manual hunk editing mode, Johannes Schindelin, (Fri May 30, 5:49 am)
Re: [PATCH] git-add--interactive: manual hunk editing mode, Jakub Narebski, (Fri May 30, 6:46 am)