From: Sam Ravnborg <sam@ravnborg.org>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org, Linus Torvalds <torvalds@osdl.org>
Subject: Re: [PATCH] Introduce "reset type" flag to "git reset"
Date: Tue, 23 Aug 2005 22:26:37 +0200 [thread overview]
Message-ID: <20050823202637.GA8061@mars.ravnborg.org> (raw)
In-Reply-To: <7vu0hhzcj1.fsf@assigned-by-dhcp.cox.net>
> I am not sure what mixed reset (the current behaviour) is good
> for. If nobody comes up with a good use case it may not be a
> bad idea to remove it.
Using the principle of minimum suprise the --mixed should be removed.
--soft - undo the commit leaving all changes.
--hard - undo the commit and removing all changes
I'm a cogito user so not used to got options.
But --soft, --hard looks rather confusing to me.
Something like --force or --prune may be a bit more intuitive, and let
default behaviour be the one you name --soft for now.
I think it would make sense to be able to specify the topmost SHA1 (or
HEAD:5 or HEAD^^^^^) from where the reset should start.
Sam
next prev parent reply other threads:[~2005-08-23 20:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-23 1:07 [PATCH] Introduce "reset type" flag to "git reset" Junio C Hamano
2005-08-23 20:26 ` Sam Ravnborg [this message]
2005-08-23 22:08 ` Junio C Hamano
2005-08-24 0:13 ` Yasushi SHOJI
2005-08-24 0:22 ` Junio C Hamano
2005-08-24 0:41 ` Yasushi SHOJI
2005-08-24 18:35 ` Junio C Hamano
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=20050823202637.GA8061@mars.ravnborg.org \
--to=sam@ravnborg.org \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
--cc=torvalds@osdl.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).