Lobbying for -p1 diffs

Benno benjl at cse.unsw.edu.au
Thu Mar 2 05:52:45 GMT 2006


On Thu Mar 02, 2006 at 16:44:48 +1100, Michael Ellerman wrote:
>On 3/2/06, Martin Pool <mbp at sourcefrog.net> wrote:
>> On 28 Feb 2006, John Arbash Meinel <john at arbash-meinel.com> wrote:
>> > >> I don't care whether we use ., -, {}, whatever to denote it.
>> > >
>> > > Spot the arch user ;D
>>
>> The {} for surrounding ids comes more from their occurrence in Microsoft
>> GUID forms, I think.  I just wanted some kind of quoting to set them off
>> from surrounding text.  I don't think they're very good in filenames
>> because of their meaning to the shell.
>
>I was just teasing :)
>
>> It would also be good if 'bzr diff' accepted a -p option and behaved
>> accordingly.
>
>Hmm, except diff(1) doesn't accept a -p option? (Well it does but it
>means something else).  And what does -p3 do? Prefix a/a/a/filename ?
>We could just have --no-prefix or something, but it seems like
>overkill just to keep one user happy ;D

FWIW, I also prefer reading diffs without the prefix, and I do find
that I am reading diffs a lot more than patching them. So it isn't
just one user, its two! ;)

But in any case, I'm happy with an option, which can preferably be 
put into a config file, with either as default.

Cheers,

Benno
(crawls back into the hole he was lurking in)




More information about the bazaar mailing list