<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/examples, branch cmn/prettify-docs</title>
<subtitle>github.com: libgit2/libgit2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/'/>
<entry>
<title>examples: network: fix Win32 linking errors due to getline</title>
<updated>2017-11-06T14:48:50+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2017-11-06T12:47:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=bf15dbf6cf19146082c1245e9db4016d773dbe7e'/>
<id>bf15dbf6cf19146082c1245e9db4016d773dbe7e</id>
<content type='text'>
The getline(3) function call is not part of ISO C and, most importantly,
it is not implemented on Microsoft Windows platforms. As our networking
example code makes use of getline, this breaks builds on MSVC and MinGW.
As this code wasn't built prior to the previous commit, this was never
noticed.

Fix the error by instead implementing a `readline` function, which
simply reads the password from stdin until it reads a newline
character.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The getline(3) function call is not part of ISO C and, most importantly,
it is not implemented on Microsoft Windows platforms. As our networking
example code makes use of getline, this breaks builds on MSVC and MinGW.
As this code wasn't built prior to the previous commit, this was never
noticed.

Fix the error by instead implementing a `readline` function, which
simply reads the password from stdin until it reads a newline
character.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #4373 from cjhoward92/examples/log-show-log-size</title>
<updated>2017-10-29T14:32:18+00:00</updated>
<author>
<name>Carlos Martín Nieto</name>
<email>carlosmn@github.com</email>
</author>
<published>2017-10-29T14:32:18+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=9e3fb594d644955decd3ce815e94a8e627acf83d'/>
<id>9e3fb594d644955decd3ce815e94a8e627acf83d</id>
<content type='text'>
example-log: add support for --log-size</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
example-log: add support for --log-size</pre>
</div>
</content>
</entry>
<entry>
<title>examples: remove Makefile</title>
<updated>2017-10-20T13:05:26+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2017-10-20T13:05:26+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=9b12eb6f78b8f285055567873ad844d119d920b3'/>
<id>9b12eb6f78b8f285055567873ad844d119d920b3</id>
<content type='text'>
Back in the days when libgit2 was still young, libgit2 was using plain
Makefiles as build infrastructure. We later changed that to instead use
the CMake build system to make cross-platform development easier. In the
process, we forgot to remove the Makefile from our examples directory,
which is fixed by this commit here. Furthermore, remove the accompanying
.gitignore file, which ignores build outputs. As we do out-of-tree
builds only nowadays, no output is generated in that directory anymore.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Back in the days when libgit2 was still young, libgit2 was using plain
Makefiles as build infrastructure. We later changed that to instead use
the CMake build system to make cross-platform development easier. In the
process, we forgot to remove the Makefile from our examples directory,
which is fixed by this commit here. Furthermore, remove the accompanying
.gitignore file, which ignores build outputs. As we do out-of-tree
builds only nowadays, no output is generated in that directory anymore.
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: log: pass options pointer to print_commit</title>
<updated>2017-10-13T14:18:54+00:00</updated>
<author>
<name>Carson Howard</name>
<email>cjhoward92@users.noreply.github.com</email>
</author>
<published>2017-10-13T14:18:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=12a888d557bf2527ca4e7b20db3c5a623a8530f2'/>
<id>12a888d557bf2527ca4e7b20db3c5a623a8530f2</id>
<content type='text'>
Cleaned up the PR to address styling issues.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Cleaned up the PR to address styling issues.</pre>
</div>
</content>
</entry>
<entry>
<title>example-log: add support for --log-size</title>
<updated>2017-10-12T04:47:58+00:00</updated>
<author>
<name>Carson Howard</name>
<email>carsonh@axosoft.com</email>
</author>
<published>2017-10-12T04:47:58+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=1436b0e11ca9e6567d21fe3ebd74dda4c405c4b2'/>
<id>1436b0e11ca9e6567d21fe3ebd74dda4c405c4b2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix Issue #4047 Check return codes and free objects</title>
<updated>2017-10-07T00:29:21+00:00</updated>
<author>
<name>Douglas Swanson</name>
<email>dglsswnsn@gmail.com</email>
</author>
<published>2017-01-01T16:28:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=f4770e47573c2e8dff00e8e7263ef8f30421aaed'/>
<id>f4770e47573c2e8dff00e8e7263ef8f30421aaed</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>cmake: keep track of libraries and includes via lists</title>
<updated>2017-08-16T05:12:38+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2017-06-28T10:51:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=8e31cc258008630e5790ab968bf435c891b74da9'/>
<id>8e31cc258008630e5790ab968bf435c891b74da9</id>
<content type='text'>
Later on, we will move detection of required libraries, library
directories as well as include directories into a separate
CMakeLists.txt file inside of the source directory. Obviously, we want
to avoid duplication here regarding these parameters.

To prepare for the split, put the parameters into three variables
LIBGIT2_LIBS, LIBGIT2_LIBDIRS and LIBGIT2_INCLUDES, tracking the
required libraries, linking directory as well as include directories.
These variables can later be exported into the parent scope from inside
of the source build instructions, making them readily available for the
other subdirectories.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Later on, we will move detection of required libraries, library
directories as well as include directories into a separate
CMakeLists.txt file inside of the source directory. Obviously, we want
to avoid duplication here regarding these parameters.

To prepare for the split, put the parameters into three variables
LIBGIT2_LIBS, LIBGIT2_LIBDIRS and LIBGIT2_INCLUDES, tracking the
required libraries, linking directory as well as include directories.
These variables can later be exported into the parent scope from inside
of the source build instructions, making them readily available for the
other subdirectories.
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: network: refactor credentials callback</title>
<updated>2017-05-15T05:34:03+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2017-05-03T10:25:48+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=f0ca00e013885479228c4f076989566a2b77221b'/>
<id>f0ca00e013885479228c4f076989566a2b77221b</id>
<content type='text'>
The credentials callback reads the username and password via scanf into
fixed-length arrays. While these are simply examples and as such not as
interesting, the unchecked return value of scanf causes GCC to emit
warnings. So while we're busy to shut up GCC, we also fix the possible
overflow of scanf by using getline instead.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The credentials callback reads the username and password via scanf into
fixed-length arrays. While these are simply examples and as such not as
interesting, the unchecked return value of scanf causes GCC to emit
warnings. So while we're busy to shut up GCC, we also fix the possible
overflow of scanf by using getline instead.
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: general: fix memory leaks</title>
<updated>2017-01-12T21:04:36+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2017-01-12T21:02:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=f9ea8c6a142d5c9c3248123acab5ea3950dfc049'/>
<id>f9ea8c6a142d5c9c3248123acab5ea3950dfc049</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>examples: general: display config only if it was found</title>
<updated>2017-01-12T21:01:45+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2017-01-12T21:01:45+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=ed2b1c7e75ab9d8aa4b23eec81bb023bcfdabbda'/>
<id>ed2b1c7e75ab9d8aa4b23eec81bb023bcfdabbda</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
