log: follow renames.

Now that we can rename formulae this makes this command more useful
for viewing longer histories.
This commit is contained in:
Mike McQuaid 2017-02-12 16:53:22 +00:00
parent 08c7561639
commit 735532840d

View File

@ -26,7 +26,7 @@ module Homebrew
EOS
end
args = ARGV.options_only
args += ["--", path] unless path.nil?
args += ["--follow", "--", path] unless path.nil?
exec "git", "log", *args
end
end