stash: colorize Index line while patch-prompting

This commit is contained in:
Josh Holtrop 2013-03-11 21:26:03 -04:00
parent 40aeec7bea
commit 6d547299cd

3
jsvn
View File

@ -1265,7 +1265,8 @@ def get_svn_contents_to_stash(targets, svn, out, keep, patch):
if svars['skip_file'] or svars['skip_all']:
return
if not svars['prompted_for_index']:
out.write(svars['index_header'])
for line in svars['index_header'].rstrip().split('\n'):
colordiff(out, line)
svars['prompted_for_index'] = True
for li in svars['hunk_buildup'].rstrip().split('\n'):
colordiff(out, li)