forked from jan-leila/nix-config
		
	added logging to commit hooks
This commit is contained in:
		
							parent
							
								
									c0167bd5d1
								
							
						
					
					
						commit
						8da184333e
					
				
					 2 changed files with 4 additions and 0 deletions
				
			
		|  | @ -1,3 +1,5 @@ | ||||||
| #!/usr/bin/env bash | #!/usr/bin/env bash | ||||||
| 
 | 
 | ||||||
|  | echo "restoring stashed changes" | ||||||
|  | 
 | ||||||
| git stash pop -q | git stash pop -q | ||||||
|  |  | ||||||
|  | @ -1,5 +1,6 @@ | ||||||
| #!/usr/bin/env bash | #!/usr/bin/env bash | ||||||
| 
 | 
 | ||||||
|  | echo "stashing all uncommitted changes" | ||||||
| git stash -q --keep-index | git stash -q --keep-index | ||||||
| 
 | 
 | ||||||
| echo "checking flakes all compile" | echo "checking flakes all compile" | ||||||
|  | @ -14,6 +15,7 @@ echo "running linter" | ||||||
| 
 | 
 | ||||||
| RESULT=$? | RESULT=$? | ||||||
| 
 | 
 | ||||||
|  | echo "adding lint changes to commit" | ||||||
| git add -u | git add -u | ||||||
| 
 | 
 | ||||||
| exit $RESULT | exit $RESULT | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue