comparison mercurial/mdiff.py @ 30788:d1901c4c8ec0

patch: add config knob for displaying the index header This config knob can take an integer between 0 and 40 or a keyword ('none', 'short', 'full') to control the length of hash to output. It will display diffs with the git index header as such, diff --git a/mercurial/mdiff.py b/mercurial/mdiff.py index 112edf7..d6b52c5 100644 We'll put this in the experimental section for now.
author Sean Farley <sean@farley.io>
date Mon, 09 Jan 2017 11:13:47 -0800
parents 3eeb8e138e5c
children e2796f193f06
comparison
equal deleted inserted replaced
30787:ff020ee5f06c 30788:d1901c4c8ec0
50 'showfunc': False, 50 'showfunc': False,
51 'git': False, 51 'git': False,
52 'nodates': False, 52 'nodates': False,
53 'nobinary': False, 53 'nobinary': False,
54 'noprefix': False, 54 'noprefix': False,
55 'index': 0,
55 'ignorews': False, 56 'ignorews': False,
56 'ignorewsamount': False, 57 'ignorewsamount': False,
57 'ignoreblanklines': False, 58 'ignoreblanklines': False,
58 'upgrade': False, 59 'upgrade': False,
59 } 60 }