git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Any way to edit the file in index directly?

From
Ping Yin <pkufranky@gmail.com>
Date
Apr 8, 2009, 02:27 UTC
Message-ID
<46dff0320904071927l16d54c8bv9c219e681cc96bb2@mail.gmail.com>
In-Reply-To
<20090408021620.GC18244@coredump.intra.peff.net>
Ping Yin
On Wed, Apr 8, 2009 at 10:16 AM, Jeff King <peff@peff.net> wrote:
Show 10 quoted lines
> On Tue, Apr 07, 2009 at 10:10:41PM -0400, Jeff King wrote:
>
>> On Wed, Apr 08, 2009 at 09:03:03AM +0800, Ping Yin wrote:
>>
>> > There seems to be a patch for this ( add -e?), but i forget where to
>> > find it.
>>
>> "add -p" has an "e"dit option for editing the patch. I don't recall any
>> way of directly editing the content.
>
> "add -p" has an "e"dit option for editing the patch. I don't recall any
> way of directly editing the content.

Sometimes by 'add -p', i can't get what i want (the patch will fail to apply when exiting editor). And with 'add -p', i can't get a global view of all changes together

> I'm not sure what you mean by "alongside".

By "aloneside" i mean i can open the index and worktree file in diff mode side by side for easily editing.

Show 7 quoted lines
> Hmm, actually maybe you are thinking of:
>
>  http://article.gmane.org/gmane.comp.version-control.git/103389
>
> which I even reviewed, but it doesn't seem to have gone anywhere after
> that.
>
Thanks, That's what i want.
Previous: Jeff KingNext: Markus Heidelberg
Message 4 of 7 in “Any way to edit the file in index directly?”
  1. Ping YinApr 8, 2009
  2. Jeff KingApr 8, 2009
  3. Jeff KingApr 8, 2009
  4. Ping YinApr 8, 2009
  5. Markus HeidelbergApr 8, 2009
  6. Johannes SchindelinApr 8, 2009
  7. Ping YinApr 8, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.