From: Christian Couder <chriscool@tuxfamily.org>
To: Michael J Gruber <git@drmicha.warpmail.net>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: git replace woes: dirty stat with clean workdir
Date: Wed, 11 Nov 2009 00:33:46 +0100 [thread overview]
Message-ID: <200911110033.46546.chriscool@tuxfamily.org> (raw)
In-Reply-To: <4AF992F8.8010309@drmicha.warpmail.net>
Hi,
On mardi 10 novembre 2009, Michael J Gruber wrote:
> Hi there,
>
> when cooking up a "warning example" for git replace (don't draw
> premature conclusions when there are replaced objects) I came across the
> following problem: git status seems to compare the work dir with the
> tree of HEAD, not the replacing tree. Even deleting the index does not
> help.
Yeah, you are right. I must say that I never tested replacing trees before.
> [ The example also shows that we need a way to specify
> --no-replace-objects for gitk. Would easier if gitk really where git
> something. ]
Yeah, I think --no-replace-objects might not work well for shell scripts or
even commands that call other commands using run_command(). Perhaps we need
an environment variable GIT_NO_REPLACE_OBJECTS to be set by commands that
are passed --no-replace-objects and checked by all the commands. I will
have a look at that.
Thanks,
Christian.
prev parent reply other threads:[~2009-11-10 23:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-10 16:21 git replace woes: dirty stat with clean workdir Michael J Gruber
2009-11-10 23:33 ` Christian Couder [this message]
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=200911110033.46546.chriscool@tuxfamily.org \
--to=chriscool@tuxfamily.org \
--cc=git@drmicha.warpmail.net \
--cc=git@vger.kernel.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).