git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <junkio@cox.net>
To: Peter Baumann <Peter.B.Baumann@stud.informatik.uni-erlangen.de>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] git-reset [--mixed] <tree> [--] <paths>...
Date: Thu, 14 Dec 2006 12:41:39 -0800	[thread overview]
Message-ID: <7v3b7i2osc.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <slrneo2atm.nqa.Peter.B.Baumann@xp.machine.xx> (Peter Baumann's message of "Thu, 14 Dec 2006 11:47:18 +0100")

Peter Baumann <Peter.B.Baumann@stud.informatik.uni-erlangen.de>
writes:

> Why not make
>
> 	git-reset --hard <treeish> -- file
>
> aquivalent to
>
> 	git-checkout <treeish> -- file

Theoretically we could, but I'd rather keep "reset --hard"
something that people would think a bit about before actually
running (I am not enthused about giving "reset --mixed" this
feature for the same reason, but I think it is safe enough).

I'd want to avoid overloading different meanings to the --hard
form.  Mis-typing checkout (say, accidentally having <RETURN>
before "-- file" part while cut & paste) would not be so
dangeous; mis-typing "reset --hard" the same way could be
disastrous.

> PS:	Your patch didn't apply cleanly.

As I said there is one bug I've fixed in my tree but the
branches were not pushed out yet.

      reply	other threads:[~2006-12-14 20:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-14  9:24 [PATCH] git-reset [--mixed] <tree> [--] <paths> Junio C Hamano
2006-12-14 10:02 ` Junio C Hamano
2006-12-14 10:47 ` Peter Baumann
2006-12-14 20:41   ` Junio C Hamano [this message]

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=7v3b7i2osc.fsf@assigned-by-dhcp.cox.net \
    --to=junkio@cox.net \
    --cc=Peter.B.Baumann@stud.informatik.uni-erlangen.de \
    --cc=git@vger.kernel.org \
    /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).