cmd/update-report: don't invoke external diff tools
This commit is contained in:
		
							parent
							
								
									82dc1d25ef
								
							
						
					
					
						commit
						8e7d4a5bee
					
				@ -575,7 +575,7 @@ class Reporter
 | 
				
			|||||||
    @diff ||= if installed_from_api?
 | 
					    @diff ||= if installed_from_api?
 | 
				
			||||||
      # Hack `git diff` output with regexes to look like `git diff-tree` output.
 | 
					      # Hack `git diff` output with regexes to look like `git diff-tree` output.
 | 
				
			||||||
      # Yes, I know this is a bit filthy but it saves duplicating the #report logic.
 | 
					      # Yes, I know this is a bit filthy but it saves duplicating the #report logic.
 | 
				
			||||||
      diff_output = Utils.popen_read("git", "diff", api_names_before_txt, api_names_txt)
 | 
					      diff_output = Utils.popen_read("git", "diff", "--no-ext-diff", api_names_before_txt, api_names_txt)
 | 
				
			||||||
      header_regex = /^(---|\+\+\+) /.freeze
 | 
					      header_regex = /^(---|\+\+\+) /.freeze
 | 
				
			||||||
      add_delete_characters = ["+", "-"].freeze
 | 
					      add_delete_characters = ["+", "-"].freeze
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user