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

[PATCH 2/2] use git quote in git-bisect

From
Alex Riesen <fork0@t-online.de>
Date
Jul 16, 2006, 22:28 UTC
Message-ID
<20060716222815.GB10135@steel.home>

The echo after git quote is just to match the behaviour of the previous script exactly (yes, it is needed - it's bisect log output).

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
 git-bisect.sh |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/git-bisect.sh b/git-bisect.sh
index 06a8d26..8407960 100755
--- a/git-bisect.sh
+++ b/git-bisect.sh
@@ -13,13 +13,8 @@ git bisect log			show bisect log.'
 . git-sh-setup
 
 sq() {
-	@@PERL@@ -e '
-		for (@ARGV) {
-			s/'\''/'\'\\\\\'\''/g;
-			print " '\''$_'\''";
-		}
-		print "\n";
-	' "$@"
+        git quote -- "$@"
+        echo
 }
 
 bisect_autostart() {
-- 
1.4.1.gb944
Message 1 of 1 in “use git quote in git-bisect”
  1. 2/2 use git quote in git-bisectAlex Riesen, Jul 16, 2006

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.