>>> "TH" == Tassilo Horn <t...@gnu.org> writes:

> Uwe Brauer <o...@mat.ucm.es> writes:
>> On the other hand it is possible to use the following git command to
>> obtain a more or less similar information
>> 
>> git log --graph --color=always --all --decorate --pretty=short | git name-rev
>> --stdin | less -R

> It's more less than more more similar information. :-)

> git name-rev 921af2f1 will, in case that commit is not the head of some
> branch or a tag, show something like master~19 meaning the 19th parent
> of the current master branch's HEAD.  When another commit is made on
> master, the very same commit will then be master~20.  So it's a totally
> unstable numbering in contrast to revision numbers known from other
> VCSs.  It's only value is that it's easier to type than a hash.

Well it is a bit like in mercurial, the HASH is important while these
local rev numbers are just for convenience, in hg they start however from the
first commit up, not like in git from HEAD down.

>> That works fine for small repositories but for GNU emacs this command
>> leads, at least on my 5 year old Laptop to a core dump.

> Works fine for me, and my laptop is 2 years older. ;-)

Then it is either the fact that I am still on Ubuntu 16.04 or more
likely using git 2.7.4.

>> I presume the reason is that git «calculates» these numbers on the
>> fly.

> Yes, probably.

>> So a simple solution to the problem would be to reduce the numbers of
>> name-rev git shall calculate.
>> 
>> I cannot find any option doing this.
>> 
>> Any idea what to do?

> Do you really need to show the log back into the 80ies?  

You mean commits like 


*  commit 0:ce5584125c44a1a2fbb46e810459c50b227a95e2
   Author: Jim Blandy <j...@redhat.com>
   Date: Thu, 18 Apr 1985 00:48:29 +0000
   entered into RCS

Actually, not really 😇

> If not, use
> something like "--since 2years" in your git log invocation.

This is what is was looking for but 
even 

git log --since=6months --graph --color=always --all --decorate --pretty=short 
| git name-rev --stdin | less -R
Segmentation fault (core dumped)


I think I will try to upgrade git.

Uwe 

-- 
Warning: Content may be disturbing to some audiences
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/87fseckq11.fsf%40mat.ucm.es.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to