Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Alias User#dump to User#to_s

  • Loading branch information...
commit 521a9263c1e299328cd63d19f0d28cdf5679af1c 1 parent 1fc4f49
@manveru authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  lib/git_store/user.rb
View
1  lib/git_store/user.rb
@@ -3,6 +3,7 @@ class User < Struct.new(:name, :email, :time)
def dump
"#{ name } <#{email}> #{ time.to_i } #{ time.strftime('%z') }"
end
+ alias to_s dump
def self.from_config
name = IO.popen("git config user.name") { |io| io.gets.chomp }
Please sign in to comment.
Something went wrong with that request. Please try again.