<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git-branch-list, branch v0.1.0</title>
<subtitle>A Git add-on that maintains a list of branches that can be checked out quickly</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-branch-list/'/>
<entry>
<title>Increase version v0.0.1 -&gt; v0.1.0</title>
<updated>2018-03-21T17:16:38+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-21T17:16:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-branch-list/commit/?id=7ad10f6c3baee96da2d71a7cd206c3be93e380ab'/>
<id>7ad10f6c3baee96da2d71a7cd206c3be93e380ab</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add CHANGELOG</title>
<updated>2018-03-21T17:13:31+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-21T17:13:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-branch-list/commit/?id=b21704bd1fd835564b38c89f5b99209ebbfb4522'/>
<id>b21704bd1fd835564b38c89f5b99209ebbfb4522</id>
<content type='text'>
Describe new features since the initial release.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Describe new features since the initial release.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'drop-multiple-branches'</title>
<updated>2018-03-21T17:13:00+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-21T17:13:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-branch-list/commit/?id=25991886eba08a3baa418d7b5f4e5e4eaa5df23b'/>
<id>25991886eba08a3baa418d7b5f4e5e4eaa5df23b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch 'clear-command'</title>
<updated>2018-03-21T17:11:48+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-21T17:11:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-branch-list/commit/?id=9a4abcc9b0e1121c89ae8a12be8eeb291e7dd34e'/>
<id>9a4abcc9b0e1121c89ae8a12be8eeb291e7dd34e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>git-branch-list(drop): Add support for multiple branch arguments</title>
<updated>2018-03-21T16:38:54+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-21T16:38:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-branch-list/commit/?id=64fe9fc7fa4e073d6bb97cdee0d2914abb943391'/>
<id>64fe9fc7fa4e073d6bb97cdee0d2914abb943391</id>
<content type='text'>
Allow users to drop multiple branches in a single command. Instead of:

    $ git branch-list 1
    $ git branch-list 3
    $ git branch-list 4

you can now do:

    $ git branch-list 1 3 4

This makes it easier to drop a bunch of branches that you no longer need
saved.

drop_branch():
* No longer uses `branch_or_current_branch()`. Kept that function around
  because I didn't feel like touching the `save_branch()` code, and
  extracted the Git command to get the current branch to a new
  `current_branch()` function.
* Used one loop to get branch names from IDs if necessary and feed these
  into a Bash array. A second loop just after deletes all branches in
  the branch array using the `sed` method from before. Didn't feel like
  changing the `sed` command so did it this way. That said, we're
  probably going to have to come back to it sooner or later because it's
  not going to be able to handle branch names containing slashes.

main `case`:
Change `drop_branch` call to pass it all command line arguments, except
the 0th argument, which is the "drop" command (this is why we `shift`
before calling the function).

101-drop-accepts-multiple-branch-arguments.t:
Update test expectation which had an extra newline at the start of the
string which isn't there in the real `git branch-list` output.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allow users to drop multiple branches in a single command. Instead of:

    $ git branch-list 1
    $ git branch-list 3
    $ git branch-list 4

you can now do:

    $ git branch-list 1 3 4

This makes it easier to drop a bunch of branches that you no longer need
saved.

drop_branch():
* No longer uses `branch_or_current_branch()`. Kept that function around
  because I didn't feel like touching the `save_branch()` code, and
  extracted the Git command to get the current branch to a new
  `current_branch()` function.
* Used one loop to get branch names from IDs if necessary and feed these
  into a Bash array. A second loop just after deletes all branches in
  the branch array using the `sed` method from before. Didn't feel like
  changing the `sed` command so did it this way. That said, we're
  probably going to have to come back to it sooner or later because it's
  not going to be able to handle branch names containing slashes.

main `case`:
Change `drop_branch` call to pass it all command line arguments, except
the 0th argument, which is the "drop" command (this is why we `shift`
before calling the function).

