system_config: print brew branch
This commit is contained in:
		
							parent
							
								
									451c3a8735
								
							
						
					
					
						commit
						6eb2030b22
					
				@ -34,6 +34,11 @@ module SystemConfig
 | 
			
		||||
      GitRepository.new(HOMEBREW_REPOSITORY)
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    sig { returns(String) }
 | 
			
		||||
    def branch
 | 
			
		||||
      homebrew_repo.branch_name || "(none)"
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    sig { returns(String) }
 | 
			
		||||
    def head
 | 
			
		||||
      homebrew_repo.head_ref || "(none)"
 | 
			
		||||
@ -142,6 +147,7 @@ module SystemConfig
 | 
			
		||||
      out.puts "ORIGIN: #{origin}"
 | 
			
		||||
      out.puts "HEAD: #{head}"
 | 
			
		||||
      out.puts "Last commit: #{last_commit}"
 | 
			
		||||
      out.puts "Branch: #{branch}"
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    def homebrew_env_config(out = $stdout)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user