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

Re: [PATCH JGIT] Add "compare with Git Index" action.

From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
Date
Mar 10, 2009, 23:22 UTC
Message-ID
<200903110022.53854.robin.rosenberg.lists@dewire.com>
In-Reply-To
<49B63ADC.4080009@gmail.com>
tisdag 10 mars 2009 11:03:08 skrev Yann Simon <yann.simon.fr@gmail.com>:
Show 14 quoted lines
> In the Compare With... menu, the "Git Index" action opens
> a diff editor that compares the workspace version of a file and its
> index version.
> 
> The local file can be modified and saved.
> 
> The staged version can be modified and saved. This updates the index.
> For this, add methods into GitIndex to allow to specify a content
> different from the file.
> 
> Signed-off-by: Yann Simon <yann.simon.fr@gmail.com>
> ---
> Changed comapred to previous version:
> - fix saving the index version.

Saving works, but the diff regions aren't updated on save. When there is a diff this would give us the partial staging similar to git gui, if only (not your fault) the commit dialog would allow us to make a distinction between changes in the workdir and the index.

-- robin
Previous: Yann SimonNext: Yann Simon
Message 2 of 4 in “Add "compare with Git Index" action.”
  1. Add "compare with Git Index" action.Yann Simon, Mar 10, 2009
  2. Robin RosenbergMar 10, 2009
  3. Yann SimonMar 13, 2009
  4. Robin RosenbergMar 13, 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.