mirror of
https://github.com/libgit2/libgit2.git
synced 2026-01-25 02:56:17 +00:00
examples: Don't print weird characters
This commit is contained in:
@@ -76,8 +76,7 @@ int main (int argc, char** argv)
|
||||
git_oid_fromstr(&oid, hex);
|
||||
|
||||
// Once we've converted the string into the oid value, we can get the raw
|
||||
// value of the SHA.
|
||||
printf("Raw 20 bytes: [%.20s]\n", (&oid)->id);
|
||||
// value of the SHA by accessing `oid.id`
|
||||
|
||||
// Next we will convert the 20 byte raw SHA1 value to a human readable 40
|
||||
// char hex value.
|
||||
|
||||
Reference in New Issue
Block a user