]> git.proxmox.com Git - libgit2.git/commit
describe example: function to add commits to opts
authorBoris Egorov <egorov@linux.com>
Fri, 6 Feb 2015 05:43:12 +0000 (11:43 +0600)
committerBoris Egorov <egorov@linux.com>
Fri, 6 Feb 2015 06:16:40 +0000 (12:16 +0600)
commit23d1dbe91963b70fbf05ce504d8d143c5e5ec568
tree6e3dbdf731449d0664d98876f17bbf99294d93ad
parent3db1b15e16c8501a74292855a9cb4be4c62dd929
describe example: function to add commits to opts

Add safe function to (a,rea)llocate memory which terminate example on
memory allocation failure.

Move code to allocate commits to its own function.
examples/describe.c