List of --diff-options

Asked by Jack Ellsworth IV

I cannot find the options available when doing a diff.

Specifically I am hoping there is an option to increase the number of lines of content included in the diff.

Question information

Language:
English Edit question
Status:
Solved
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Solved by:
Vincent Ladeuil
Solved:
Last query:
Last reply:
Revision history for this message
Martin Pool (mbp) said :
#1

--diff-options can pass through any option supported by your
underlying diff program - so see 'man diff' etc.

For more context, try eg --diff-options -U10.

Revision history for this message
Jack Ellsworth IV (jack-ellsworth-iv) said :
#2

Bazaar is the underlying diff program and I cannot find a list of options.

-U10 is not a valid option.

Revision history for this message
Best Vincent Ladeuil (vila) said :
#3

> -U10 is not a valid option.

It is a valid option for 'diff' not 'bzr diff'

'bzr diff --help' will tell you which options are available.

> Specifically I am hoping there is an option to increase the number of lines of content included in the diff.

If you're running bzr from source, you'll see that a '--context' option has recently been added which does just that.

If you're not running from source, wait for the next bzr beta release.

Note to devs (including self): too bad this isn't a *config* option so that users can set it once and for all...

Revision history for this message
Jack Ellsworth IV (jack-ellsworth-iv) said :
#4

Thanks Vincent Ladeuil, that solved my question.