We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d9dbb8 commit 66ac3ceCopy full SHA for 66ac3ce
docs/guides/101-samples/index.md
@@ -247,11 +247,6 @@ int error = git_oid_fromstr(&oid, sha);
247
/* Make a shortened printable string from an OID */
248
char shortsha[10] = {0};
249
git_oid_tostr(shortsha, 9, &oid);
250
-
251
-/* Or libgit2 can allocate a buffer for you */
252
-char *newsha = git_oid_allocfmt(&oid);
253
-/* … */
254
-free(newsha);
255
```
256
257
([`git_oid_fromstr`](http://libgit2.github.com/libgit2/#HEAD/group/oid/git_oid_fromstr),
0 commit comments