Skip to contentSkip to conversation

Fix regressions caused by renaming README

PATCH In review Stefan Weil 7 participants 11 messages Jul 19, 2016 – Jul 20, 2016 Checkpatch

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix regressions caused by renaming README

Commit e5dfc5e8e715c572aea44ac4d96c43941d4741c7 renamed README but did not update scripts/checkpatch.pl. Fix this.

An update was also needed for qemu.nsi (Windows).

---
 qemu.nsi              | 4 ++--
 scripts/checkpatch.pl | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
qemu.nsi +2 -2
index a20f6ef..c037017 100644
@@ -116,7 +116,7 @@ Section "${PRODUCT} (required)"
     File "${SRCDIR}\Changelog"
     File "${SRCDIR}\COPYING"
     File "${SRCDIR}\COPYING.LIB"
-    File "${SRCDIR}\README"
+    File "${SRCDIR}\README.md"
     File "${SRCDIR}\VERSION"
 
     File "${BINDIR}\*.bmp"
@@ -206,7 +206,7 @@ Section "Uninstall"
     Delete "$INSTDIR\Changelog"
     Delete "$INSTDIR\COPYING"
     Delete "$INSTDIR\COPYING.LIB"
-    Delete "$INSTDIR\README"
+    Delete "$INSTDIR\README.md"
     Delete "$INSTDIR\VERSION"
     Delete "$INSTDIR\*.bmp"
     Delete "$INSTDIR\*.bin"
