Closed Mapel88 closed 5 years ago
Thank you for the PR. I have a couple of suggestions on this:
Please let me know if you need help with any of the above.
The whitespace looks good now, and I'm happy to help with the Git magic.
First, there is no need to create a new pull request. If you look at the fine print in this PR, you'll see this instruction:
Add more commits by pushing to the develop branch on Mapel88/salt-gen-resource.
So, this PR can be updated by just pushing new work to the existing remote branch. In fact, you'll see that your latest commit 4a7699b was added to this PR when you pushed it. I'll close out #4 since we don't need it.
Next, let's look at how to clean up typos and other non-functional changes. For this you can use an "interactive" rebase. Here are the steps:
Checkout your develop
branch.
Run git rebase -i v1.4
. This tells Git, "I want to rewrite some of the history between v1.4 and HEAD."
It will open up an editor with a list of commits from v1.4 to the latest one (HEAD).
pick 70b08c9 Support attributes from grains with nested items
pick 4294d8b Support attributes from grains with nested items
pick 4a7699b Support attributes from grains with nested items
The order here is oldest-first, so 70b08c9 was your first commit.
Change the word pick
to fixup
for the commits that "fix up" an earlier commit.
pick 70b08c9 Support attributes from grains with nested items
fixup 4294d8b Support attributes from grains with nested items
fixup 4a7699b Support attributes from grains with nested items
Save the file and exit the editor.
Git will apply all three changesets to a single commit, thereby cleaning up the history. The last step is to push the changes up to GitHub, but a normal push will fail since you have rewritten history that was previously pushed. Just run git push -f
(force) and it should work fine.
That's some crazy dark magic you have there... You assume I use git locally on my PC? I edited via github web editor, so my options are limited (at least I think so.. didn't find any rebase option here).
It might take me some time to fix as I'm pretty busy with work lately. Hope to get back to it soon.
select first item by default and raise exception if grain is not a list