lib/fcom/querier.rb in fcom-0.7.0 vs lib/fcom/querier.rb in fcom-0.7.1

- old
+ new

@@ -24,16 +24,17 @@ quote = expression_to_match.include?('"') ? "'" : '"' command = <<~COMMAND.squish git log - #{%(--author="#{author}") if author} - #{"--since=#{days}.day" unless days.nil?} + --format="commit %s|%H|%an|%cr (%ci)" + --patch --full-diff --no-textconv - --format="commit %s|%H|%an|%cr (%ci)" - --source - -p #{path} + #{%(--author="#{author}") if author} + #{"--since=#{days}.day" unless days.nil?} + -- + #{path} | rg #{quote}(#{expression_to_match})|(^commit )|(^diff )#{quote} --color never #{'--ignore-case' if ignore_case?}