git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-reset: allow --soft in a bare repo

From
Jeff King <peff@peff.net>
Date
Jul 15, 2007, 01:02 UTC
Message-ID
<20070715010215.GA20676@sigill.intra.peff.net>
In-Reply-To
<7v7ip3jsf8.fsf@assigned-by-dhcp.cox.net>
On Sat, Jul 14, 2007 at 01:33:31AM -0700, Junio C Hamano wrote:
> > since git-branch is usually used for _making_ a branch, whereas
> "branch -f" is very often used to "reset the branch tip".  My
> git day typically begins with "branch -f pu next".
I think we just have a different perspective of what is "usual" here.
> Actually, after thinking about this a bit more, I have become
> somewhat reluctant, as this might confuse new users by giving
> them a wrong mental model of what "reset" is about.

OK, as I said on irc, I don't think this is a huge issue in the first place, and your argument about encouraging a particular workflow for git-reset makes some sense (even if that hasn't been my approach to git-reset in the past).

-Peff
Previous: Junio C Hamano
Message 5 of 5 in “git-reset: allow --soft in a bare repo”
  1. git-reset: allow --soft in a bare repoJeff King, Jul 14, 2007
  2. Junio C HamanoJul 14, 2007
  3. Jeff KingJul 14, 2007
  4. Junio C HamanoJul 14, 2007
  5. Jeff KingJul 15, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.