RE: pull.prompt or other way to slow/disable 'git pull' (was: Pull is Evil)
From: Felipe Contreras <hidden>
Date: 2016-06-15 23:00:59
W. Trevor King wrote:
I've renamed this sub-thread (which started around $gmane/247835) to avoid potential confusion/dilution.
Thanks.
quoted
quoted
The goal is to train them to do:quoted
% git config --global pull.mode none % git fetch % git merge --no-ffSticking to my 'no-ff' topic branch example, this should have been: git merge --no-ff remote branch I want folks to use --ff-only when pulling their default upstream.
That's proposed to be the default anyway, so they won't need it.
quoted
quoted
The 'git pull' (with 'none' mode) explainer just helps retrain folks that are already using the current 'git pull' incorrectly.If you are going to train them to use a configuration, it should be: % git config --global pull.ff falseI don't want all pulls to be --no-ff, only pulls from topic branches.
Pulling some branch to a topic branch, or pulling a topic branch to another branch? Either way, since I think these two are different modes: 1) git pull 2) git pull origin topic Maybe it would actually make sense to have a configuration specific to 2): pull.topicmode. This way they could do "pull.topicmode = merge-no-ff". Or maybe we need arguments: "pull.topicargs = --merge --no-ff". -- Felipe Contreras