From: Jonathan Nieder <jrnieder@gmail.com>
To: Dimitar Bonev <dsbonev@gmail.com>
Cc: Thomas Rast <trast@inf.ethz.ch>, git@vger.kernel.org
Subject: Re: Add porcelain command to revert a single staged file to its HEAD state while preserving its staged state
Date: Sat, 4 May 2013 11:48:57 -0700 [thread overview]
Message-ID: <20130504184857.GC25863@elie.Belkin> (raw)
In-Reply-To: <CADeMBopNestsZT4maGr3+tdOBf_Q0ukUbRCbXyucOiZZeHx6nQ@mail.gmail.com>
Dimitar Bonev wrote:
> @ThomasRast: 'git show HEAD:targetfile > targetfile' was proposed in
> the both links that I provided in the email that your replied to, but
> this introduces external dependency to the command interpreter to
> output the file unmodified but not every interpreter does this.
> PowerShell in particular modifies the encoding of the file
That would suggest that "git show" (along with similar commands like
"git diff") should learn an --output= option to avoid its output being
corrupted. It doesn't leave me very happy.
Is there no way to convince PowerShell to treat the output of a
command as binary data with no particular encoding?
next prev parent reply other threads:[~2013-05-04 18:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-04 7:34 Add porcelain command to revert a single staged file to its HEAD state while preserving its staged state Dimitar Bonev
2013-05-04 8:58 ` Thomas Rast
2013-05-04 11:13 ` Dimitar Bonev
2013-05-04 18:48 ` Jonathan Nieder [this message]
2013-05-04 19:56 ` Junio C Hamano
2013-05-04 20:01 ` Junio C Hamano
2013-05-04 22:46 ` Dimitar Bonev
2013-05-06 9:51 ` Thomas Rast
2013-05-06 14:52 ` Junio C Hamano
2013-05-07 20:39 ` Dimitar Bonev
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=20130504184857.GC25863@elie.Belkin \
--to=jrnieder@gmail.com \
--cc=dsbonev@gmail.com \
--cc=git@vger.kernel.org \
--cc=trast@inf.ethz.ch \
/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).