From 16dda24885bb405e4d5a8f8f4d6105ae7539a524 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Wed, 5 Nov 2008 18:01:35 +0100 Subject: [PATCH] tigrc(5): minor fixes and improvements from wip/run-command --- tigrc.5.txt | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/tigrc.5.txt b/tigrc.5.txt index 471aab3..4665649 100644 --- a/tigrc.5.txt +++ b/tigrc.5.txt @@ -132,7 +132,7 @@ bind diff b move-first-line bind main Q none # An external command to update from upstream bind generic F !git fetch -# Cherry-pick current commit unto current branch +# Cherry-pick current commit onto current branch bind generic C !git cherry-pick %(commit) -------------------------------------------------------------------------- @@ -173,10 +173,21 @@ Actions Apart from the action names listed below, all actions starting with a '!' will be available as an external command. External commands can contain variable names that will be substituted before the command is run. Valid variable names -are "%(head)", "%(commit)", and "%(blob)". +are: + +ifdef::backend-xhtml11[] +[frame="none"] +`-----------------------`----------------------------------------------------- +endif::backend-xhtml11[] +Browsing state variables +------------------------------------------------------------------------------ +%(head) The currently viewed 'head' ID. Defaults to HEAD +%(commit) The currently selected commit ID. +%(blob) The currently selected blob ID. +------------------------------------------------------------------------------ As an example, the following external command will save the current commit as -a patch file: "!git format-patch %(commit)^..%(commit)". +a patch file: "!git format-patch -1 %(commit)". ifdef::backend-xhtml11[] [frame="none"] -- 2.32.0.93.g670b81a890