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
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
>>> "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
>>> "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
>>> "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
>>> "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
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
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
8 matches
Mail list logo