* [BUG] "git cat-file tree <sha1>" prints garbage
@ 2006-10-01 20:26 Sebastian Harl
2006-10-01 20:48 ` Johannes Schindelin
0 siblings, 1 reply; 2+ messages in thread
From: Sebastian Harl @ 2006-10-01 20:26 UTC (permalink / raw)
To: git
[-- Attachment #1: Type: text/plain, Size: 624 bytes --]
Hi,
When using "git cat-file tree <sha1>" to print a tree's content, it produces
garbage output like the following:
$ git cat-file -t c0cd1e4e1888be6a70d44476996ece8be1ab52a2
tree
$ git cat-file tree c0cd1e4e1888be6a70d44476996ece8be1ab52a2
100644 .gitignore%ëF7¦ùq¤¢«:yǽ100644
COPYINGoø|FdCbWÈê;»_"y£40000 Documentation>Ý¢ÞÀç $ë#ºâü100755
GIT-VERSION-GEN
[...]
Using "git cat-file -p <sha1>" works fine.
(The above example uses one of the latest commits of the git.git repository)
Cheers,
Sebastian
--
Sebastian "tokkee" Harl
GnuPG-ID: 0x8501C7FC
http://tokkee.org/
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [BUG] "git cat-file tree <sha1>" prints garbage
2006-10-01 20:26 [BUG] "git cat-file tree <sha1>" prints garbage Sebastian Harl
@ 2006-10-01 20:48 ` Johannes Schindelin
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Schindelin @ 2006-10-01 20:48 UTC (permalink / raw)
To: Sebastian Harl; +Cc: git
[-- Attachment #1: Type: TEXT/PLAIN, Size: 727 bytes --]
Hi,
On Sun, 1 Oct 2006, Sebastian Harl wrote:
> When using "git cat-file tree <sha1>" to print a tree's content, it produces
> garbage output like the following:
>
> $ git cat-file -t c0cd1e4e1888be6a70d44476996ece8be1ab52a2
> tree
> $ git cat-file tree c0cd1e4e1888be6a70d44476996ece8be1ab52a2
> 100644 .gitignore%ëF7¦ùq¤¢«:yǽ100644
> COPYINGoø|FdCbWÈê;»_"y£40000 Documentation>Ý¢ÞÀç $ë#ºâü100755
> GIT-VERSION-GEN
> [...]
>
> Using "git cat-file -p <sha1>" works fine.
> (The above example uses one of the latest commits of the git.git repository)
That is not a bug. "git cat-file tree <sha1>" produces the _exact_
contents of the object, while "-p" _pretty_-prints the contents.
Ciao,
Dscho
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-10-01 20:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-01 20:26 [BUG] "git cat-file tree <sha1>" prints garbage Sebastian Harl
2006-10-01 20:48 ` Johannes Schindelin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox