If any file changed only parse all files if force-update is true#1087
If any file changed only parse all files if force-update is true#1087p8 wants to merge 1 commit intoruby:masterfrom
force-update is true#1087Conversation
Commit 13e9a44 enforced parsing all files if any file is newer than the previous parse, not only updated files. However, this did not take into account the `--force-update` option and would parse all files even if `--force-update` was false. After this commit, if `--force-update` is false, only files newer than the previous parse will be parsed.
d0136b7 to
b9cd477
Compare
|
This breaks references to labels in unchanged files from a newer file. |
|
Maybe I'm missing some context here, but I think currently RDoc works as follows:
This seems to make the There doesn't seem to be an option to only update a single RDoc generated file. It either generates all files or no files. With this change, to not break references to labels the Commit 13e9a44 also specifically mentions
But that commit enforces parsing all files with the |
|
RDoc can detect labels only in parsed files, and to tell if words look like labels are really labels, it needs to parse those files actually. Consider a project that has two files, # foo.rb
# Uses Bar
class Foo
end# bar.rb
# Used by Foo
class Bar
end
Now you |
Commit 13e9a44 enforced parsing all files if any file is newer than the previous parse, not only updated files.
However, this did not take into account the
--force-updateoption and would parse all files even if--force-updatewas false.After this commit, if
--force-updateis false, only files newer than the previous parse will be parsed.If
--force-updateis true (the default), all files will be parsed if any file newer than the previous parse.