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

Re: [PATCH 2/3] sequencer: add "--reset-hard" option to "git sequencer--helper"

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Aug 4, 2009, 23:09 UTC
Message-ID
<alpine.LNX.2.00.0908041719060.2147@iabervon.org>
In-Reply-To
<200908042317.26408.chriscool@tuxfamily.org>
On Tue, 4 Aug 2009, Christian Couder wrote:
Show 10 quoted lines
> On Tuesday 04 August 2009, Daniel Barkalow wrote:
> > On Mon, 3 Aug 2009, Christian Couder wrote:
> > > This new option uses the "reset_almost_hard()" function to perform
> > > a reset.
> >
> > Shouldn't it make it possible to do an almost-hard reset (that is, keep a
> > dirty working tree's changes while changing the index and HEAD to a
> > different commit)?
> 
> Yeah, I will improve the documentation of this function as Junio requested.

It's not just the documentation; AFAICT, there's no way to get allow_dirty set, which in turn makes a bunch of this code unreachable. It would be good to expose that from the start, even if nothing uses it immediately, so that people to see whether it behaves as expected.

	-Daniel
*This .sig left intentionally blank*
Previous: Christian Couder
Message 4 of 4 in “sequencer: add "--reset-hard" option to "git sequencer--helper"”
  1. 2/3 sequencer: add "--reset-hard" option to "git sequencer--helper"Christian Couder, Aug 3, 2009
  2. Daniel BarkalowAug 4, 2009
  3. Christian CouderAug 4, 2009
  4. Daniel BarkalowAug 4, 2009

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.