Symlink README.md as README to unbreak checkpatch.pl
PATCH 1/1 Symlink README.md as README to unbreak checkpatch.pl
Commit e5dfc5e8e71 renamed README to README.md but scripts/checkpatch.pl still looks for the old name to sanity check that it's invoked from the toplevel of tree.
Create a symbol link to README.md to fix that. I've verified that on github README.md still takes precedence and page is rendered.
--- README | 1 + 1 file changed, 1 insertion(+) create mode 120000 README
README new file +1 -0
@@ -0,0 +1 @@ +README.md
Signature · 1 line
2.7.4
Quoted 6 lines · Fam Zheng
Commit
e5dfc5e8e71renamed README to README.md butscripts/checkpatch.plstill looks for the old name to sanity check that it's invoked from the toplevel of tree.Create a symbol link to README.md to fix that. I've verified that on github README.md still takes precedence and page is rendered.
Have you checked that the symlink does sensible things if the git tree is checked out under Windows?
thanks
-- PMM
Quoted 10 lines · Peter Maydell
Quoted 6 lines · Fam Zheng
Commit
e5dfc5e8e71renamed README to README.md butscripts/checkpatch.plstill looks for the old name to sanity check that it's invoked from the toplevel of tree.Create a symbol link to README.md to fix that. I've verified that on github README.md still takes precedence and page is rendered.
Have you checked that the symlink does sensible things if the git tree is checked out under Windows?
Should be fine
https://www.kernel.org/pub/software/scm/git/docs/git-config.html
"core.symlinks
If false, symbolic links are checked out as small plain files that contain the link text. git-update-index(1) and git-add(1) will not change the recorded type to regular file. Useful on filesystems like FAT that do not support symbolic links.
The default is true, except git-clone(1) or git-init(1) will probe and set core.symlinks false if appropriate when the repository is created."
IOW, git will just "do the right thing" and automatically default core.symlinks to false on FAT.
Regards,
Daniel
Signature · 4 lines
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
Am 20.07.2016 um 12:36 schrieb Peter Maydell:
Quoted 8 lines · Fam Zheng
Quoted 5 lines
Commit
e5dfc5e8e71renamed README to README.md butscripts/checkpatch.plstill looks for the old name to sanity check that it's invoked from the toplevel of tree. Create a symbol link to README.md to fix that. I've verified that on github README.md still takes precedence and page is rendered.Have you checked that the symlink does sensible things if the git tree is checked out under Windows? thanks -- PMM
... and that the Windows installer will get a working README, not only a symlink?
You could move README.md to README and link that to README.md (as suggested by Paolo) - that would avoid such problems.
I suggest to revert the README rename for the coming new release. It can be added again later, maybe with a few improvements like those in my branch https://github.com/stweil/qemu/tree/readme.
For https://github.com/stweil/qemu/blob/readme/README.md,
I removed tab characters, used underlining which also looks nice without markup formatting, used a uniform notification for links (so that they actually work as links) and marked code in the text.
Stefan
Quoted 7 lines · Stefan Weil
Am 20.07.2016 um 12:36 schrieb Peter Maydell:
Quoted 6 lines · Fam Zheng
Quoted 5 lines
Commit
e5dfc5e8e71renamed README to README.md butscripts/checkpatch.plstill looks for the old name to sanity check that it's invoked from the toplevel of tree. Create a symbol link to README.md to fix that. I've verified that on github README.md still takes precedence and page is rendered.
Quoted 8 lines
Quoted 2 lines
Have you checked that the symlink does sensible things if the git tree is checked out under Windows? thanks -- PMM
... and that the Windows installer will get a working README, not only a symlink?
You could move README.md to README and link that to README.md (as suggested by Paolo) - that would avoid such problems.
I would favor README as the real file, and README.md as the symlink. The Windows installer would pick up the real file, and github, where symlinks work, will render things just fine. Making README the symlink risks the Windows installer picking up a file whose contents are "README.md", which is not what you want.
Quoted 4 lines
I suggest to revert the README rename for the coming new release. It can be added again later, maybe with a few improvements like those in my branch https://github.com/stweil/qemu/tree/readme.
It's just documentation, so we can still tweak it during hard freeze, but I agree that a revert is the most conservative approach.
Quoted 10 lines
For https://github.com/stweil/qemu/blob/readme/README.md,
I removed tab characters, used underlining which also looks nice without markup formatting, used a uniform notification for links (so that they actually work as links) and marked code in the text.Stefan
Signature · 2 lines
Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
Quoted 12 lines · Eric Blake
Quoted 11 lines · Stefan Weil
Am 20.07.2016 um 12:36 schrieb Peter Maydell:
Quoted 8 lines · Fam Zheng
Quoted 5 lines
Commit
e5dfc5e8e71renamed README to README.md butscripts/checkpatch.plstill looks for the old name to sanity check that it's invoked from the toplevel of tree. Create a symbol link to README.md to fix that. I've verified that on github README.md still takes precedence and page is rendered.Have you checked that the symlink does sensible things if the git tree is checked out under Windows? thanks -- PMM
Quoted 6 lines
Quoted 4 lines
... and that the Windows installer will get a working README, not only a symlink?
You could move README.md to README and link that to README.md (as suggested by Paolo) - that would avoid such problems.I would favor README as the real file, and README.md as the symlink. The
Will Github DTRT?
Quoted 24 lines
Windows installer would pick up the real file, and github, where symlinks work, will render things just fine. Making README the symlink risks the Windows installer picking up a file whose contents are "README.md", which is not what you want.
Quoted 4 lines
I suggest to revert the README rename for the coming new release. It can be added again later, maybe with a few improvements like those in my branch https://github.com/stweil/qemu/tree/readme.
It's just documentation, so we can still tweak it during hard freeze, but I agree that a revert is the most conservative approach.
Quoted 10 lines
For https://github.com/stweil/qemu/blob/readme/README.md,
I removed tab characters, used underlining which also looks nice without markup formatting, used a uniform notification for links (so that they actually work as links) and marked code in the text.Stefan
Quoted 13 lines · John Snow
Quoted 12 lines · Eric Blake
Quoted 11 lines · Stefan Weil
Am 20.07.2016 um 12:36 schrieb Peter Maydell:
Quoted 8 lines · Fam Zheng
Quoted 5 lines
Commit
e5dfc5e8e71renamed README to README.md butscripts/checkpatch.plstill looks for the old name to sanity check that it's invoked from the toplevel of tree. Create a symbol link to README.md to fix that. I've verified that on github README.md still takes precedence and page is rendered.Have you checked that the symlink does sensible things if the git tree is checked out under Windows? thanks -- PMM
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
... and that the Windows installer will get a working README, not only a symlink?
You could move README.md to README and link that to README.md (as suggested by Paolo) - that would avoid such problems.I would favor README as the real file, and README.md as the symlink. The
Will Github DTRT?
Well, I don't know whether GitHub will always do the right thing, but in this case it does, see my test here:
https://github.com/stweil/qemu/tree/readme
Stefan
README
Quoted 16 lines · Fam Zheng
Commit
e5dfc5e8e71renamed README to README.md butscripts/checkpatch.plstill looks for the old name to sanity check that it's invoked from the toplevel of tree.Create a symbol link to README.md to fix that. I've verified that on github README.md still takes precedence and page is rendered.
Reported-by Daniel P. Berrange <[email protected]>Signed-off-by Fam Zheng <[email protected]>--- README | 1 + 1 file changed, 1 insertion(+) create mode 120000 READMEREADME new file +0
-0
For anyone wondering what happens on Windows hosts:
On some Windows hosts this file will simply contain the path to README.md. This seems okay-ish.
Stefan