See parent issue(s) and related issue(s) for details,
Twig Templates to Copy
- core/modules/system/templates/links.html.twig
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | issue-2407749-6.patch | 237 bytes | olmaga |
| #5 | issue-2407749-5.patch | 241 bytes | olmaga |
| #1 | issue-2407749-1.patch | 2.61 KB | sivaji_ganesh_jojodae |
Comments
Comment #1
sivaji_ganesh_jojodae commentedComment #2
davidhernandezIt looks like this moves the one file unedited. Is that correct? If so, please adjust your Git settings.
See this page, https://www.drupal.org/documentation/git/configure
You'll see a section for Optimize diffs for renamed and copied files. When copying or renaming a file the patch will show a one line change for the copy/rename. This make it much easier to review, since the patch won't contain the contents of the file.
Comment #3
sivaji_ganesh_jojodae commentedThanks for the direction. I understand for the copied files I should get only reference in diff (with similarity index 100% copy from ... copy to ...) not the entire file content. I'm already using the ~/.gitconfig from https://www.drupal.org/documentation/git/configure and command
git diff HEADto make patches, not sure how to get patch having only reference of copied files.Comment #4
olmaga commentedComment #5
olmaga commentedSorry - This was a move
Comment #6
davidhernandezThey should all be copies. So the existing template will stay in place and a copy will be put in Classy.
Comment #7
olmaga commentedHere is the copy one:
Comment #8
emanuelrighetto commentedpatch #7 work great IMHO! ;)
Comment #10
alexpottMarkup changes are not frozen in beta. Committed 2f540a0 and pushed to 8.0.x. Thanks!
Comment #12
alexpottComment #13
sivaji_ganesh_jojodae commented@davidhernandez, in response to comment #6, What is the git command (or configuration) I should have used to create the patch as in #7. I used
git diff HEAD.Comment #14
davidhernandez@sivaji, if it isn't picking up the copy, try
git diff -C