Skip to main content

A tool to work with public-inbox and patch archives

Project description

This is a helper utility to work with patches made available via a public-inbox archive like lore.kernel.org. It is written to make it easier to participate in a patch-based workflows, like those used in the Linux kernel development.

The name “b4” was chosen for ease of typing and because B-4 was the precursor to Lore and Data in the Star Trek universe.

See https://b4.docs.kernel.org/ for online documentation.

Installing

To install the latest released version with pip:

python3 -m pip install b4

Or to install the latest master (warning, maybe broken!):

python3 -m pip install git+https://git.kernel.org/pub/scm/utils/b4/b4.git@master

Shell completion

b4 makes use of the python-shtab module to provide static shell completion files. Currently python-shtab supports bash, zsh and tcsh, where others may be added in the future.

To install b4 with pip and shell completion use:

python3 -m pip install b4[completion]

Shell completion is provided by the command b4 --print-completion {bash,zsh,tcsh}. To enable shell completion run:

eval $(b4 --print-completion bash)

To make it permanent on new shells, add that command to your $HOME/.bashrc or $HOME/.zshrc.

Upgrading

If you previously installed from pypi:

python3 -m pip install --upgrade b4

Or to get the latest stuff from git:

python3 -m pip install --upgrade git+https://git.kernel.org/pub/scm/utils/b4/b4.git@master

Running from the checkout dir

If you want to run from the checkout dir without installing the python package, you can use the included b4.sh wrapper. You can set it as an alias in your .bash_profile:

alias b4="$HOME/path/to/b4/b4.sh"

Setting up a symlink should also be possible. Remember to run the following commands after the initial clone:

git submodule update --init
python3 -m pip install -r requirements.txt

Support

For support or with any other questions, please email tools@kernel.org, or browse the list archive at https://lore.kernel.org/tools.

Please send patches to tools@kernel.org.

Submissions must be made under the terms of the Linux Foundation certificate of contribution and should include a Signed-off-by: line. Please read the DCO file for full legal definition of what that implies.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

b4-0.15.1.tar.gz (286.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

b4-0.15.1-py3-none-any.whl (299.8 kB view details)

Uploaded Python 3

File details

Details for the file b4-0.15.1.tar.gz.

File metadata

  • Download URL: b4-0.15.1.tar.gz
  • Upload date:
  • Size: 286.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for b4-0.15.1.tar.gz
Algorithm Hash digest
SHA256 e48c44bb579fadabb1fc3f15bf1874afd721bc1a63fba10c96f568bc1f47ccb3
MD5 7774a5de7d737fabf11ba558d9cd80a5
BLAKE2b-256 d499dea75130e9d8c34e583735d263614728f3b63fde895607da8edbfcc3650a

See more details on using hashes here.

File details

Details for the file b4-0.15.1-py3-none-any.whl.

File metadata

  • Download URL: b4-0.15.1-py3-none-any.whl
  • Upload date:
  • Size: 299.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for b4-0.15.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7b89fcf9db62804feb6a0a7f46c30410be29e33f0a93aedb3dbc6c9f7ccfeb31
MD5 43b214d9cb9b9063f74ddebcfa505100
BLAKE2b-256 51aefd5bc7b61424813f9b52cd0f3b25fa26c55801614cb3769386ab7d6a1b54

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page