git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Adding color to git-add--interactive
@ 2007-10-09 13:06 Jonathan del Strother
  2007-10-09 13:31 ` Wincent Colaiuta
  2007-10-09 23:40 ` Jeff King
  0 siblings, 2 replies; 8+ messages in thread
From: Jonathan del Strother @ 2007-10-09 13:06 UTC (permalink / raw)
  To: Git Mailing List

I find git-add--interactive incredibly awkward to use, mostly due to  
the lack of visual differentiation as you type in a sequence of  
commands.  For example, when stepping through hunks to patch, every  
time it shows a new hunk I have to carefully scan up the screen to  
find where the hunk starts, before I can actually start reading what's  
contained in that hunk.

For me at least, adding color would make the interactive mode far more  
readable.   I hacked in basic color support (just coloring PROMPT &  
HEADER in list_and_choose, and the "Stage this hunk?" prompt) - which  
helped a lot - but then reached the limits of my perl knowledge.  For  
instance, I can't see a sensible way of reusing git-svn's  
log_use_color function without importing the entire file, and I can't  
figure out how you'd go about diff-coloring the hunks.  Is anyone with  
more perl knowledge than me interested in taking this on?

Or am I alone in finding interactive mode basically unreadable?
Jon

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

end of thread, other threads:[~2007-10-10 21:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-09 13:06 Adding color to git-add--interactive Jonathan del Strother
2007-10-09 13:31 ` Wincent Colaiuta
2007-10-09 14:04   ` Johannes Schindelin
2007-10-09 14:44     ` Wincent Colaiuta
2007-10-09 23:40 ` Jeff King
2007-10-10 15:06   ` Johannes Schindelin
2007-10-10 17:06     ` Jeff King
2007-10-10 21:09       ` Alex Riesen

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).