File: diff.rst

package info (click to toggle)
b4 0.14.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,788 kB
  • sloc: python: 10,145; sh: 38; makefile: 7
file content (52 lines) | stat: -rw-r--r-- 2,095 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
diff: comparing patch series
============================
The ``diff`` subcommand allows comparing two different revisions of the
same patch series using ``git range-diff``. Note, that in order to
perform the ``range-diff`` comparison, both revisions need to cleanly
apply to the current tree, which may not always be easy to achieve.

The easiest way to use it is to prepare two mbox files of the series you
would like to compare first::

    $ b4 am --no-cover -n ver1 msgid-of-ver-1
    $ b4 am --no-cover -n ver2 msgid-of-ver-2
    $ b4 diff -m ver1.mbx ver2.mbx

Optional flags
--------------
``-g GITDIR, --gitdir GITDIR``
  Specify a path to the git tree to use, if not running the command
  inside a git tree.

``-C, --no-cache``
  By default, b4 will cache the retrieved threads for about 10 minutes.
  This lets you force b4 to ignore cache and retrieve the latest
  results.

``-v WANTVERS [WANTVERS ...], --compare-versions WANTVERS [WANTVERS ...]``
  To properly work, this requires that both versions being compared are
  part of the same thread, which is rarely the case. In the future, this
  may work better as more series use the ``change-id`` trailer to keep
  track of revisions across discussion threads.

  Example: ``b4 diff <msgid> -v 2 3``

``-n, --no-diff``
  By default, ``b4 diff`` will output the results of the range-diff
  command. However, this can be a wall of text, so instead you may want
  to just view the command that you can run yourself with the ranges
  prepared by b4. This additionally allows you to tweak the
  ``git-range`` flags to use.

``-m AMBOX AMBOX, --compare-am-mboxes AMBOX AMBOX``
  Compares two mbox files prepared by ``git am`` instead of querying
  the public-inbox server directly.

``-o OUTDIFF, --output-diff OUTDIFF``
  **(DEPRECATED)** Sends ``range-diff`` output into a file. You should use
  ``-n`` instead and redirect output from the actual ``git range-diff``
  command.

``-c, --color``
  **(DEPRECATED)** Show colour output even when outputting into a file.
  You should use ``-n`` instead and modify flags to ``range-diff``.