-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
git-merge-base: add page #9382
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
git-merge-base: add page #9382
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
3415fd8 to
878c90a
Compare
|
|
||
| `git merge-base {{commit_1}} {{commit_2}}` | ||
|
|
||
| - Output all best common ancestors of two commits: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
best can only be 1.
| - Output all best common ancestors of two commits: | |
| - Print all merge bases for two commits: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the way git weighs merge bases, there actually can be two "best" ones, which means two of the same quality. But I agree that the wording is confusing, so maybe "all suitable" should be used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
|
|
||
| - Output all best common ancestors of two commits: | ||
|
|
||
| `git merge-base --all {{commit_1}} {{commit_2}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| `git merge-base --all {{commit_1}} {{commit_2}}` | |
| `git merge-base --all {{commit1}} {{commit2}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not commit_hash instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the git subcommand pages are not consistent in this matter, but the majority uses just commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the git subcommand pages are not consistent in this matter, but the majority uses just commit.
It means that consistency should be fixed. For instance we can write script to do that like in #9578 PR.
Co-authored-by: Axel Navarro <[email protected]>
|
Hi all! This thread has not had any recent activity. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No unmentioned issues found.
Thanks for a contribution! ❤️
|
|
||
| - Output all best common ancestors of two commits: | ||
|
|
||
| `git merge-base --all {{commit_1}} {{commit_2}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the git subcommand pages are not consistent in this matter, but the majority uses just commit.
It means that consistency should be fixed. For instance we can write script to do that like in #9578 PR.
common,linux,osx,windows,sunos,android, etc.