Re: git log --graph with a sort of local revision number
- From
- Uwe Brauer <oub@mat.ucm.es>
- Date
- Aug 18, 2019, 19:16 UTC
- Message-ID
- <87k1bamghg.fsf@mat.ucm.es>
- In-Reply-To
- <20190818190032.GA11185@rigel>
>>> "RA" == Rafael Ascensão <rafa.almas@gmail.com> writes:
> You can achieve something close (on small repos, more on that later) with: > $ git log --graph --color \ > --format='%C(auto)changeset: %h:%H%nuser: %an%ndate: %ad%nsummary: %s%n' \ > | git name-rev --refs=$(git rev-parse --abbrev-ref HEAD) --name-only --stdin
Hi thanks, this was precisely what I was looking for. However
I run
git log --graph --color --format='%C(auto)changeset: %h:%H%nuser: %an%ndate: %ad%nsummary: %s%n' | git name-rev --refs=$(git rev-parse --abbrev-ref HEAD) --name-only --stdin
And it does not work
git log --graph --color --format='%C(auto)changeset: %h:%H%nuser: %an%ndate: %ad%nsummary: %s%n'
Works but what comes after the pipe is not recognized I obtain
Illegal variable name.
I am running
git --version git version 2.7.4