lib/autobuild/import/git.rb
# Returns a Importer::Status object that represents the status of this
# package w.r.t. the root repository
Returns a Importer::Status object that represents the status of this
package w.r.t. the root repository
Returns a Importer :: Status object that represents the status of this package w . r . t . the root repository
def status(package, only_local = false)
            Dir.chdir(package.importdir) do
                validate_importdir(package)
                remote_commit = nil
                if only_local
                    remote_commit = `git show-ref -s refs/remotes/#{remote_name}/#{remote_branch}`.chomp
                else	
                    remote_commit =
                        begin fetch_remote(package)
                        rescue Exception => e
                            return fallback(e, package, :status, package, only_local)
                        end
                    if !remote_commit
                        return
                    end
                end
                status = merge_status(package, remote_commit)
                status.uncommitted_code = self.class.has_uncommitted_changes?(package)
                status
            end
        end
def status ( package , only_local = false ) Dir . chdir ( package . importdir ) do validate_importdir ( package ) remote_commit = nil if only_local remote_commit = ` git show-ref -s refs/remotes/ #{ remote_name } / #{ remote_branch } ` . chomp else remote_commit = begin fetch_remote ( package ) rescue Exception => e return fallback ( e , package , :status , package , only_local ) end if ! remote_commit return end end status = merge_status ( package , remote_commit ) status . uncommitted_code = self . class . has_uncommitted_changes? ( package ) status end end
Returns a Importer::Status object that represents the status of this
package w.r.t.
Returns a Importer :: Status object that represents the status of this package w . r . t .
package
<not_specific>
only_local
<not_specific>