forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 15
Command line tips and tricks
Nick Desaulniers edited this page Jul 14, 2020
·
29 revisions
Given sha of commit, we want to know the first tag that contains the fix.
tag=$1
git describe --match 'v*' --contains "$tag" | sed 's/[~^].*//'eh, depends on the r123456 svn-revision, which is not easy to map to a release version, and if it got cherry picked back to a bugfix release. WIP.
$ git log -S <string> <file>(via Saravana Kannan)
Recommend installing b4.
$ b4 am <lore thread url> -o - | git am
# example
$ b4 am \
https://lore.kernel.org/lkml/CAKwvOdmsap8iB+H5JXiHYwSJFrtQ_krjNH7eQCGe7p-LjK7ftA@mail.gmail.com/T/\#t \
-o - | git am