git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] best way to show diff of commit
@ 2007-11-25 21:18 Pierre Habouzit
  2007-11-25 21:27 ` J. Bruce Fields
  2007-11-26  0:25 ` Jan Hudec
  0 siblings, 2 replies; 14+ messages in thread
From: Pierre Habouzit @ 2007-11-25 21:18 UTC (permalink / raw)
  To: Git ML

[-- Attachment #1: Type: text/plain, Size: 1281 bytes --]

  Hi there,

  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 ?



  [0] the issue with this approach is that it's completely broken in
      amending mode (does not shows the proper thing), and the generated
      diffs aren't excellent, because as an editor plugin, it's hard to
      treat renames and copies easily, so I generate really really nasty
      diffs in that case too.
-- 
·O·  Pierre Habouzit
··O                                                madcoder@debian.org
OOO                                                http://www.madism.org

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2007-11-26 15:33 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-25 21:18 [RFC] best way to show diff of commit Pierre Habouzit
2007-11-25 21:27 ` J. Bruce Fields
2007-11-25 22:09   ` Pierre Habouzit
2007-11-25 22:27     ` Junio C Hamano
2007-11-25 22:31       ` Pierre Habouzit
2007-11-25 22:52         ` Junio C Hamano
2007-11-25 23:47           ` Pierre Habouzit
2007-11-25 23:43       ` David Brown
2007-11-26  0:25 ` Jan Hudec
2007-11-26  8:42   ` Pierre Habouzit
2007-11-26  8:47   ` Pierre Habouzit
2007-11-26  8:59     ` [PATCH] Make builtin-commit.c export GIT_INDEX_FILE for launch_editor as well Pierre Habouzit
2007-11-26  9:38       ` Pierre Habouzit
2007-11-26 15:27       ` Kristian Høgsberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).