cheat sheet: mark transplanted commits with prime #2076
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Mark transplanted commits with prime, similar to how manpages git-rebase(1) and git-cherry-pick(1) indicate them.
Changes
′
U+2032
) to letters representing commits transplanted bygit rebase
git merge --squash
git cherry-pick
Context
Like in the manpages git-rebase(1) and git-cherry-pick(1), we should (also in the new cheat sheet) distinguish between a commit and the commit resulting from transplanting it. They will usually represent the same change, but they aren't the same commit and might (due to different ancestors) not have the same file contents in the trees they refer to (and also some metadata like commit date will differ in general), thus they aren't the same commit.
The manpages use the straight apostrophe (
'
a.k.a. "single quote") for this, presumably to stay with ASCII-only for compatibility. I guess the cheat sheet may dare to use the semantically more precise Unicode characterPRIME
instead. For source encoding safety, I've used the corresponding HTML entity.If I should use the un-escaped Unicode character instead or even just the ASCII straight apostrophe/single quote, please let me know.