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

Re: [RFC] best way to show diff of commit

From
JFJ. Bruce Fields <bfields@fieldses.org>
Date
Nov 25, 2007, 21:27 UTC
Message-ID
<20071125212748.GB23820@fieldses.org>
In-Reply-To
<20071125211831.GA21121@artemis.corp>
On Sun, Nov 25, 2007 at 10:18:31PM +0100, Pierre Habouzit wrote:
Show 14 quoted lines
>   There is specific script I run in my vim with git, that tries to show
> from the 'status' git commit shows in the buffer which list of files has
> changed, and builds a diff from it quite clumsily[0].
> 
>   I wonder how hard it would be for git commit to "stash" the current
> commit being sent somewhere editors would be able to have a look at (an
> alternate index is probably fine). Note that maybe I'm stupid and
> overlooked that such a thing already exists.  I'd like to have it in two
> flavors: normal and amend mode. normal mode would show what the
> resulting commit diff looks like, and the amend mode only shows the
> incrementall diff the amend adds to the previous commit.
> 
>   My question is: what do you think is the best way to do that, and
> where ?
Have you checked whether "git-commit -v" already does what you want?
--b.
Previous: Pierre HabouzitNext: Pierre Habouzit
Message 2 of 14 in “[RFC] best way to show diff of commit”
  1. Pierre HabouzitNov 25, 2007
  2. J. Bruce FieldsNov 25, 2007
  3. Pierre HabouzitNov 25, 2007
  4. Junio C HamanoNov 25, 2007
  5. Pierre HabouzitNov 25, 2007
  6. Junio C HamanoNov 25, 2007
  7. Pierre HabouzitNov 25, 2007
  8. David BrownNov 25, 2007
  9. Jan HudecNov 26, 2007
  10. Pierre HabouzitNov 26, 2007
  11. Pierre HabouzitNov 26, 2007
  12. Make builtin-commit.c export GIT_INDEX_FILE for launch_editor as well.Pierre Habouzit, Nov 26, 2007
  13. Pierre HabouzitNov 26, 2007
  14. Kristian HøgsbergNov 26, 2007

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.