The show works great with text files but files that are in binary per, 
gitattributes and chtag, do not come out usable.  All the files have been 
transferred from the IBM z/OS mainframe using cp and they can be transferred 
back and all work - both text and binary.  But when trying to use 'git show' to 
look at a prior version of one of the binary files results in a file that is 
not usable and I'm not sure how more to explain that.  When I look at the 
current file in the directory it looks fine.


Lionel B. Dyck <sdg><
Website: https://www.lbdsoftware.com

"Worry more about your character than your reputation.  Character is what you 
are, reputation merely what others think you are." - John Wooden

-----Original Message-----
From: git-users@googlegroups.com <git-users@googlegroups.com> On Behalf Of 
Konstantin Khomoutov
Sent: Friday, July 17, 2020 10:53 AM
To: git-users@googlegroups.com
Subject: Re: [git-users] git access to previous commit levels

On Fri, Jul 17, 2020 at 07:32:34AM -0500, lbd...@gmail.com wrote:

> My quandary: I want to retrieve a copy of an element from a previous commit.
[...]
> I've tried: git show <hash>:<file> > /tmp/file
> 
> And it works GREAT for text based elements. For binary elements the 
> results are useless.

Can you explain _why_ they are useless?
The indicated command streams the contents of the named file as recorded in the 
named commit to a file. The stream gets saved no matter whether you consider 
the file to be textual or binary - as on contemporary commodity operating 
systems such distinction does not exist. I mean, whether a file contains 
textual or binary data is strictly a matter of interpretation.

So what the problem really is?
I think we could provide better advice if we'd know.

[...]

--
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/20200717155244.5oqczevzrs4ulq7y%40carbon.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/072a01d65c54%24a6771a80%24f3654f80%24%40gmail.com.

Reply via email to