<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git-todo/t, branch v0.0.2</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>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>
<entry>
<title>Add t/101-removed-todo-lines-not-included.t</title>
<updated>2020-09-15T19:25:18+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2020-09-15T19:25:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-todo/commit/?id=1e73d3db263c9986ff94a3ef3cf258ed5b8b32e9'/>
<id>1e73d3db263c9986ff94a3ef3cf258ed5b8b32e9</id>
<content type='text'>
Test that removed TODO lines don't appear in the command's output.

This currently gives the following error:

    thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/main.rs:39:43
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
    thread 'main' panicked at 'Box&lt;Any&gt;', $HOME/.cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.13.11/src/panic.rs:27:9
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Test that removed TODO lines don't appear in the command's output.

This currently gives the following error:

    thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/main.rs:39:43
    note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
    thread 'main' panicked at 'Box&lt;Any&gt;', $HOME/.cargo/registry/src/github.com-1ecc6299db9ec823/git2-0.13.11/src/panic.rs:27:9
</pre>
</div>
</content>
</entry>
<entry>
<title>t/100-shows-todo-comments-since-fork-point.t: Fix teardown</title>
<updated>2020-09-15T19:24:08+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2020-09-15T19:24:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-todo/commit/?id=efdae5ae6ab68738492c339913d349db01476cbf'/>
<id>efdae5ae6ab68738492c339913d349db01476cbf</id>
<content type='text'>
Need to restore the repo state back to the master branch and remove the
new branch created in this test.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Need to restore the repo state back to the master branch and remove the
new branch created in this test.
</pre>
</div>
</content>
</entry>
</feed>
