Re: [problem with name-rev] (was: git log --graph with a sort of local revision number)

2019-08-20 Thread Rafael Ascensão
On Tue, Aug 20, 2019 at 04:32:12PM +0200, Uwe Brauer wrote: > > It seems that there is problem with name-rev. > In git, branches are just pointers to a commits. Commits do not store any information about branches. They're similar to mercurial bookmarks. Thus, git is not able to answer "Was comm

Re: [problem with name-rev] (was: git log --graph with a sort of local revision number)

2019-08-20 Thread SZEDER Gábor
On Tue, Aug 20, 2019 at 04:32:12PM +0200, Uwe Brauer wrote: > Here's what I get when I start committing on master, then switch to a > branch foo and finally merge foo into master: > * changeset: ae68dbe:master > |\ user: Uwe Brauer > | | date: Tue Aug 20 16:25:53 2019 +0200 > | | summ

[problem with name-rev] (was: git log --graph with a sort of local revision number)

2019-08-20 Thread Uwe Brauer
>>> "RA" == Rafael Ascensão 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

[SOLVED] (was: git log --graph with a sort of local revision number)

2019-08-18 Thread Uwe Brauer
>>> "UB" == Uwe Brauer writes: >>> "RA" == Rafael Ascensão 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

Re: git log --graph with a sort of local revision number

2019-08-18 Thread Uwe Brauer
>>> "RA" == Rafael Ascensão 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

Re: git log --graph with a sort of local revision number

2019-08-18 Thread Uwe Brauer
>>> "RA" == Rafael Ascensão 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

Re: git log --graph with a sort of local revision number

2019-08-18 Thread Rafael Ascensão
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 * changeset: 5fa0f52

git log --graph with a sort of local revision number

2019-08-15 Thread Uwe Brauer
Hi I am an occasionally git user and am very used to local revision numbers mercurial provides in its log command. I don't want to start the discussion whether local revision numbers are useful or not, nor whether mercurial is better or not. I only want to know whether there is any possibilit