Show More
@@ -2526,6 +2526,15 b' def trydiff(repo, revs, ctx1, ctx2, modi' | |||||
2526 | header.append('index %s..%s' % |
|
2526 | header.append('index %s..%s' % | |
2527 | (gitindex(content1), gitindex(content2))) |
|
2527 | (gitindex(content1), gitindex(content2))) | |
2528 | else: |
|
2528 | else: | |
|
2529 | if opts.git and opts.index > 0: | |||
|
2530 | flag = flag1 | |||
|
2531 | if flag is None: | |||
|
2532 | flag = flag2 | |||
|
2533 | header.append('index %s..%s %s' % | |||
|
2534 | (gitindex(content1)[0:opts.index], | |||
|
2535 | gitindex(content2)[0:opts.index], | |||
|
2536 | gitmode[flag])) | |||
|
2537 | ||||
2529 | text = mdiff.unidiff(content1, date1, |
|
2538 | text = mdiff.unidiff(content1, date1, | |
2530 | content2, date2, |
|
2539 | content2, date2, | |
2531 | path1, path2, opts=opts) |
|
2540 | path1, path2, opts=opts) |
General Comments 0
You need to be logged in to leave comments.
Login now