Re: git-gui console app ?
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