#NEWLINE# def generate_snapshot( git_worktree , output_path , deprecated_format = True ) : #NEWLINE# #INDENT# snapshot = git_worktree . snapshot ( ) #NEWLINE# ui . info ( ui . green , 'Snapshot generated in' , ui . white , output_path ) #NEWLINE# return snapshot . dump ( output_path , deprecated_format = deprecated_format )