Re: [RFC PATCH v5 4/8] Extract functions out of git_rebase__interactive
On Fri, Mar 23, 2018 at 5:25 PM, Wink Saville <wink@saville.com> wrote:
Show 7 quoted lines
> The extracted functions are:
> [...]
> Signed-off-by: Wink Saville <wink@saville.com>
> ---
> diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh
> @@ -740,8 +740,20 @@ get_missing_commit_check_level () {
> +# Initiate an action. If the cannot be any> +# further action it may exec a command
Show 11 quoted lines
> +# or exit and not return.
> +#
> +# TODO: Consider a cleaner return model so it
> +# never exits and always return 0 if process
> +# is complete.
> +#
> +# Parameter 1 is the action to initiate.
> +#
> +# Returns 0 if the action was able to complete
> +# and if 1 if further processing is required.
> +initiate_action () {