/usr/src revision number
web at 3dresearch.com
Tue Mar 23 06:40:50 UTC 2021
On Sun, 21 Mar 2021 15:35:54 -0700
Kevin Oberman <rkoberman at gmail.com> wrote:
> On Sun, Mar 21, 2021 at 1:53 PM Janos Dohanics <web at 3dresearch.com>
> > How can I find what "revision" do I have now in /usr/src and how
> > can I see if it is an increment compared to the installed
> > kernel/userland?
> > --
> > Janos Dohanics
> > Take a look at the newd git "Getting started" guide at
> > https://docs.freebsd.org/en/articles/committers-guide/#git-primer.
> > If you use a shallow clone, there is no easy way. If you have a
> > full clone, you will have a hash starting with 'n' followed by 6
> > digits. This is a sequence count of commits to the relevant branch.
> > In your case, the sequence is n244684.
Thank you, started the local repo anew with 'deep' cloning and rebuilt
I now have:
# uname -v
FreeBSD 13.0-STABLE #0 stable/13-n245008-3aa6cc000f7: Mon Mar 22 14:42:44 EDT 2021
So, the sequence count here is n245008.
But I don't seem to be able to tease out of git(1) an output which shows '245008':
# git rev-list stable/13 --count
# git log --oneline | wc -l
If git(1) has no equivalent of the svn(1) revision number in the sense
which lets you compare older <--> newer at a glance, how can you tell
that your updated source is actually newer than whatever is installed?
For example, in FreeBSD Security Advisories you could quickly tell the
"good" revision number, but you can't do that by looking at a hash like
More information about the freebsd-questions