<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>bin/lh-branch</filename>
    </added>
    <added>
      <filename>test/test_lighthouse_branch.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -3,3 +3,4 @@
 coverage
 rdoc
 pkg
+lighthouse_account.yml
\ No newline at end of file</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,32 @@
 = lighthouse_branch
 
-Description goes here.
+lh-branch [ticket_id]:
+Creates a branch based on the ticket name.
+lh-branch 1 #=&gt; git checkout -b 1-ticket-title
+
+lh-branch push [ticket_id] [remote name]:
+Pushes the ticket's branch to the named remote.
+lh-branch 1 origin #=&gt; git push origin 1-ticket-title
+
+lh-branch pull [ticket_id] [remote name]:
+Pulls the ticket's branch from the named remote.
+lh-branch 1 origin #=&gt; git pull origin 1-ticket-title
+
+lh-branch merge [ticket_id]:
+Merges the ticket's branch with the current branch.
+lh-branch merge 1 #=&gt; git merge 1-ticket-title
+
+lh-branch checkout [ticket_id]:
+Checks out the ticket's branch, making it the current branch.
+lh-branch checkout 1 #=&gt; git checkout 1-ticket-title
+
+lh-branch delete [ticket_id]:
+Deletes the ticket's branch.
+lh-branch delete 1 #=&gt; git branch -d 1-ticket-title
+
+lh-branch resolve 1 [message]:
+Creates a commit that will mark the ticket resolved.
+lh-branch resolve 1 &quot;Fixed the bug.&quot; #=&gt; git commit -a -m &quot;Fixed the bug\n\n[#1 state:resolved]&quot;
 
 == Copyright
 </diff>
      <filename>README.rdoc</filename>
    </modified>
    <modified>
      <diff>@@ -0,0 +1,17 @@
+require 'lighthouse-api'
+
+class LighthouseBranch
+  def initialize(account, token, project_id)
+    Lighthouse.account = account
+    Lighthouse.token = token
+    @project = Lighthouse::Project.find(project_id)
+  end
+  
+  def ticket(id)
+    Lighthouse::Ticket.find(id, :params =&gt; { :project_id =&gt; @project.id })
+  end
+  
+  def branch_name(id)
+    &quot;#{id}-#{ticket(id).title.gsub(/[^\w ]/, '').gsub(/[^a-z0-9]+/i, '-').downcase}&quot;
+  end
+end
\ No newline at end of file</diff>
      <filename>lib/lighthouse_branch.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,5 +6,7 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
 $LOAD_PATH.unshift(File.dirname(__FILE__))
 require 'lighthouse_branch'
 
+LIGHTHOUSE_ACCOUNT = YAML::load(File.open(File.join(File.dirname(__FILE__), 'lighthouse_account.yml')))
+
 class Test::Unit::TestCase
 end</diff>
      <filename>test/test_helper.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>test/lighthouse_branch_test.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>b46f3ca4b5b93cd35aea68e32f8af063caf49945</id>
    </parent>
  </parents>
  <author>
    <name>Matt Pruitt</name>
    <email>guitsaru@gmail.com</email>
  </author>
  <url>http://github.com/guitsaru/lighthouse_branch/commit/c99e7b54c3b2648b36014e1b19e28497623e7d68</url>
  <id>c99e7b54c3b2648b36014e1b19e28497623e7d68</id>
  <committed-date>2009-06-20T19:50:46-07:00</committed-date>
  <authored-date>2009-06-20T19:50:46-07:00</authored-date>
  <message>Wrote the lh-branch binary.

[#1 state:resolved]</message>
  <tree>ba163fbdd1154d3f27fd6d891cd669241d561a3f</tree>
  <committer>
    <name>Matt Pruitt</name>
    <email>guitsaru@gmail.com</email>
  </committer>
</commit>
