def check_staged(filename=None):
retcode, _, stdout = git['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>',<EOL>filename].run(retcode=None)<EOL>if retcode == <NUM_LIT:1>:<EOL><INDENT>return True<EOL><DEDENT>elif retcode == <NUM_LIT:0>:<EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>raise RuntimeError(stdout)<EOL><DEDENT>
Check if there are 'changes to be committed' in the index.