From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Tom Prince <tom.prince@ualberta.net>
Cc: Benoit SIGOURE <tsuna@lrde.epita.fr>,
Neil Macneale <mac4-git@theory.org>, git <git@vger.kernel.org>
Subject: Re: Stashing untracked files
Date: Sun, 30 Sep 2007 00:09:00 +0100 (BST) [thread overview]
Message-ID: <Pine.LNX.4.64.0709300007370.28395@racer.site> (raw)
In-Reply-To: <20070929222320.GB2947@hermes.priv>
Hi,
On Sat, 29 Sep 2007, Tom Prince wrote:
> > > You could stash untracked files that are not ignored (I personally
> > > ignore *.o, *.a and the like).
> >
> > And what if you happen to forget to ignore that? Or if you happen to
> > have an strace log in some file (which you did not ignore either)?
> >
> > Thanks, but I think the semantics of git stash is pretty well defined.
> > And it means that you stash away _tracked_ content that was not yet
> > committed.
> >
> > I mean, you can have your desired behaviour with
> >
> > $ git add .
> > $ git stash
> >
> > but if we were to fulfil your wish and change the default behaviour,
> > there is no way back to the current behaviour (which I happen to find
> > pretty sane).
>
> But
>
> git add .
> git stash
> git stash apply
>
> will not be a no-op any more.
It never was. (Or did you mean "git stash apply --index"?)
> It doesn't need to be a default, but there are certainly times when I
> would find the option to stash untracked files convenient.
But then I'll have to ask you why the untracked files, which are not
touched by git, have to be stashed anyway?
I'm seriously thinking that we are in deep "XY problem" land here.
Ciao,
Dscho
next prev parent reply other threads:[~2007-09-29 23:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-29 18:27 Stashing untracked files Neil Macneale
2007-09-29 21:03 ` Johannes Schindelin
2007-09-29 21:10 ` Benoit SIGOURE
2007-09-29 21:46 ` Neil Macneale
2007-09-29 22:00 ` Johannes Schindelin
2007-09-30 3:59 ` Neil Macneale
2007-09-30 8:41 ` Steffen Prohaska
2007-09-30 13:18 ` Wincent Colaiuta
2007-09-29 21:51 ` Johannes Schindelin
2007-09-29 22:23 ` Tom Prince
2007-09-29 23:09 ` Johannes Schindelin [this message]
2007-09-30 20:44 ` Tom Tobin
2007-09-30 21:25 ` Johannes Schindelin
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=Pine.LNX.4.64.0709300007370.28395@racer.site \
--to=johannes.schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=mac4-git@theory.org \
--cc=tom.prince@ualberta.net \
--cc=tsuna@lrde.epita.fr \
/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).