This makes it sound as if avoiding "reset --hard" is a good thing, but I
do not understand why.
The reason you have the diff-index check in the second sequence is because
update-ref does not have the "local changes" check either. You could have
used the same diff-index check in front of "reset --hard".
Moreover, in your original sequence above, doesn't "git checkout
integration" list your local changes when you have any, and wouldn't that
be a clue enough that the next "reset --hard origin" would discard them?
Absolutely.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html