<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git-todo/t, 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>t/104-works-outside-the-repo-root.t: Remove subdir in teardown</title>
<updated>2020-10-17T00:16:11+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2020-10-17T00:13:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-todo/commit/?id=a9608c229c49bc408855ba4c1e321e2e2327163a'/>
<id>a9608c229c49bc408855ba4c1e321e2e2327163a</id>
<content type='text'>
I wasn't clearning up the "subdir" directory created in this test. Tried
adding a new test that used the same subdirectory name, which failed to
create the directory because it was already created here.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I wasn't clearning up the "subdir" directory created in this test. Tried
adding a new test that used the same subdirectory name, which failed to
create the directory because it was already created here.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add tests for modified files in the working directory and index</title>
<updated>2020-10-07T23:12:41+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2020-10-07T23:12:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-todo/commit/?id=d37865a1f33a4ca0da06b71077000f5f4c52dee4'/>
<id>d37865a1f33a4ca0da06b71077000f5f4c52dee4</id>
<content type='text'>
Add a couple tests to confirm that the program works for files that have
been modified:

* in the working directory but not staged
* in the index but not committed
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a couple tests to confirm that the program works for files that have
been modified:

* in the working directory but not staged
* in the index but not committed
</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>Remove old files</title>
<updated>2020-10-03T15:51:33+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2020-10-03T15:51:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-todo/commit/?id=90969d5e9defcd593c7acc416247cd7a6b04e532'/>
<id>90969d5e9defcd593c7acc416247cd7a6b04e532</id>
<content type='text'>
These files were for ideas and explorations of solutions. We now have a
working implementation independent of them.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These files were for ideas and explorations of solutions. We now have a
working implementation independent of them.
</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: 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: 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>t/100-shows-todo-comments-since-fork-point.t: Update output</title>
<updated>2020-09-15T22:18:26+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2020-09-15T22:18:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-todo/commit/?id=e0b78f7f5112bc9c1b5b1e84d5efe65ede63e3d9'/>
<id>e0b78f7f5112bc9c1b5b1e84d5efe65ede63e3d9</id>
<content type='text'>
Update the expectation to include the file name and line number plus the
exact line content as printed by the command.

Remove the extra newline from the output so that now only a single
newline is printed.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update the expectation to include the file name and line number plus the
exact line content as printed by the command.

Remove the extra newline from the output so that now only a single
newline is printed.
</pre>
</div>
</content>
</entry>
</feed>
