mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-03 17:24:29 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			265 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			265 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
 | 
						|
set -e
 | 
						|
 | 
						|
# Check that you have uncrustify
 | 
						|
hash uncrustify
 | 
						|
 | 
						|
COMMITISH="${1:-master}"
 | 
						|
for file in $(git diff --diff-filter=d --name-only $COMMITISH | grep '\.[ch]$'); do
 | 
						|
    uncrustify -c src/uncrustify.cfg -l C --replace --no-backup "$file"
 | 
						|
done
 |