Hello,
For those who are interested, these are some simple recipes for the git program with Linux kernel repository that I found useful:
For those who are interested, these are some simple recipes for the git program with Linux kernel repository that I found useful:
- List share tags with creator name and creation date/time:
Code:
git log --tags --simplify-by-decoration --pretty="format:%ci %cn %d"
- List commits for files stored in a directory or single file(s) between two release tags (6.7.12 and v6.9.3 in the example, excluding commits related to the first release tag); it shows commit ID (short format), author date (short format), subject (see "PRETTY FORMAT" in man
git-log
):Code:
git log --format="%h %as %s" v6.7.12..v6.9.3 -- ./path/to/directory/ git log --format="%h %as %s" v6.7.12..v6.9.3 -- ./path/to/file
- Get the first tag assigned after a commit (which therefore contains the commit)
Code:
$ git describe --contains 9e6f4c8
- List all tags containing a commit (starting with the first tag issued after the commit):
Code:
$ git tag --contains 9e6f4c8
Statistics: Posted by Aki — 2024-06-11 16:17 — Replies 0 — Views 22