[PATCH] qf: Make qf_pull clean

Rodrigo Vivi rodrigo.vivi at intel.com
Wed Jan 24 23:04:34 UTC 2018


qf_checkout implies that you need to have that baseline
on your local repository, what it is not good for a distributed
maintenance.

Let's make qf_pull useful for the case we want to start
a clean rebase from anywhere.

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>

tobe squashed to checkout expand name patch
---
 qf | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/qf b/qf
index 1e8ae75b4f46..2de890c5295e 100755
--- a/qf
+++ b/qf
@@ -415,11 +415,13 @@ function qf_pull
 {
 	cd_toplevel
 
-	qf fetch
+	qf_fetch
 	cd patches
+	# consider that you have a very clean repo
 	git pull --ff-only
-
-	qf co
+	# make sure you start from a very clean local as well
+	git reset --hard HEAD
+	cd ..
 }
 
 function qf_stage
-- 
2.13.6



More information about the dim-tools mailing list