In Gerrit, under the download section for a change, there is a section that allows you to download the Patch-File:
Using git apply
results in:
$ git apply 441eb56b.diff.base64
fatal: unrecognized input
What command do I use to apply this patch?
Gerrit uses the Change-Id to associate each iteration of the commit with the same change. These iterations of a commit are referred to as patch sets. When a change is approved, only the latest version of a commit is submitted to the repository. It is also possible to copy a Change-Id to a completely new commit.
base64 --decode c6a9dcdb.diff.base64 > c6a9dcdb.diff
git apply c6a9dcdb.diff
(Replace c6a9dcdb with whatever abbreviated commit hash Gerrit gave you.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With