From: Jonas Fonseca Date: Wed, 5 Nov 2008 17:01:35 +0000 (+0100) Subject: tigrc(5): minor fixes and improvements from wip/run-command X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=16dda24885bb405e4d5a8f8f4d6105ae7539a524;p=tig.git tigrc(5): minor fixes and improvements from wip/run-command --- 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"]