scripts/checkpatch.pl +1 -1
index afa7f79..8247305 100755
@@ -286,7 +286,7 @@ sub top_of_kernel_tree {
 
 	my @tree_check = (
 		"COPYING", "MAINTAINERS", "Makefile",
-		"README", "docs", "VERSION",
+		"README.md", "docs", "VERSION",
 		"vl.c"
 	);
 
Signature · 1 line
2.1.4
#2 lore raw
In reply to Stefan Weil
Quoted 39 lines · Stefan Weil

Commit e5dfc5e8e715c572aea44ac4d96c43941d4741c7 renamed README but did not update scripts/checkpatch.pl. Fix this.

An update was also needed for qemu.nsi (Windows).

---
 qemu.nsi              | 4 ++--
 scripts/checkpatch.pl | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
qemu.nsi +2 -2
index a20f6ef..c037017 100644
@@ -116,7 +116,7 @@ Section "${PRODUCT} (required)"
     File "${SRCDIR}\Changelog"
     File "${SRCDIR}\COPYING"
     File "${SRCDIR}\COPYING.LIB"
-    File "${SRCDIR}\README"
+    File "${SRCDIR}\README.md"
     File "${SRCDIR}\VERSION"
 
     File "${BINDIR}\*.bmp"
@@ -206,7 +206,7 @@ Section "Uninstall"
     Delete "$INSTDIR\Changelog"
     Delete "$INSTDIR\COPYING"
     Delete "$INSTDIR\COPYING.LIB"
-    Delete "$INSTDIR\README"
+    Delete "$INSTDIR\README.md"
     Delete "$INSTDIR\VERSION"
     Delete "$INSTDIR\*.bmp"
     Delete "$INSTDIR\*.bin"
scripts/checkpatch.pl +0 -0
index afa7f79..8247305 100755

scripts/checkpatch.pl sub top_of_kernel_tree { · line 291

Quoted 7 lines
scripts/checkpatch.pl +1 -1
@@ -286,7 +286,7 @@ sub top_of_kernel_tree {
 
        my @tree_check = (
                "COPYING", "MAINTAINERS", "Makefile",
-               "README", "docs", "VERSION",
+               "README.md", "docs", "VERSION",
                "vl.c"
        );

Does raise the question of whether we should be renaming the file in the first place. README is the traditional name and fits with all our other basically-plain-text document names like COPYING, MAINTAINERS, HACKING.

thanks
-- PMM

#3 lore raw
Quoted 5 lines · Peter Maydell

Does raise the question of whether we should be renaming the file in the first place. README is the traditional name and fits with all our other basically-plain-text document names like COPYING, MAINTAINERS, HACKING.

I was hoping that this change would be helpful since mark down(at-least the way we have it) still looks like plain text if you open in a text editor. The advantage is that github repositories look way better since mark down is formatted well there. I am open to getting it reverted if it really is bothering.

Signature · 1 line
Pranith
#4 lore raw
Quoted 7 lines · Pranith Kumar
Quoted 5 lines · Peter Maydell

Does raise the question of whether we should be renaming the file in the first place. README is the traditional name and fits with all our other basically-plain-text document names like COPYING, MAINTAINERS, HACKING.

Quoted 5 lines

I was hoping that this change would be helpful since mark down(at-least the way we have it) still looks like plain text if you open in a text editor. The advantage is that github repositories look way better since mark down is formatted well there. I am open to getting it reverted if it really is bothering.

On the other hand we don't use github as our primary git repo, and we don't try to render the markdown anywhere in our build process. The documentation really is a plain text file in my view, and I'm not hugely enthusiastic about switching the filename to placate a website we don't even use except as a backup/mirror.

thanks
-- PMM

#5 lore raw
Quoted 14 lines · Peter Maydell
Quoted 7 lines · Pranith Kumar
Quoted 5 lines · Peter Maydell

Does raise the question of whether we should be renaming the file in the first place. README is the traditional name and fits with all our other basically-plain-text document names like COPYING, MAINTAINERS, HACKING.

Quoted 5 lines

I was hoping that this change would be helpful since mark down(at-least the way we have it) still looks like plain text if you open in a text editor. The advantage is that github repositories look way better since mark down is formatted well there. I am open to getting it reverted if it really is bothering.

Quoted 6 lines

On the other hand we don't use github as our primary git repo, and we don't try to render the markdown anywhere in our build process. The documentation really is a plain text file in my view, and I'm not hugely enthusiastic about switching the filename to placate a website we don't even use except as a backup/mirror.

I'd less unenthusiastic if MarkDown worked the same everywhere. Its common core does, but how would we ensure we stick to the common core? How would we even know what the core common to the various MarkDown dialects is? Or are we ready to commit to GitHub's dialect?

#6 lore raw
Quoted 4 lines · Markus Armbruster

I'd less unenthusiastic if MarkDown worked the same everywhere. Its common core does, but how would we ensure we stick to the common core? How would we even know what the core common to the various MarkDown dialects is?

README.md uses exactly three features:

* monospace text

* headings

* lists

Quoted 1 line

Or are we ready to commit to GitHub's dialect?

We probably want to rely on GitHub's stricter interpretation of underscores, where they only start/end italic formatting if they are respectively the first or the last character in the word. This is a common extension (for example Stack Exchange does the same).

The question is: is anyone actually viewing formatted markdown anywhere else than on github?

Paolo

#7 lore raw
Quoted 7 lines · Paolo Bonzini

We probably want to rely on GitHub's stricter interpretation of underscores, where they only start/end italic formatting if they are respectively the first or the last character in the word. This is a common extension (for example Stack Exchange does the same).

The question is: is anyone actually viewing formatted markdown anywhere else than on github?

It may have slightly better syntax highlighting in editors.

Out of curiosity, I'm wondering if it's acceptable to commit a "ln -s README.md README" change in the repo, at all?

Fam

#8 lore raw
Quoted 6 lines · Fam Zheng
Quoted 2 lines
Quoted 2 lines

The question is: is anyone actually viewing formatted markdown anywhere else than on github?

It may have slightly better syntax highlighting in editors.

Out of curiosity, I'm wondering if it's acceptable to commit a "ln -s README.md README" change in the repo, at all?

Yes, that's a good idea.

Paolo

#9 lore raw
Quoted 11 lines · Paolo Bonzini
Quoted 6 lines · Fam Zheng
Quoted 2 lines
Quoted 2 lines

The question is: is anyone actually viewing formatted markdown anywhere else than on github?

It may have slightly better syntax highlighting in editors.

Out of curiosity, I'm wondering if it's acceptable to commit a "ln -s README.md README" change in the repo, at all?

Yes, that's a good idea.

I'll see if github likes that. :)

Fam

#10 lore raw
In reply to Peter Maydell
Quoted 41 lines · Peter Maydell
Quoted 40 lines · Stefan Weil

Commit e5dfc5e8e715c572aea44ac4d96c43941d4741c7 renamed README but did not update scripts/checkpatch.pl. Fix this.

An update was also needed for qemu.nsi (Windows).

---
 qemu.nsi              | 4 ++--
 scripts/checkpatch.pl | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
qemu.nsi +2 -2
index a20f6ef..c037017 100644
@@ -116,7 +116,7 @@ Section "${PRODUCT} (required)"
     File "${SRCDIR}\Changelog"
     File "${SRCDIR}\COPYING"
     File "${SRCDIR}\COPYING.LIB"
-    File "${SRCDIR}\README"
+    File "${SRCDIR}\README.md"
     File "${SRCDIR}\VERSION"
 
     File "${BINDIR}\*.bmp"
@@ -206,7 +206,7 @@ Section "Uninstall"
     Delete "$INSTDIR\Changelog"
     Delete "$INSTDIR\COPYING"
     Delete "$INSTDIR\COPYING.LIB"
-    Delete "$INSTDIR\README"
+    Delete "$INSTDIR\README.md"
     Delete "$INSTDIR\VERSION"
     Delete "$INSTDIR\*.bmp"
     Delete "$INSTDIR\*.bin"
scripts/checkpatch.pl +0 -0
index afa7f79..8247305 100755
@@ -286,7 +286,7 @@ sub top_of_kernel_tree {
 
Quoted 11 lines

scripts/checkpatch.pl sub top_of_kernel_tree { · line 291

Quoted 6 lines
scripts/checkpatch.pl +1 -1
        my @tree_check = (
                "COPYING", "MAINTAINERS", "Makefile",
-               "README", "docs", "VERSION",
+               "README.md", "docs", "VERSION",
                "vl.c"
        );

Does raise the question of whether we should be renaming the file in the first place. README is the traditional name and fits with all our other basically-plain-text document names like COPYING, MAINTAINERS, HACKING.

As mentioned in my original review, we could just create a symlink between READE & README.md or vica-verca if we wish to preserve the "normal" filename, but still have github do its magic.

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 :|