I have a git workspace an I want to know if a change has already been present in it..I think checking via commit is the best way wow to know if an existing commit is already present in the workspace?any other ideas you have to check if a change is already present inthe workspace is great too…
Thanks
Does the commit have a change-id? If so, I think the easiest answer is to use
git log | grep $CHANGE_ID. This will quickly let you know if that change-id is in your commit history.The Gerrit web UI makes it easy to cherry-pick changes from the server to your workspace, so I can’t think of a better approach using the original commit’s SHA1.