# File icon-artist/gitrepo.rb, line 58
    def in_branch
      old_current = @git.current_branch
      yield
      unless @git.current_branch == old_current
        checkout(old_current)
      end
    end