>>> "KK" == Konstantin Khomoutov <kos...@bswap.ru> writes:
> On Sat, Nov 19, 2022 at 08:20:41AM +0100, Uwe Brauer wrote: >> Being a mercurial user I want the git graph to look as close as possible to >> mercurials, >> >> The following command/alias does this, but does not display colors, although >> I used the decorate option >> >> git log --graph --all --decorate --pretty=short | git name-rev --stdin | more > --decorate is not about decoration in the colorful sense ;-) > It's rather about adding names of references to those parts of the output > which display commits these references point at. Ah ok > You do not see colors because of these reasons: > - By default, Git commands are configured to output color "when possible". Right because git log --graph --all --decorate --pretty=short Does provide colors > There are two ways to make a Git command output colors no matter what - > by overriding a configuration variable at invocatio or with the --color > command-line option. Both variants should work: > git log --color=always ... That gives a strange result, namely ESC[33mcommit 9dc21b3902a819796d1ba3bc7654733ab00e6e75 (feature)ESC[mESC[33m (ESC[mESC[36mHEADESC[mESC[33m -> ESC[mESC[32mfeature ESC[mESC[33m)ESC[m A clear sign, that I need to configure my command shell, *but* > I'd stick `less -R` at the end. Works nicely and gives me precisely what I was looking for *thanks again* for your help 😁 -- 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/87leo7gk77.fsf%40mat.ucm.es.
smime.p7s
Description: S/MIME cryptographic signature