ymattw / ydiff

View colored, incremental diff in workspace or from stdin with side by side and auto pager support
Other
873 stars 62 forks source link

specify number of context lines #26

Closed FKuerten closed 11 years ago

FKuerten commented 11 years ago

maybe it is somehow supported, I just don't see how. I would like to specify the number of lines displayed before and after each difference in side-by-side mode. It seems the default is three lines.

ymattw commented 11 years ago

You have to use cdiff -s -- -U5 to pass -U5 (example) to underneath revision control for now. I might enhance the option parsing logic to reduce -- use.

On Monday, June 17, 2013, Fabian Kürten wrote:

maybe it is somehow supported, I just don't see how. I would like to specify the number of lines displayed before and after each difference in side-by-side mode. It seems the default is three lines.

— Reply to this email directly or view it on GitHubhttps://github.com/ymattw/cdiff/issues/26 .

FKuerten commented 11 years ago

Works. But I think that should be somewhere in the documentation. At least it would be good to know what the tool used is so I can look into its manpage.

ymattw commented 11 years ago

It is there in README :) . Keep this open as I myself use -- --cached often.

ymattw commented 11 years ago

With 0.9.2 you can now use cdiff -U5, cdiff --cached directly.