14 lines
		
	
	
	
		
			415 B
		
	
	
	
		
			Text
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			415 B
		
	
	
	
		
			Text
		
	
	
		
			Executable file
		
	
	
	
	
#!/usr/bin/env nix-shell
 | 
						|
#! nix-shell -i bash ../shell.nix
 | 
						|
 | 
						|
echo "restoring stashed changes"
 | 
						|
 | 
						|
# Find the most recent pre-commit stash and restore it
 | 
						|
recent_stash=$(git stash list | grep "pre-commit-stash-" | head -n 1 | cut -d: -f1)
 | 
						|
 | 
						|
if [ -n "$recent_stash" ]; then
 | 
						|
    echo "Found recent pre-commit stash: $recent_stash"
 | 
						|
    git stash pop -q "$recent_stash"
 | 
						|
else
 | 
						|
    echo "No pre-commit stash found to restore"
 | 
						|
fi
 |