class Octodown::FileChooser::MarkdownFileList::Git
Public Instance Methods
call()
click to toggle source
# File lib/octodown/support/file_chooser.rb, line 23 def call ext_args = EXTENSIONS.map { |ext| "**/*.#{ext} *.#{ext}" }.join(' ') `git ls-files --cached --others -z #{ext_args}`.split("\x0").uniq end
runnable?()
click to toggle source
# File lib/octodown/support/file_chooser.rb, line 28 def runnable? `git rev-parse --is-inside-work-tree` $CHILD_STATUS.success? rescue StandardError false end