0

In git, when we create a patch using git format-patch, it adds the commit id, author's name and author's email id along with diff of the changes in the repository. How can I create same type of patch using bzr ? Is there any inbuilt command or there is no alternative tobzr diff > somefilename.patch ?

Pranjal
  • 659
  • 1
  • 7
  • 24

3 Answers3

0

Regarding this it should be possible to provide a format specifier. So if bzr-git is installed you should go with bzr diff -F git > somefile.patch.

ckruczek
  • 2,361
  • 2
  • 20
  • 23
  • I am trying to install `bzr-git` on ubuntu 16.04 but can't find that package. Instead got `git-bzr`. Are they same? – Pranjal May 10 '16 at 06:52
  • Well,I am not 100% sure, but just give it a try :) – ckruczek May 10 '16 at 07:05
  • I installed `bzr-git` and tried to make a patch. Though it makes a git styled patch, it doesn't include author's name and email id – Pranjal May 10 '16 at 07:24
0

To get a git-style patch including author and commit message, you can install bzr-git and use "bzr send --format=git".

E.g.:

bzr ci -m "Some change."
bzr send --format=git -o /tmp/git-patches ../branch-to-diff-against
jelmer
  • 2,405
  • 14
  • 27
-1

It's far from being completed, but this script can generate compatible patches.

Treviño
  • 2,999
  • 3
  • 28
  • 23