emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: git log question


From: Noam Postavsky
Subject: Re: git log question
Date: Thu, 30 Nov 2017 09:59:22 -0500

On Thu, Nov 30, 2017 at 9:19 AM, Stephen Berman <address@hidden> wrote:

> I'm not sure what you mean by "reachable from a branch"; what I want is
> to find out whether a specific commit (identified by its hash) exists on
> the current branch -- not just whether it exists on some branch in the
> current repository -- and if so, to see that commit.

git doesn't really have branches like you are talking about, it just
has movable tags.

> That is, `git log' invoked with a specific commit will find that commit
> even when it's not on the current branch but on another branch in this
> repository, but it appears unable to say which branch it's on.

'git log <commit>' means "show all commits starting with <commit>
going backwards".
'git log' is just a short form for 'git log HEAD' (i.e., the commit
you are currently on).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]