mirror of
				https://github.com/sharkdp/bat.git
				synced 2025-10-31 07:04:04 +00:00 
			
		
		
		
	Make batdiff more portable
This commit is contained in:
		| @@ -145,7 +145,7 @@ git show v0.6.0:src/main.rs | bat -l rs | ||||
| Вы можете использовать `bat` с `git diff` для просмотра строк кода вокруг изменений с подсветкой синтаксиса: | ||||
| ```bash | ||||
| batdiff() { | ||||
|     git diff --name-only --relative --diff-filter=d | xargs bat --diff | ||||
|     git diff --name-only --relative --diff-filter=d -z | xargs -0 bat --diff | ||||
| } | ||||
| ``` | ||||
| Если вы хотите использовать это как отдельную программу, посмотрите `batdiff` из [`bat-extras`](https://github.com/eth-p/bat-extras). | ||||
|   | ||||
		Reference in New Issue
	
	Block a user