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

Re: git-gui console app ?

From
Jeff King <peff@peff.net>
Date
Aug 10, 2007, 14:21 UTC
Message-ID
<20070810142104.GA10997@sigill.intra.peff.net>
In-Reply-To
<20070810133132.GA3770@diku.dk>
On Fri, Aug 10, 2007 at 03:31:32PM +0200, Jonas Fonseca wrote:
Show 5 quoted lines
> Not quite a one-liner, but I've implemented something that will show
> diffs of staged/unstaged changes as well as the content of untracked
> files when pressing Enter on a file in the status view. To update the
> status of a file (unstaged->staged, untracked->staged, etc) you now
> have to press 'u'.

Nice. This was exactly what I had envisioned. Minor help text fixup is below.

-Peff

-- >8 -- status window: mention 'u' instead of Enter

Commits ca1d71ea and 89d917a bound the Enter functionality to 'u' (and Enter now shows the diff).

Signed-off-by: Jeff King <peff@peff.net>
---
 tig.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/tig.c b/tig.c
index d9c9df8..40670e2 100644
--- a/tig.c
+++ b/tig.c
@@ -3156,15 +3156,15 @@ status_select(struct view *view, struct line *line)
 
 	switch (line->type) {
 	case LINE_STAT_STAGED:
-		text = "Press Enter to unstage file for commit";
+		text = "Press 'u' to unstage file for commit";
 		break;
 
 	case LINE_STAT_UNSTAGED:
-		text = "Press Enter to stage file for commit  ";
+		text = "Press 'u' to stage file for commit  ";
 		break;
 
 	case LINE_STAT_UNTRACKED:
-		text = "Press Enter to stage file for addition";
+		text = "Press 'u' to stage file for addition";
 		break;
 
 	case LINE_STAT_NONE:
-- 
1.5.2.4
Previous: Jonas FonsecaNext: Jonas Fonseca
Message 9 of 14 in “git-gui console app ?”
  1. Erik ColsonAug 4, 2007
  2. Johannes SchindelinAug 4, 2007
  3. Erik ColsonAug 4, 2007
  4. Jeff KingAug 4, 2007
  5. Erik ColsonAug 4, 2007
  6. Junio C HamanoAug 4, 2007
  7. Jeff KingAug 5, 2007
  8. Jonas FonsecaAug 10, 2007
  9. Jeff KingAug 10, 2007
  10. Jonas FonsecaAug 11, 2007
  11. Erik ColsonAug 10, 2007
  12. Jonas FonsecaAug 11, 2007
  13. David KågedalAug 7, 2007
  14. Erik ColsonAug 7, 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.