diff options
author | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2018-01-21 01:21:07 -0800 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2018-01-23 13:17:35 -0800 |
commit | 4f33e5ad8418f0a8a5d31b70a6ef7f7901423168 (patch) | |
tree | 43608e1aafe2c1f8c4fa643d1a3cea872b54b1a4 | |
parent | 51865bfdcc7533e63aa4a5b233229b54baa7070f (diff) |
qf: Make pull a fast forward only.
Be more strict here in order to make it more failsafe on
auto rebases.
v2: Add message requested by Lucas, mentioning that
qf pull fails if branch cannot be fast forwarded.
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Michel Thierry <michel.thierry@intel.com>
Cc: James Ausmus <james.ausmus@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
-rwxr-xr-x | qf | 7 | ||||
-rw-r--r-- | qf.rst | 10 |
2 files changed, 6 insertions, 11 deletions
@@ -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 } @@ -186,12 +186,12 @@ 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. +If fails if the patches branch can't be fast forwarded. stage ----- |