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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 05, 2008 at 11:28:53AM +0100, Johannes Schindelin wrote:

> We have a tradition of giving the users plenty of rope.
> 
> And I actually like having the power at my finger tips.  You would not 
> believe how I enjoyed using "git add -e" to commit the final version of 
> that very patch.

I looked at your patch, and here are my complaints (versus what Thomas
has been working on):

  1. You edit the whole diff, not just a hunk. Actually, I think this is
     probably not a big deal, as any decent editor lets you find the
     spot you're looking for pretty trivially.

  2. It's not integrated into the git-add--interactive loop at all. That
     is, I don't start out saying "I want to edit this diff." I look at
     the diff while staging with "git add -p" and say "Oops, I need to
     edit this hunk." So I think it is better implemented as an "e"
     option in the hunk adding loop, with "git add -e" as a shortcut.
     Or maybe there is simply room for both (and "git add -e", rather
     than being a shortcut, just means "do this on the _whole_ file").

-Peff
--
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

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux