library/path_facts in qb-0.1.77 vs library/path_facts in qb-0.1.78
- old
+ new
@@ -57,12 +57,18 @@
@result.is_realpath = @result.realpath == @path
end
+ def add_git_facts
+ @result.git = QB::Repo::Git.from_path @path,
+ use_github_api: !!@args['github_api']
+ end
+
+
# If the path is part of a Git repo, as well as useful general
# Git environment facts.
- def add_git_facts
+ def add_git_facts_old
# see if we're in a git repo. first, we need a directory that exists
dir = @path.expand_path.ascend.find {|p| p.directory? }
Dir.chdir(dir) do
root_result = Cmds.capture "git rev-parse --show-toplevel"