Hi all,
we all know when we're working on public projects we'll always get our patches commented; so how to apply those comments and even though keep the patch-series order??
That's what we're learning today. Let's start?
NOTE: I'm assuming we're using the same 'exp' branch as on previous posts.
First of all we need to create a tag to that bad commit. So:
$ git-tag bad COMMIT_ID
Then we should checkout to that tag:
$ git-checkout bad
Edit that bad file to apply the comments and after that:
$ git-add /path/to/modified/file.c$ git-commit --amend$ git-rebase --onto HEAD bad exp
This will left you with exp checked out and with that bad commit corrected. After testing and reviewing our new changes we can delete that bad tag:
$ git-tag -d bad
That's all.
See y'all