Please summary the following function. Do not write any explanations or other words, just reply with the summary.\ndef check_git_unchanged ( filename , yes = False ) : if check_staged ( filename ) : s = 'There are taged changes in {}, overwrite? [y/n] ' . format ( filename ) if yes or input ( s ) in ( 'y' , 'yes' ) : return else : raise RuntimeError ( 'There are staged changes in ' '{}, aborting.' . format ( filename ) ) if check_unstaged ( filename ) : s = 'There are unstaged changes in {}, overwrite? [y/n] ' . format ( filename ) if yes or input ( s ) in ( 'y' , 'yes' ) : return else : raise RuntimeError ( 'There are unstaged changes in ' '{}, aborting.' . format ( filename ) )
