Skip to content
This repository has been archived by the owner on Nov 11, 2017. It is now read-only.

yolog content different from git log #13

Open
Anzumana opened this issue Jul 27, 2016 · 6 comments
Open

yolog content different from git log #13

Anzumana opened this issue Jul 27, 2016 · 6 comments

Comments

@Anzumana
Copy link

Hey,
i checked out a branch in git that i not have locally from my remote
git checkout origin/feature/map_distances.
In this state git log shows the last commits correclty yolog for some reason does not.
Not sure why.
Hope this helps.

@kdexd
Copy link
Owner

kdexd commented Jul 27, 2016

That's strange, thanks for reporting. I'll try to reproduce this error.

@kdexd
Copy link
Owner

kdexd commented Jul 27, 2016

Hi @Anzumana:
I tried to checkout on a remote branch and it displays a message that we are in a "Detached HEAD state". yolog strictly arranges commits according to dates, and there is a graph on left side. Here's a reference:

image

As you can see, the ref in red clearly states there is is simply an upstream remote branch and it doesn't exist locally. The branch is unmerged and dated long time ago so it was way beneath recent commits. Please go through the complete history, atleast till the time of the recent commit of the intended remote branch. I hope this solves it, thanks 😄

@kdexd
Copy link
Owner

kdexd commented Jul 27, 2016

Just to clarify, due to ambigious "2015" dates - this happens when there is a rebase of older commits further. There are two kinds of dates associate with a commit - author date and committer date. Author date is the date when the commit was first created (that is displayed) and committer date is simply the date when it was recently rebased / amended. Mostly author dates and committer dates are same unless the history is not re-written.

@Anzumana
Copy link
Author

I think the issue remains. if your local branches last commit is older then the remote which you try to checkout.
then there is no scrolling to get to head ( no HEAD visibile in the yolog output ).

@kdexd
Copy link
Owner

kdexd commented Jul 27, 2016

Ah I see. The remote branch is recent that the recent commit on any local branches. Noted - great observation !

@Anzumana
Copy link
Author

Glad to be helpful. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants