Skip to content

Command line tips and tricks

Kees Cook edited this page Jun 15, 2020 · 29 revisions

Linux

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/[~^].*//'

Clang

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.

For finding which commit may have removed a string, try:

$ git log -S <string> <file>

(via Saravana Kannan)

Clone this wiki locally