From 6d547299cd834a954279547d9971f10785c8ea5e Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Mon, 11 Mar 2013 21:26:03 -0400 Subject: [PATCH] stash: colorize Index line while patch-prompting --- jsvn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jsvn b/jsvn index c0912ef..05a6de7 100755 --- a/jsvn +++ b/jsvn @@ -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)