<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git-checkout-history/utils, branch master</title>
<subtitle>Stores history of git branches recently checked out and provides a way to quickly return to those branches</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-checkout-history/'/>
<entry>
<title>Merge branch 'separate-branch-history-by-repository'</title>
<updated>2015-01-12T00:09:14+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-01-12T00:09:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-checkout-history/commit/?id=ceb22064e29582a85e3b4df6e87eb1397e8337b7'/>
<id>ceb22064e29582a85e3b4df6e87eb1397e8337b7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>utils.go: Change error message when no history file</title>
<updated>2015-01-12T00:01:52+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-01-12T00:01:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-checkout-history/commit/?id=15bf95e6862ebb9bab17ee09b8e2886c746c9a70'/>
<id>15bf95e6862ebb9bab17ee09b8e2886c746c9a70</id>
<content type='text'>
When getting a list of branches but the file doesn't exist, print a
custom error message that informs users that it's necessary to run
`git-checkout-store` before `git-checkout-history` will be able to do
anything.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When getting a list of branches but the file doesn't exist, print a
custom error message that informs users that it's necessary to run
`git-checkout-store` before `git-checkout-history` will be able to do
anything.
</pre>
</div>
</content>
</entry>
<entry>
<title>utils.go: Separate history by repository</title>
<updated>2015-01-11T23:15:31+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-01-11T23:15:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-checkout-history/commit/?id=b89de92a5bb69e40f80e51ab4d4847c78598e48e'/>
<id>b89de92a5bb69e40f80e51ab4d4847c78598e48e</id>
<content type='text'>
Use a different history list for each repo.

Now the YAML file is organised in this way:

    /path/to/repo:
      - branch name
      - branch name
    /path/to/another/repo:
      - branch name
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use a different history list for each repo.

Now the YAML file is organised in this way:

    /path/to/repo:
      - branch name
      - branch name
    /path/to/another/repo:
      - branch name
</pre>
</div>
</content>
</entry>
<entry>
<title>utils.go: Trim trailing newline on repo directory</title>
<updated>2015-01-03T03:01:39+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2015-01-03T03:01:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-checkout-history/commit/?id=faad1a93bf0cbadc06f245a46d1057ced4f3710c'/>
<id>faad1a93bf0cbadc06f245a46d1057ced4f3710c</id>
<content type='text'>
The repository directory location string had a trailing newline at the
end which I don't want because this is going to be the key of a hash, so
it doesn't make sense to have it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The repository directory location string had a trailing newline at the
end which I don't want because this is going to be the key of a hash, so
it doesn't make sense to have it.
</pre>
</div>
</content>
</entry>
<entry>
<title>utils.go: Add function to get current git repo path</title>
<updated>2014-12-31T17:52:23+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2014-12-31T17:50:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-checkout-history/commit/?id=7d6ab76e8c5b382aff8a0cb7812c904f6dda9272'/>
<id>7d6ab76e8c5b382aff8a0cb7812c904f6dda9272</id>
<content type='text'>
Query git to get the current repo path. I plan on using that string as
the key for branches.

This will allow us to only store and query checkout history for the
current repository.

TODO: get rid of trailing newline
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Query git to get the current repo path. I plan on using that string as
the key for branches.

This will allow us to only store and query checkout history for the
current repository.

TODO: get rid of trailing newline
</pre>
</div>
</content>
</entry>
<entry>
<title>utils.go: Rename `OpenRCFile` -&gt; `OpenHistoryFile`</title>
<updated>2014-12-27T00:38:11+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2014-12-27T00:38:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-checkout-history/commit/?id=d1e13040021c2f0418e00971842d814893a493e7'/>
<id>d1e13040021c2f0418e00971842d814893a493e7</id>
<content type='text'>
This isn't an rc file (as we established previously). It's a storage
file. Rename the function to be more clear about it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This isn't an rc file (as we established previously). It's a storage
file. Rename the function to be more clear about it.
</pre>
</div>
</content>
</entry>
<entry>
<title>git-checkout-history: Put duplicated code in utils.go</title>
<updated>2014-12-14T18:15:11+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2014-12-14T18:15:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-checkout-history/commit/?id=e02955d75b0f72147884de74ef6ff563828f1bc2'/>
<id>e02955d75b0f72147884de74ef6ff563828f1bc2</id>
<content type='text'>
Extract code that was duplicated from checkout-history-store so that it
now lives in a single place: the utils.go file.

Add a new function to utils.go that returns the list of branches in
history so that we can grab this for git-checkout-history.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Extract code that was duplicated from checkout-history-store so that it
now lives in a single place: the utils.go file.

Add a new function to utils.go that returns the list of branches in
history so that we can grab this for git-checkout-history.
</pre>
</div>
</content>
</entry>
<entry>
<title>utils.go: Extract branch storage filename to a variable</title>
<updated>2014-12-13T19:43:35+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2014-12-13T19:43:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-checkout-history/commit/?id=8c64b8afcf6d98cefe1076ee2ec048aa75e6b4c7'/>
<id>8c64b8afcf6d98cefe1076ee2ec048aa75e6b4c7</id>
<content type='text'>
Stop hard-coding the storage filename.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Stop hard-coding the storage filename.
</pre>
</div>
</content>
</entry>
<entry>
<title>Move branch storage to utils package</title>
<updated>2014-12-06T23:44:51+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2014-12-06T23:42:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/git-checkout-history/commit/?id=cd4a62fbbd0d8f89c6ab7e9e0d92d86f3442cfbd'/>
<id>cd4a62fbbd0d8f89c6ab7e9e0d92d86f3442cfbd</id>
<content type='text'>
Create utils package and move everything related to branch creation into
the utils.go file. Then call `utils.Store` to store a branch.

Doing this so I can easily store a branch in history from a
`git-checkout-history` call. This is because we want to save to history
even if you're checking out using the history shorthand.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Create utils package and move everything related to branch creation into
the utils.go file. Then call `utils.Store` to store a branch.

Doing this so I can easily store a branch in history from a
`git-checkout-history` call. This is because we want to save to history
even if you're checking out using the history shorthand.
</pre>
</div>
</content>
</entry>
</feed>
