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

Re: [PATCH] rebase: remove unused function reschedule_last_action

From
Taylor Blau <me@ttaylorr.com>
Date
Aug 12, 2020, 13:48 UTC
Message-ID
<20200812134827.GB74542@syl.lan>
In-Reply-To
<80744078-c0a9-5b55-0578-d6b62af6673b@web.de>
On Wed, Aug 12, 2020 at 03:45:47PM +0200, René Scharfe wrote:
> The only caller of reschedule_last_action was removed by ef64bb328df
> (rebase: strip unused code in git-rebase--preserve-merges.sh,
> 2018-05-28); remove this unused shell function as well.
Easy peasy ;-). Obviously correct, and thanks for cleaning this up.
  Reviewed-by: Taylor Blau <me@ttaylorr.com>
Show 28 quoted lines
> Signed-off-by: René Scharfe <l.s.r@web.de>
> ---
>  git-rebase--preserve-merges.sh | 10 ----------
>  1 file changed, 10 deletions(-)
>
> diff --git a/git-rebase--preserve-merges.sh b/git-rebase--preserve-merges.sh
> index dec90e9af67..b9c71d2a71b 100644
> --- a/git-rebase--preserve-merges.sh
> +++ b/git-rebase--preserve-merges.sh
> @@ -193,16 +193,6 @@ mark_action_done () {
>  	fi
>  }
>
> -# Put the last action marked done at the beginning of the todo list
> -# again. If there has not been an action marked done yet, leave the list of
> -# items on the todo list unchanged.
> -reschedule_last_action () {
> -	tail -n 1 "$done" | cat - "$todo" >"$todo".new
> -	sed -e \$d <"$done" >"$done".new
> -	mv -f "$todo".new "$todo"
> -	mv -f "$done".new "$done"
> -}
> -
>  append_todo_help () {
>  	gettext "
>  Commands:
> --
> 2.28.0

Thanks, Taylor

Previous: René ScharfeNext: Junio C Hamano
Message 2 of 3 in “rebase: remove unused function reschedule_last_action”
  1. rebase: remove unused function reschedule_last_actionRené Scharfe, Aug 12, 2020
  2. Taylor BlauAug 12, 2020
  3. Junio C HamanoAug 12, 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.