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

RE: Git feature request: Option to force Git to abort a checkout if working directory is dirty (i.e. disregarding the check for conflicts)

From
JBJonas Bang <email@jonasbang.dk>
Date
Apr 3, 2014, 18:42 UTC
Message-ID
<000601cf4f6c$81b72740$852575c0$@jonasbang.dk>
In-Reply-To
<xmqq7g77vcnk.fsf@gitster.dls.corp.google.com>
Show 21 quoted lines
> "Jonas Bang" <email@jonasbang.dk> writes:
> 
> >> >> ...  The default behaviour would cover their use case so your
> >> >> proposal would not hurt them, but I wonder if there are things you
> >> >> could do to help them as well, perhaps by allowing this new
> >> >> configuration to express something like "local changes in these
> >> >> paths are excempt from this new check".
> >> >
> >> > Yes, those people would probably use the default 'false' behavior
> >> > as it is already. If they however would like to use e.g. the 'true'
> >> > or 'include-untracked' setting as a configuration variable, then
> >> > they can use the command line option 'false' if they wish to do a
> >> > 'git checkout' even with modified files in the working tree.
> >>
> >> So in short, you are saying that "The added code necessary to
> >> implement this feature will not help them in any way, it is just that
> >> we will make sure it does not hurt them".
> >
> > I didn't realize they needed help.
> 
> If so, then you could have just stated that way, instead of saying they
have
> an escape hatch ;-)
> 
> It is perfectly fine to answer to "I wonder if there are things you could
do?"
> with "No, I am not going to help them with this series; I only make sure I
do
Show 14 quoted lines
> not hurt them."  and that is perfectly fine, as long as:
> 
>  - you do not directly hurt them with your series; and
> 
>  - you do not make it harder for those who are interested in helping
>    them to build on top of your work in the future.
> 
> > How and who to decide if this is a reasonable feature request to accept?
> 
> As this project primarily works on "scratch your own itch" basis, somebody
> who (1) thinks that the proposed feature is worth having in our system and
> (2) is interested in working on it will pick it up.
> 
> If nobody is interested, then usually nothing happens.
Thanks for your replies and your time.

I'll cross my fingers for someone other than me and my identified group of users seeing the benefit of this feature request.

Br, Jonas

Previous: Junio C Hamano
Message 7 of 7 in “Git feature request: Option to force Git to abort a checkout if working directory is dirty (i.e. disregarding the check for conflicts)”
  1. Jonas BangMar 27, 2014
  2. Junio C HamanoMar 27, 2014
  3. Jonas BangMar 29, 2014
  4. Junio C HamanoMar 31, 2014
  5. Jonas BangApr 1, 2014
  6. Junio C HamanoApr 2, 2014
  7. Jonas BangApr 3, 2014

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.