mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] ptxd_make_world_patchin_apply_git_init: only invoke rebase helper when needed
@ 2024-08-09  9:08 Markus Heidelberg
  2024-09-12 12:11 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Markus Heidelberg @ 2024-08-09  9:08 UTC (permalink / raw)
  To: ptxdist; +Cc: Markus Heidelberg

Originally it was only invoked during interactive rebase, but the needed
git config variable sequence.editor had been accidentally reverted to
the previous state core.editor in commit f4d2f09da9df
("ptxd_make_world_patchin: Allow git-ptx-* scripts to be overwritten",
2023-06-19), so it was always invoked before the normal user editor.

Since the helper script "git-ptx-refresh-tags-editor" mangles
whitespace, e.g. the "e" command of "git add --patch" for manually
editing hunks didn't work anymore because the patch opened in the editor
was corrupt.

Signed-off-by: Markus Heidelberg <m.heidelberg@cab.de>
---
 scripts/lib/ptxd_make_world_patchin.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/ptxd_make_world_patchin.sh b/scripts/lib/ptxd_make_world_patchin.sh
index 8fde0e24c..d13f18d43 100644
--- a/scripts/lib/ptxd_make_world_patchin.sh
+++ b/scripts/lib/ptxd_make_world_patchin.sh
@@ -79,7 +79,7 @@ ptxd_make_world_patchin_apply_git_init()
 	__git tag "${pkg_pkg//\~/-}" &&
 	__git tag base &&
 	__git config alias.ptx-patches "!${git_ptx_patches} \"\${@}\"" &&
-	__git config core.editor "${git_ptx_refresh_tags_editor}" &&
+	__git config sequence.editor "${git_ptx_refresh_tags_editor}" &&
 	__git config diff.renames false &&
 	__git config core.abbrev 12 &&
 	__git config core.autocrlf false &&
-- 
2.34.1





^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [APPLIED] ptxd_make_world_patchin_apply_git_init: only invoke rebase helper when needed
  2024-08-09  9:08 [ptxdist] [PATCH] ptxd_make_world_patchin_apply_git_init: only invoke rebase helper when needed Markus Heidelberg
@ 2024-09-12 12:11 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2024-09-12 12:11 UTC (permalink / raw)
  To: ptxdist; +Cc: Markus Heidelberg

Thanks, applied as fa4349755a225c177a9afe7eba294ba301ce6525.

Michael

[sent from post-receive hook]

On Thu, 12 Sep 2024 14:11:40 +0200, Markus Heidelberg <m.heidelberg@cab.de> wrote:
> Originally it was only invoked during interactive rebase, but the needed
> git config variable sequence.editor had been accidentally reverted to
> the previous state core.editor in commit f4d2f09da9df
> ("ptxd_make_world_patchin: Allow git-ptx-* scripts to be overwritten",
> 2023-06-19), so it was always invoked before the normal user editor.
> 
> Since the helper script "git-ptx-refresh-tags-editor" mangles
> whitespace, e.g. the "e" command of "git add --patch" for manually
> editing hunks didn't work anymore because the patch opened in the editor
> was corrupt.
> 
> Signed-off-by: Markus Heidelberg <m.heidelberg@cab.de>
> Message-Id: <20240809090817.45817-1-m.heidelberg@cab.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/scripts/lib/ptxd_make_world_patchin.sh b/scripts/lib/ptxd_make_world_patchin.sh
> index 8fde0e24c1c8..d13f18d4325c 100644
> --- a/scripts/lib/ptxd_make_world_patchin.sh
> +++ b/scripts/lib/ptxd_make_world_patchin.sh
> @@ -79,7 +79,7 @@ ptxd_make_world_patchin_apply_git_init()
>  	__git tag "${pkg_pkg//\~/-}" &&
>  	__git tag base &&
>  	__git config alias.ptx-patches "!${git_ptx_patches} \"\${@}\"" &&
> -	__git config core.editor "${git_ptx_refresh_tags_editor}" &&
> +	__git config sequence.editor "${git_ptx_refresh_tags_editor}" &&
>  	__git config diff.renames false &&
>  	__git config core.abbrev 12 &&
>  	__git config core.autocrlf false &&



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-09-12 12:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-09  9:08 [ptxdist] [PATCH] ptxd_make_world_patchin_apply_git_init: only invoke rebase helper when needed Markus Heidelberg
2024-09-12 12:11 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox