# File lib/branch.rb, line 320
        def monitor(opts)
            st = @travis.getValidState(head)
            suff=""
            case st
            when "started"
                suff= " started at #{@travis.getValidTS(head)}"
            end
            log(:INFO, "Status for v#{@version}: " + st + suff)
            if st == "failed" && opts[:watch] == false
                rep = "y"
                suff=""
                while rep == "y"
                    rep = GitMaintain::confirm(opts, "see the build log#{suff}")
                    if rep == "y" then
                        log = @travis.getValidLog(head)
                        tmp = `mktemp`.chomp()
                        tmpfile = File.open(tmp, "w+")
                        tmpfile.puts(log)
                        tmpfile.close()
                        system("less -r #{tmp}")
                        `rm -f #{tmp}`
                    end
                    suff=" again"
                end
            end
        end