lib/git/browse/remote/git.rb in git-browse-remote-0.0.3 vs lib/git/browse/remote/git.rb in git-browse-remote-0.0.4
- old
+ new
@@ -30,7 +30,11 @@
end
def self.symbolic_name_of_head
name_rev('HEAD').sub(%r(\^0$), '') # some workaround for ^0
end
+
+ def self.show_prefix
+ `git rev-parse --show-prefix`.chomp
+ end
end
end