<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git-todo/src, branch master</title>
<subtitle>Find recent TODO lines in a Git repository</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-todo/'/>
<entry>
<title>write_since(): Output file paths relative to the current directory</title>
<updated>2020-10-17T13:27:55+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2020-10-17T13:27:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-todo/commit/?id=b6b137d1815a131372956fbdd3edba7d6bafc3e6'/>
<id>b6b137d1815a131372956fbdd3edba7d6bafc3e6</id>
<content type='text'>
Previously, the file paths of TODO lines in the output were relative to
the repository root. When you're in a subdirectory, though, this makes
them harder to work with, as they're relative paths, but aren't relative
to the current working directory.

Change the file path output so that paths are relative to the current
directory instead of the repo root.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, the file paths of TODO lines in the output were relative to
the repository root. When you're in a subdirectory, though, this makes
them harder to work with, as they're relative paths, but aren't relative
to the current working directory.

Change the file path output so that paths are relative to the current
directory instead of the repo root.
</pre>
</div>
</content>
</entry>
<entry>
<title>write_since(): Include TODO lines from untracked files</title>
<updated>2020-10-07T23:10:48+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2020-10-07T23:10:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-todo/commit/?id=0497616cba162ff1dd9030d068caf16aa44bd3d3'/>
<id>0497616cba162ff1dd9030d068caf16aa44bd3d3</id>
<content type='text'>
Previously, untracked files were not included in the diff, so TODO lines
in those files would not be printed by the program.

Add the untracked `DiffOptions` to include the content of these files
when searching for TODOs.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, untracked files were not included in the diff, so TODO lines
in those files would not be printed by the program.

Add the untracked `DiffOptions` to include the content of these files
when searching for TODOs.
</pre>
</div>
</content>
</entry>
<entry>
<title>main(): Open repository even if PWD is a subdirectory</title>
<updated>2020-10-07T18:56:00+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2020-10-07T18:56:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-todo/commit/?id=255673b983a675e062eb0f3c4ea2017c47e048d1'/>
<id>255673b983a675e062eb0f3c4ea2017c47e048d1</id>
<content type='text'>
Previously, running `git todo` outside the root of the repository would
result in this error:

    error: unable to open repository: could not find repository from '.'; class=Repository (6); code=NotFound (-3)

It turns out the `open()` method expects the given path to be the
repository root. Use `open_from_env()` instead, which functions more
like regular Git commands.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, running `git todo` outside the root of the repository would
result in this error:

    error: unable to open repository: could not find repository from '.'; class=Repository (6); code=NotFound (-3)

It turns out the `open()` method expects the given path to be the
repository root. Use `open_from_env()` instead, which functions more
like regular Git commands.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add license (GNU GPLv3+)</title>
<updated>2020-10-03T15:47:04+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2020-10-03T15:47:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-todo/commit/?id=9bf60812f53f47a3c05b9a8412e45d1f633f7f3f'/>
<id>9bf60812f53f47a3c05b9a8412e45d1f633f7f3f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>main.rs: Add version command line option</title>
<updated>2020-09-17T01:51:34+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2020-09-17T01:51:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-todo/commit/?id=2abaebd602a528ee86558ee6a20189186499d4f7'/>
<id>2abaebd602a528ee86558ee6a20189186499d4f7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>lib.rs: Add doc comments</title>
<updated>2020-09-17T01:04:45+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2020-09-17T01:04:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-todo/commit/?id=be7ba88e7d746936b7bc3ccd0ea83f46937610fe'/>
<id>be7ba88e7d746936b7bc3ccd0ea83f46937610fe</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>main.rs: Error when more than one ref argument is given</title>
<updated>2020-09-17T00:34:00+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2020-09-17T00:34:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-todo/commit/?id=e6dee128a2e1cf051fd4f8f2ee810ee0a9a3c7c0'/>
<id>e6dee128a2e1cf051fd4f8f2ee810ee0a9a3c7c0</id>
<content type='text'>
Since it doesn't really make sense to take multiple refs, don't allow
more than one. We can only diff between two trees, and one is fixed as
the workdir.

Also learned that to get an exit code from a `system()` call in Perl,
you have to shift `$?` by 8
(https://perldoc.perl.org/functions/system.html).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since it doesn't really make sense to take multiple refs, don't allow
more than one. We can only diff between two trees, and one is fixed as
the workdir.

Also learned that to get an exit code from a `system()` call in Perl,
you have to shift `$?` by 8
(https://perldoc.perl.org/functions/system.html).
</pre>
</div>
</content>
</entry>
<entry>
<title>main.rs: Add `-h` help flag</title>
<updated>2020-09-17T00:01:17+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2020-09-16T23:58:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-todo/commit/?id=664b4d1f0bca4891e06dc7a3cb179bed7a842bb1'/>
<id>664b4d1f0bca4891e06dc7a3cb179bed7a842bb1</id>
<content type='text'>
Print usage information with `-h`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Print usage information with `-h`.
</pre>
</div>
</content>
</entry>
<entry>
<title>main.rs: Fix ref parsing</title>
<updated>2020-09-16T23:33:27+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2020-09-16T23:33:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-todo/commit/?id=9e910646a5c60007f10e8ea69a7120d50b4868e7'/>
<id>9e910646a5c60007f10e8ea69a7120d50b4868e7</id>
<content type='text'>
Turns out `refname_to_id()` wasn't the right function to get a
reference/oid/object from a ref name. Use `revparse_single()` instead to
get a usable reference object.

Add a test for custom diff bases.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Turns out `refname_to_id()` wasn't the right function to get a
reference/oid/object from a ref name. Use `revparse_single()` instead to
get a usable reference object.

Add a test for custom diff bases.
</pre>
</div>
</content>
</entry>
<entry>
<title>main.rs: Remove `unwrap()`s and handle errors</title>
<updated>2020-09-16T22:34:44+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2020-09-16T22:34:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-todo/commit/?id=0c0072f1cd16850c648bd5ccd694971e4e24f5b4'/>
<id>0c0072f1cd16850c648bd5ccd694971e4e24f5b4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
