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

Re: Special strings in commit messages

From
FWFlorian Weimer <fweimer@redhat.com>
Date
Oct 9, 2017, 13:38 UTC
Message-ID
<6a036339-d57d-4cc8-acfc-4e1786763a80@redhat.com>
In-Reply-To
<20171008213053.GA8568@starla>
On 10/08/2017 11:30 PM, Eric Wong wrote:
Show 20 quoted lines
> diff --git a/git-rebase--am.sh b/git-rebase--am.sh
> index 6e64d40d6f..14c50782e0 100644
> --- a/git-rebase--am.sh
> +++ b/git-rebase--am.sh
> @@ -53,6 +53,7 @@ else
>   
>   	git format-patch -k --stdout --full-index --cherry-pick --right-only \
>   		--src-prefix=a/ --dst-prefix=b/ --no-renames --no-cover-letter \
> +		--pretty=mboxrd \
>   		$git_format_patch_opt \
>   		"$revisions" ${restrict_revision+^$restrict_revision} \
>   		>"$GIT_DIR/rebased-patches"
> @@ -83,6 +84,7 @@ else
>   	fi
>   
>   	git am $git_am_opt --rebasing --resolvemsg="$resolvemsg" \
> +		--patch-format=mboxrd \
>   		$allow_rerere_autoupdate \
>   		${gpg_sign_opt:+"$gpg_sign_opt"} <"$GIT_DIR/rebased-patches"
>   	ret=$?

My context is slightly different, but I added the mboxrd options manually to both commands, and it fixes my test case.

I'm still wondering if I have to be on the lookout for similar issues with different strings.

Thanks, Florian

Previous: Eric WongNext: Eric Wong
Message 3 of 4 in “Special strings in commit messages”
  1. Florian WeimerOct 8, 2017
  2. Eric WongOct 8, 2017
  3. Florian WeimerOct 9, 2017
  4. rebase: use mboxrd format to avoid split errorsEric Wong, Nov 18, 2017

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.