Re: [problem with name-rev]

2019-08-21 Thread Uwe Brauer
> That's it, thanks. Interestingly enough the > git graph looks differently from the mercurial one. It does not. I just did not understand the git commands at first sight well enough. Both graphs look the same. Sorry for the noise.

Re: [problem with name-rev]

2019-08-21 Thread Uwe Brauer
> On Tue, Aug 20, 2019 at 12:35 PM Uwe Brauer wrote: > Try adding '--all' to include all refs, not just the current HEAD, to > begin logging from. Here is what I see after running your setup > script. > $ git log --graph --decorate --all > * commit 3262040f2d8d5f31b4918bda998

Re: [problem with name-rev]

2019-08-20 Thread Phil Hord
On Tue, Aug 20, 2019 at 12:35 PM Uwe Brauer wrote: > > Take the following part of what I did > > git init > echo 1 > 1 > git add 1 > git commit -m 1 > echo 1.1 > 1 > git add . > git commit -m 1.1 > git checkout -b foo master~1 > echo 1.2 > 1 > git add . > git commit -m 1.2 > echo 1.2.1 > 1 > git a

Re: [problem with name-rev]

2019-08-20 Thread Uwe Brauer
>>> "JCH" == Junio C Hamano writes: > Uwe Brauer writes: >> Gives >> * changeset: ae68dbe:master >> |\ user: Uwe Brauer >> | | date: Tue Aug 20 16:25:53 2019 +0200 >> | | summary: 1.2.1/1.1 >> | | >> | * changeset: c00bb5d:master^2 >> | | user: Uwe

Re: [problem with name-rev]

2019-08-20 Thread Junio C Hamano
Uwe Brauer writes: > Gives > * changeset: ae68dbe:master > |\ user: Uwe Brauer > | | date: Tue Aug 20 16:25:53 2019 +0200 > | | summary: 1.2.1/1.1 > | | > | * changeset: c00bb5d:master^2 > | | user: Uwe Brauer > | | date: Tue Aug 20 16:25:53 2019 +0200 > | | summary: 1.

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

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
; | git name-rev --refs=$(git rev-parse --abbrev-ref HEAD) --name-only --stdin It seems that there is problem with name-rev. Here's what I get when I start committing on master, then switch to a branch foo and finally merge foo into master: git init echo 1 > 1 git add 1 git commit -m 1 echo