git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Christoph Böhmwalder" <christoph@boehmwalder.at>
To: Elijah Newren <newren@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: Why is there no force pull?
Date: Sat, 9 Jun 2018 22:25:53 +0200	[thread overview]
Message-ID: <20180609202553.dvoirez5mi2r4ctk@christoph-lap> (raw)
In-Reply-To: <CABPp-BG9HQ4O8h7-b4oL7KLu+boe6-QV1fvcfW_4O3Rax3W_Hw@mail.gmail.com>

On Sat, Jun 09, 2018 at 01:04:30PM -0700, Elijah Newren wrote:
> Upon reading the subject and before reading the body, I assumed you
> were going to ask for a 'git pull --force' that would throw away
> *uncommitted* changes (i.e. do a 'git reset --hard HEAD' before the
> rest of the pull).  But then you asked for both uncommitted and
> committed changes to be thrown away.  That difference isn't something
> you have to consider with a push.
> 
> That might be a reason such an option would be confusing, or it might
> just be a warning to document the option carefully.  Anyway, thought
> I'd mention it.

Interesting, I hadn't taken that first scenario into consideration at
all. So I guess two very aptly named flags would be necessary to
implement this kind of feature...

--
Regards,
Christoph

  reply	other threads:[~2018-06-09 20:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-09 19:01 Why is there no force pull? Christoph Böhmwalder
2018-06-09 20:04 ` Elijah Newren
2018-06-09 20:25   ` Christoph Böhmwalder [this message]
2018-06-09 20:30   ` Ævar Arnfjörð Bjarmason
2018-06-10 16:11 ` Torsten Bögershausen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180609202553.dvoirez5mi2r4ctk@christoph-lap \
    --to=christoph@boehmwalder.at \
    --cc=git@vger.kernel.org \
    --cc=newren@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).