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

Re: [PATCH] Allow passing of --directory to git-am.

From
Boyd Stephen Smith Jr. <bss03@volumehost.net>
Date
Dec 4, 2008, 18:28 UTC
Message-ID
<200812041228.58885.bss03@volumehost.net>
In-Reply-To
<49380D84.5050403@fs.ei.tum.de>

On Thursday 04 December 2008, Simon 'corecode' Schubert <corecode@fs.ei.tum.de> wrote about '[PATCH] Allow passing of --directory to git-am.':

Show 5 quoted lines
>-	--whitespace)
>-		git_apply_opt="$git_apply_opt $1=$2"; shift ;;
>+	--whitespace|--directory)
>+		quot=$(echo "$2" | sed -e "s/'/\\'/g")
>+		git_apply_opt="$git_apply_opt $1='$quot'"; shift ;;

Test: bss@monster:~$ echo "don't" | sed -e "s/'/\\'/g" don't bss@monster:~$

I'm thinking your sed line doesn't do what you think it does. You probably want something like: bss@monster:~$ echo "don't" | sed -e "s/'/'\\\\''/g" don'\''t

-- 
Boyd Stephen Smith Jr.                     ,= ,-_-. =. 
bss03@volumehost.net                      ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy           `-'(. .)`-' 
http://iguanasuicide.org/                      \_/     
Previous: Simon 'corecode' Schubert
Message 2 of 2 in “Allow passing of --directory to git-am.”
  1. Allow passing of --directory to git-am.Simon 'corecode' Schubert, Dec 4, 2008
  2. Boyd Stephen Smith Jr.Dec 4, 2008

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.