mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	hooks: convert pre-commit to POSIX syntax
This commit is contained in:
		
							parent
							
								
									0dfad003dc
								
							
						
					
					
						commit
						3925f4ff63
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -1,4 +1,4 @@ | ||||||
| #!/bin/bash | #!/bin/sh | ||||||
| 
 | 
 | ||||||
| # Enforce citra's whitespace policy | # Enforce citra's whitespace policy | ||||||
| git config --local core.whitespace tab-in-indent,trailing-space | git config --local core.whitespace tab-in-indent,trailing-space | ||||||
|  | @ -32,7 +32,7 @@ for f in $(git diff --name-only --diff-filter=ACMRTUXB --cached); do | ||||||
|     if ! echo "$f" | egrep -q "^src/"; then |     if ! echo "$f" | egrep -q "^src/"; then | ||||||
|         continue |         continue | ||||||
|     fi |     fi | ||||||
|     d=$(diff -u "$f" <(clang-format "$f")) |     d=$(clang-format "$f" | diff -u "$f" -) | ||||||
|     if ! [ -z "$d" ]; then |     if ! [ -z "$d" ]; then | ||||||
|         echo "!!! $f not compliant to coding style, here is the fix:" |         echo "!!! $f not compliant to coding style, here is the fix:" | ||||||
|         echo "$d" |         echo "$d" | ||||||
|  | @ -40,4 +40,4 @@ for f in $(git diff --name-only --diff-filter=ACMRTUXB --cached); do | ||||||
|     fi |     fi | ||||||
| done | done | ||||||
| 
 | 
 | ||||||
| exit "$fail" | exit "${fail-0}" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue