[PATCH 4/7] qf: Make pull a fast forward only.

Lucas De Marchi lucas.de.marchi at gmail.com
Tue Jan 23 18:46:42 UTC 2018


On Mon, Jan 22, 2018 at 12:00:37PM -0800, Rodrigo Vivi wrote:
> Be more strict here in order to make it more failsafe on
> auto rebases.
> 
> Cc: Paulo Zanoni <paulo.r.zanoni at intel.com>
> Cc: Michel Thierry <michel.thierry at intel.com>
> Cc: James Ausmus <james.ausmus at intel.com>
> Cc: Lucas De Marchi <lucas.demarchi at intel.com>
> Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
> ---
>  qf     | 7 +------
>  qf.rst | 9 ++++-----
>  2 files changed, 5 insertions(+), 11 deletions(-)
> 
> diff --git a/qf b/qf
> index 92fad9dc26ea..4989f3691e04 100755
> --- a/qf
> +++ b/qf
> @@ -413,12 +413,7 @@ function qf_pull
>  
>  	qf fetch
>  	cd patches
> -
> -	if [[ $1 == "--rebase" ]] ; then
> -		git rebase "@{upstream}"
> -	else
> -		git merge "@{upstream}"
> -	fi
> +	git pull --ff-only
>  
>  	qf co
>  }
> diff --git a/qf.rst b/qf.rst
> index 66272703bc12..1ccf29abbf78 100644
> --- a/qf.rst
> +++ b/qf.rst
> @@ -186,12 +186,11 @@ fetch
>  Fetches both the main and patches barnch remotes and pulls all
>  the baseline refs into the main repo.
>  
> -pull [--rebase]
> ----------------
> +pull
> +----
>  
> -First runs qf fetch and then updates the patches branch (with a git merge) and
> -the checks out the latest working copy. When given --rebase will rebase the
> -patches branch instead of merging.
> +First runs qf fetch, then updates the patches branch, and
> +then checks out the latest working copy.

A word that it fails if the patches branch can't be fastforwarded
wouldn't hurt. With that:

Reviewed-by: Lucas De Marchi <lucas.demarchi at intel.com>

Lucas De Marchi


More information about the dim-tools mailing list