Feature request: Add 'Generated-by header' to diff output

Jari Aalto jari.aalto at cante.net
Mon Aug 6 06:57:21 BST 2007


* Mon 2007-08-06 Martin Pool <mbp AT sourcefrog.net>
* Message-Id: e01316480708051549u7922fbeelc5e2a44c8dcae8ed AT mail.gmail.com
> On 8/6/07, Jari Aalto <jari.aalto AT cante.net> wrote:
>
>>
>> Consider typical bzr diff output:
>>
>>     === added file 'Makefile'
>>     --- Makefile    1970-01-01 00:00:00 +0000
>>     +++ Makefile    2007-08-05 21:38:10 +0000
>>
>> I propose that a "header" is added to the beginning of diff
>> to announce that this diff/patch was generated byg bzr:
>>
>>     Generated-by: bazaar 0.18
>>     === added file 'Makefile'
>>     --- Makefile    1970-01-01 00:00:00 +0000
>>     +++ Makefile    2007-08-05 21:38:10 +0000
>
> Some diff tools prefix the diff with the command that generated it, or
> a cleaned-up version of the command.  If we included that it would
> both indicate that it came from bazaar and maybe give some other
> useful information.  

That's even better suggestion. It would give information about
revision or revision range as well.

> (These lines typically don't show the version but
> is that needed?)

I don't tink that hurts to tell the bzr version aswell.

> Otherwise this seems ok, as long as it's tested and optional.

Good. Looking forward to it.

Jari




More information about the bazaar mailing list