101-drop-accepts-multiple-branch-arguments.t:
Update test expectation which had an extra newline at the start of the
string which isn't there in the real `git branch-list` output.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add `drop` command tests</title>
<updated>2018-03-21T16:17:26+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-21T16:17:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-branch-list/commit/?id=565c054f57248409eddc7ebe20629b85093f7c55'/>
<id>565c054f57248409eddc7ebe20629b85093f7c55</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>git-branch-list(drop): Show error message when branch not found</title>
<updated>2018-03-18T19:36:21+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-18T19:36:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-branch-list/commit/?id=a33c35b0561162306169fae17452a5b521ece067'/>
<id>a33c35b0561162306169fae17452a5b521ece067</id>
<content type='text'>
Instead of displaying the underlying errors:

    sed: first RE may not be empty
    rm: .git/info/git-branch-list.bak: No such file or directory

display a meaningful error message from our program to let users know
that the given branch couldn't be found in the branch-list database.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Instead of displaying the underlying errors:

    sed: first RE may not be empty
    rm: .git/info/git-branch-list.bak: No such file or directory

display a meaningful error message from our program to let users know
that the given branch couldn't be found in the branch-list database.
</pre>
</div>
</content>
</entry>
<entry>
<title>t/: Move `$BIN` variable to module</title>
<updated>2018-03-18T17:25:38+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-18T17:25:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-branch-list/commit/?id=975b9d397076e26ba205a71cac4a5db190d873f9'/>
<id>975b9d397076e26ba205a71cac4a5db190d873f9</id>
<content type='text'>
In order to be able to easily reuse the `$BIN` variable we created in
the test for the `clear` sub-command, move it to a Perl module that can
be included in other tests.

Add the `t/` directory to the include path when running `prove` to
ensure that `bin.pm` can be found and included.

Thanks to these resources for explaining Perl modules:
https://perlmaven.com/how-to-create-a-perl-module-for-code-reuse
https://stackoverflow.com/questions/23899121/perl-declare-and-export-variables-from-a-module/23900384#23900384
https://stackoverflow.com/questions/17931981/what-is-isa-in-perl/17932340#17932340
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In order to be able to easily reuse the `$BIN` variable we created in
the test for the `clear` sub-command, move it to a Perl module that can
be included in other tests.

Add the `t/` directory to the include path when running `prove` to
ensure that `bin.pm` can be found and included.

Thanks to these resources for explaining Perl modules:
https://perlmaven.com/how-to-create-a-perl-module-for-code-reuse
https://stackoverflow.com/questions/23899121/perl-declare-and-export-variables-from-a-module/23900384#23900384
https://stackoverflow.com/questions/17931981/what-is-isa-in-perl/17932340#17932340
</pre>
</div>
</content>
</entry>
<entry>
<title>git-branch-list: Add `clear` command</title>
<updated>2018-03-18T15:22:07+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-18T15:22:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-branch-list/commit/?id=4132e288ba6af49cf726d71785ec1f2ff9f39270'/>
<id>4132e288ba6af49cf726d71785ec1f2ff9f39270</id>
<content type='text'>
A new sub-command that clears the entire branch list. This makes it easy
to remove everything when all the branches in the list are stale (e.g.
everything's been merged already).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
A new sub-command that clears the entire branch list. This makes it easy
to remove everything when all the branches in the list are stale (e.g.
everything's been merged already).
</pre>
</div>
</content>
</entry>
<entry>
<title>Add TAP test structure</title>
<updated>2018-03-18T15:05:30+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2018-03-18T15:05:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-branch-list/commit/?id=a47bf8ba13440c9691bf002a5bf687175d9c0937'/>
<id>a47bf8ba13440c9691bf002a5bf687175d9c0937</id>
<content type='text'>
Copied and modified from:

https://github.com/teddywing/git-hook-pre-commit-python-javascript-syntax-linter/blob/efa1909/t/001-setup.t
https://github.com/teddywing/git-hook-pre-commit-python-javascript-syntax-linter/blob/f6bb0d3/t/999-teardown.t
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Copied and modified from:

https://github.com/teddywing/git-hook-pre-commit-python-javascript-syntax-linter/blob/efa1909/t/001-setup.t
https://github.com/teddywing/git-hook-pre-commit-python-javascript-syntax-linter/blob/f6bb0d3/t/999-teardown.t
</pre>
</div>
</content>
</entry>
</feed>
