[PATCH 4/7] qf: Make pull a fast forward only.
Rodrigo Vivi
rodrigo.vivi at intel.com
Mon Jan 22 20:00:37 UTC 2018
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.
stage
-----
--
2.13.6
More information about the dim-tools
mailing list