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

[PATCH RESEND tig 2/2] Drop unneeded '!' in docs

From
WSWolfram Sang <wsa@kernel.org>
Date
May 2, 2020, 18:48 UTC
Message-ID
<20200502184825.26707-2-wsa@kernel.org>
In-Reply-To
<20200502184825.26707-1-wsa@kernel.org>

Since commit 99d8d00 ("User-defined commands no longer need to be prefixed with '!'"), we don't need it anymore. Also, remove a superfluous comment.

Signed-off-by: Wolfram Sang <wsa@kernel.org>
---
This time with proper CCs. Sorry for the noise!
 doc/manual.adoc  | 2 +-
 doc/tigrc.5.adoc | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/doc/manual.adoc b/doc/manual.adoc
index cf87ba1..0d772ea 100644
--- a/doc/manual.adoc
+++ b/doc/manual.adoc
@@ -208,7 +208,7 @@ Example user-defined commands:
 
  - Copy commit ID to clipboard:
 
-	bind generic 9 !@sh -c "echo -n %(commit) | xclip -selection c"
+	bind generic 9 @sh -c "echo -n %(commit) | xclip -selection c"
 
  - Add/edit notes for the current commit used during a review:
 
diff --git a/doc/tigrc.5.adoc b/doc/tigrc.5.adoc
index 1aa8085..6b40afe 100644
--- a/doc/tigrc.5.adoc
+++ b/doc/tigrc.5.adoc
@@ -780,8 +780,7 @@ file:
 	gitk-bg = !"gitk HEAD --not $(git rev-parse --remotes) &"
 	publish = !"for i in origin public; do git push $i; done"
 [tig "bind"]
-	# @-prefix means that the console output will not be shown.
-	generic = V !@git gitk-bg
+	generic = V @git gitk-bg
 	generic = > !git publish
 --------------------------------------------------------------------------
 
-- 
2.20.1
Previous: Wolfram SangNext: Jonas Fonseca
Message 2 of 3 in “Document how to use pipes and redirection with 'bind'”
  1. 1/2 Document how to use pipes and redirection with 'bind'Wolfram Sang, May 2, 2020
  2. 2/2 Drop unneeded '!' in docsWolfram Sang, May 2, 2020
  3. Jonas FonsecaJun 1, 2020

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.