summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bb9a850)
raw | patch | inline | side by side (parent: bb9a850)
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | |
Sat, 21 Feb 2009 00:28:41 +0000 (01:28 +0100) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Sat, 21 Feb 2009 12:10:22 +0000 (13:10 +0100) |
Status view allows management of the stage area, and the user is likely
to issue a commit as soon as (s)he's satisfied with the result. Mapping
'git commit' to the 'C' key in status view makes this straightforward
and allows a very streamlined workflow from within git.
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
to issue a commit as soon as (s)he's satisfied with the result. Mapping
'git commit' to the 'C' key in status view makes this straightforward
and allows a very streamlined workflow from within git.
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
manual.txt | patch | blob | history | |
tig.c | patch | blob | history |
diff --git a/manual.txt b/manual.txt
index 74fa3f812d1439c0b0533b0713d109e6da02aa47..74dda06a58475a372a851757d0dc61990f6067bc 100644 (file)
--- a/manual.txt
+++ b/manual.txt
current browsing state, such as the current commit ID. Tig comes with
the following built-in external commands:
-`-------`--------------------------------------------------------------------
-Key Action
+`-------`-------`------------------------------------------------------------
+Keymap Key Action
-----------------------------------------------------------------------------
-C git cherry-pick %(commit)
-G git gc
+main C git cherry-pick %(commit)
+status C git commit
+generic G git gc
-----------------------------------------------------------------------------
[[refspec]]
index a968d51bb7b464f65c0a2cabb38cd0fb70173b00..9dba5e9f6c3377b726422d78d0940b843ffa8af2 100644 (file)
--- a/tig.c
+++ b/tig.c
add_builtin_run_requests(void)
{
const char *cherry_pick[] = { "git", "cherry-pick", "%(commit)", NULL };
+ const char *commit[] = { "git", "commit", NULL };
const char *gc[] = { "git", "gc", NULL };
struct {
enum keymap keymap;
const char **argv;
} reqs[] = {
{ KEYMAP_MAIN, 'C', ARRAY_SIZE(cherry_pick) - 1, cherry_pick },
+ { KEYMAP_STATUS, 'C', ARRAY_SIZE(commit) - 1, commit },
{ KEYMAP_GENERIC, 'G', ARRAY_SIZE(gc) - 1, gc },
};
int i;