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

[Feature] Change the base gerrit_git_dir to the appropriate commit as indicated by a patch #20

Open
WLIU0628 opened this issue Nov 6, 2020 · 1 comment

Comments

@WLIU0628
Copy link

WLIU0628 commented Nov 6, 2020

Sometimes, patches sent in the mailing list have different base commits than the master branch of Linux. As such, the master branch should be checked out to whatever's specified by the patch.

@WLIU0628 WLIU0628 changed the title Change the base gerrit_git_dir to the appropriate commit as indicated by a patch [Feature] Change the base gerrit_git_dir to the appropriate commit as indicated by a patch Nov 6, 2020
@dlatypov
Copy link
Collaborator

Picking a short small commit as an example: https://lore.kernel.org/linux-kselftest/20201102232304.2735187-1-dlatypov@google.com/

Close to the end of the message, there's a string like

base-commit: 495023e4e49e4b7dee35928800bf0317276576c1
-- 

This only shows up for the first message.

This is documented here: https://git-scm.com/docs/git-format-patch#_base_tree_information
There's also options fo "prerequisite-patch-id", which we might want to support at some point as well.

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

2 participants