Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commit history question #19901

Closed
sonora opened this issue May 18, 2024 · 7 comments
Closed

Commit history question #19901

sonora opened this issue May 18, 2024 · 7 comments

Comments

@sonora
Copy link
Member

sonora commented May 18, 2024

I am currently a bit baffled why this commit to the master branch f1aa507

image

is not reflected in this commit's history 290c953, which leads to the comment added by @ivanPyrohivskyi not being visible in our master branch now?

image

@ivanPyrohivskyi
Copy link
Contributor

Comment is visible now in master

public static final int VERSION = 5;// synchronize with binaryRead.cpp CACHE_VERSION

@sonora
Copy link
Member Author

sonora commented May 20, 2024

So what had happened, can anybody explain?

@vshcherb
Copy link
Member

nothing, have no idea. Commit was merged from 4.7?

@sonora
Copy link
Member Author

sonora commented May 20, 2024

From what I see, all relevant commits were directly to master. I had observed something like this on 2 or 3 occasions lately, and was really baffled. This example was the most straightforward to illustrate it with...

@scaidermern
Copy link
Contributor

I haven't checked this particular example (I'm on a mobile phone right now) but git allows to perform changes within a merge commit which you won't see when looking at the individual commits. You have to look at the diff of the merge commit instead.

This is a really strange and scary behavior of git in my opinion.

@vshcherb
Copy link
Member

It's in master branch - git log -1000 | grep -A 5 -B 5 f1aa507

commit f19be09322886d10e5fa6c711fdd5ce6df94d33e
Merge: f1aa507175 598a538632
Author: Victor Shcherb <victor.shcherb@gmail.com>
Date:   Fri May 3 17:11:07 2024 +0300

    Merge remote-tracking branch 'origin/r4.7'
commit f1aa507175e4f549469c7734f46c3e5e093a70e2
Author: ivanPyrohivskyi <ivan.pirogovsky@gmail.com>
Date:   Fri May 3 14:37:36 2024 +0300

I don't see anything strange. it was merged from r4.7 to master

@sonora
Copy link
Member Author

sonora commented May 21, 2024

Perhaps a UI peculiarity I fail to understand or glitch on github.com then. Because as you can see in the second screenshot I had provided above, the comments in code line t44 should have been present but are not reflected.

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

No branches or pull requests

4 participants