def rev_infos(rev, desired)
    info = {}
    desired.each_pair do |key, value|
      execute "git log -1 --format=#{value} #{rev} --" do |out, e|
        info[key] = out.strip if !e
      end
    end
    info
  end
def rev_infos(rev, desired)
    info = {}
    desired.each_pair do |key, value|
      execute "git log -1 --format=#{value} #{rev} --" do |out, e|
        info[key] = out.strip if !e
      end
    end
    info
  end
returns some informations about a revision