LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

git-mailinfo

Extract patch from email message

TLDR

Extract patch info
$ git mailinfo [msg.txt] [patch.txt] < [email.txt]
copy
Keep subject prefix
$ git mailinfo -k [msg.txt] [patch.txt] < [email.txt]
copy

SYNOPSIS

git mailinfo [options] msg patch

DESCRIPTION

git mailinfo extracts patch and commit information from email messages. It parses email headers and body, separating the commit message from the patch content, and handles encoding and author extraction.The command is a plumbing tool used internally by `git am`. It processes the email format used in patch-based development workflows, such as those used by the Linux kernel project.

PARAMETERS

MSG

Output file for commit message.
PATCH
Output file for patch.
-k
Keep subject line intact.
-b
Strip bracketed strings from subject.
-u
Encode as UTF-8.
--scissors
Remove text before scissors line.
--help
Display help information.

INSTALL

sudo apt install git
copy
sudo dnf install git
copy
sudo pacman -S git
copy
sudo apk add git
copy
sudo zypper install git
copy
brew install git
copy
nix profile install nixpkgs#git
copy

CAVEATS

Plumbing command. Usually called by git am. Input must be proper email format.

HISTORY

git mailinfo is part of Git's email patch workflow, supporting the patch-by-email development model used by the Linux kernel.

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid