<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libgit2.git/src/futils.h, branch ethomson/treebuilder_write</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>futils: fix order of declared parameters for `git_futils_fake_symlink`</title>
<updated>2020-05-12T19:37:18+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2020-05-12T19:35:07+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=a2eca682825523df8a03119ccd319519b52d341f'/>
<id>a2eca682825523df8a03119ccd319519b52d341f</id>
<content type='text'>
While the function `git_futils_fake_symlink` is declared with arguments
`new, old`, the implementation uses the reverse order `old, new`. Let's
fix the ordering issues to be `new, old` for both, which matches what
symlink(3P) has. While at it, we also rename these parameters: `old` and
`new` doesn't really make a lot of sense in the context of symlinks,
which is why this commit renames them to be called `target` and `path`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
While the function `git_futils_fake_symlink` is declared with arguments
`new, old`, the implementation uses the reverse order `old, new`. Let's
fix the ordering issues to be `new, old` for both, which matches what
symlink(3P) has. While at it, we also rename these parameters: `old` and
`new` doesn't really make a lot of sense in the context of symlinks,
which is why this commit renames them to be called `target` and `path`.
</pre>
</div>
</content>
</entry>
<entry>
<title>mmap: use a 64-bit signed type `off64_t` for mmap</title>
<updated>2019-11-25T02:18:28+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2019-06-23T16:09:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=8be12026a158f0836c73f6b9f33abab640d9a115'/>
<id>8be12026a158f0836c73f6b9f33abab640d9a115</id>
<content type='text'>
Prefer `off64_t` to `git_off_t` for internal visibility.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Prefer `off64_t` to `git_off_t` for internal visibility.
</pre>
</div>
</content>
</entry>
<entry>
<title>filestamp: use `uint64_t` for object size</title>
<updated>2019-11-22T04:18:54+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2019-11-22T04:18:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=6c13cf6dacf5f5f2f5ba4f28b3632f3f9df29b7c'/>
<id>6c13cf6dacf5f5f2f5ba4f28b3632f3f9df29b7c</id>
<content type='text'>
Instead of using a signed type (`off_t`) use an unsigned `uint64_t` for
the size of the files.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of using a signed type (`off_t`) use an unsigned `uint64_t` for
the size of the files.
</pre>
</div>
</content>
</entry>
<entry>
<title>futils_filesize: use `uint64_t` for object size</title>
<updated>2019-11-22T04:13:05+00:00</updated>
<author>
<name>Edward Thomson</name>
<email>ethomson@edwardthomson.com</email>
</author>
<published>2019-06-23T15:23:59+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=fb2198db6b48ce3c5e3cecaa03ecb179c5a02382'/>
<id>fb2198db6b48ce3c5e3cecaa03ecb179c5a02382</id>
<content type='text'>
Instead of using a signed type (`off_t`) use `uint64_t` for the maximum
size of files.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of using a signed type (`off_t`) use `uint64_t` for the maximum
size of files.
</pre>
</div>
</content>
</entry>
<entry>
<title>fileops: rename to "futils.h" to match function signatures</title>
<updated>2019-07-20T17:11:20+00:00</updated>
<author>
<name>Patrick Steinhardt</name>
<email>ps@pks.im</email>
</author>
<published>2019-06-29T07:17:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/libgit2.git/commit/?id=e54343a4024e75dfaa940e652c2c9799d33634b2'/>
<id>e54343a4024e75dfaa940e652c2c9799d33634b2</id>
<content type='text'>
Our file utils functions all have a "futils" prefix, e.g.
`git_futils_touch`. One would thus naturally guess that their
definitions and implementation would live in files "futils.h" and
"futils.c", respectively, but in fact they live in "fileops.h".

Rename the files to match expectations.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Our file utils functions all have a "futils" prefix, e.g.
`git_futils_touch`. One would thus naturally guess that their
definitions and implementation would live in files "futils.h" and
"futils.c", respectively, but in fact they live in "fileops.h".

Rename the files to match expectations.
</pre>
</div>
</content>
</entry>
</feed>
