mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-29 22:24:35 +00:00 
			
		
		
		
	Add git diff example to Integration docs
Part of https://github.com/sharkdp/bat/issues/448 Thanks to https://github.com/sharkdp/bat/pull/940
This commit is contained in:
		
				
					committed by
					
						 David Peter
						David Peter
					
				
			
			
				
	
			
			
			
						parent
						
							cc6cf48256
						
					
				
				
					commit
					88eba56607
				
			| @@ -131,7 +131,13 @@ highlighting: | ||||
| git show v0.6.0:src/main.rs | bat -l rs | ||||
| ``` | ||||
|  | ||||
| Note that syntax highlighting within diffs is currently not supported. If you are looking for this, check out [`delta`](https://github.com/dandavison/delta). | ||||
| #### `git diff` | ||||
|  | ||||
| You can combine `bat` with `git diff` to view lines around code changes with proper syntax | ||||
| highlighting: | ||||
| ```bash | ||||
| git diff --name-only --diff-filter=d | xargs bat --diff | ||||
| ``` | ||||
|  | ||||
| #### `xclip` | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user