mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	Merge pull request #2579 from wwylele/no-clang-format-check
hook: remove clang-format check
This commit is contained in:
		
						commit
						e971f17bb8
					
				
					 1 changed files with 0 additions and 17 deletions
				
			
		|  | @ -24,20 +24,3 @@ If you know what you are doing, you can try 'git commit --no-verify' to bypass t | |||
| END | ||||
|     exit 1 | ||||
| fi | ||||
| 
 | ||||
| for f in $(git diff --name-only --diff-filter=ACMRTUXB --cached); do | ||||
|     if ! echo "$f" | egrep -q "[.](cpp|h)$"; then | ||||
|         continue | ||||
|     fi | ||||
|     if ! echo "$f" | egrep -q "^src/"; then | ||||
|         continue | ||||
|     fi | ||||
|     d=$(clang-format "$f" | diff -u "$f" -) | ||||
|     if ! [ -z "$d" ]; then | ||||
|         echo "!!! $f not compliant to coding style, here is the fix:" | ||||
|         echo "$d" | ||||
|         fail=1 | ||||
|     fi | ||||
| done | ||||
| 
 | ||||
| exit "${fail-0}" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue