git log --graph in the face of vendor imports
Ulrich Spörlein
uqs at freebsd.org
Mon Dec 28 13:46:49 UTC 2020
On Sun, Dec 27, 2020 at 9:14 PM Mark Millard <marklmi at yahoo.com> wrote:
> Ulrich Spörlein uqs at freebsd.org wrote on
> Sat Dec 26 10:23:00 UTC 2020 :
>
> > Yes. Fun fact: the right combination of format flags makes git segfault!
> >
> > . . .
> >
> > [alias]
> > glog = log --graph --pretty=format:'%Cred%h %C(green)%t %Creset
> -%C(yellow)%d%Creset %s %Cgreen(%an, %cr, %ad)%Creset' --date=short
> > gnlog = log --graph --pretty=format:'%Cred%h %C(green)%t %Creset
> %C(red)%ad %Creset-%C(yellow)%d%Creset %s %n %N %-GG' --date=short
> >
> >
> > % git gnlog
> > <hit G>
> > <it shows first commit>
> > % git glog
> > <hit G>
> > error: git died of signal 11
> > <it shows commits from the 2003-01-26 timeframe>
>
> I tried these via the below (copy/paste but for adding "git " as a prefix)
> and got no crash:
>
> # git log --graph --pretty=format:'%Cred%h %C(green)%t %Creset
> -%C(yellow)%d%Creset %s %Cgreen(%an, %cr, %ad)%Creset' --date=short
> . . .
> * 9002c02abc58 515fc124b039 - Initial import, 0.1 + pk 0.2.4-B1 (Rodney
> W. Grimes, 28 years ago, 1993-06-12)
>
>
> # qgit log --graph --pretty=format:'%Cred%h %C(green)%t %Creset %C(red)%ad
> %Creset-%C(yellow)%d%Creset %s %n %N %-GG' --date=short
> . . .
> * 9002c02abc58 515fc124b039 1993-06-12 - Initial import, 0.1 + pk
> 0.2.4-B1
> svn path=/cvs2svn/branches/tcpdump/; revision=2
>
> FYI:
>
> # pkg info git-lite
> git-lite-2.29.2
> Name : git-lite
> Version : 2.29.2
> Installed on : Sat Dec 12 10:54:47 2020 PST
> Origin : devel/git
> Architecture : FreeBSD:13:amd64
> Prefix : /usr/local
> Categories : devel
> Licenses : GPLv2
> Maintainer : garga at FreeBSD.org
> WWW : https://git-scm.com/
> Comment : Distributed source code management tool (lite flavor)
> Options :
> CURL : on
> HTMLDOCS : off
> ICONV : on
> NLS : on
> PCRE : on
> PCRE2 : off
> SUBTREE : on
> Shared Libs required:
> libexpat.so.1
> libpcre.so.1
> libintl.so.8
> libcurl.so.4
> Annotations :
> FreeBSD_version: 1300131
> flavor : lite
> repo_type : binary
> repository : custom
> Flat size : 24.9MiB
> Description :
> Git is a free and open source distributed version control system designed
> to
> handle everything from small to very large projects with speed and
> efficiency.
>
> This version provides the bare minimum git experience without any bindings.
>
> WWW: https://git-scm.com/
>
> # uname -apKU
> FreeBSD FBSDFHUGE 13.0-CURRENT FreeBSD 13.0-CURRENT #5 r368820M: Sat Dec
> 19 21:07:35 PST 2020 root at FBSDFHUGE:/usr/obj/amd64_clang/amd64.amd64/usr/src/amd64.amd64/sys/GENERIC-NODBG
> amd64 amd64 1300132 1300132
>
>
Btw, all of your emails always end up in Gmail spam, because you're sending
from Yahoo.com and their Spam settings are incompatible with mailling lists
that re-send using the same From: address. You should use a different email
provider for mailing lists like this one.
It might all depend on the terminal being used and the pager, etc. I played
around a little but couldn't find a setting that made much of a difference.
I've added devel/git to my WITH_DEBUG_PORTS and might play around with a
debugger during the week, no promises though.
Also, I'm still on, as I had to lock the git version, because newer
versions are segfaulting when reading back the marks file from
git-fast-import during incremental runs of the converter
% git --version
git version 2.24.0
Ctrl-f for 2.24 on https://github.com/freebsd/git_conv/blob/master/README.md
to see some of the nonsense I had to deal with.
Cheers
Uli
More information about the freebsd-git
mailing list