HN user

anilgupta

4 karma
Posts0
Comments3
View on HN
No posts found.

Git is full of nice tricks, this is a good collection. One it didn't mention that I use a lot, is manipulating history with human-readable dates:

  git whatchanged --since="yesterday"
  git revert master@{"1 month ago"}

This seems like a very nice idea, but the API seems a little cumbersome. The first few lines of the example Ruby script:

    socket = Thrift::Socket.new('localhost', 9071)
    transport = Thrift::FramedTransport.new(socket) # Thrift::BufferedTransport.new(socket)
    protocol = Thrift::BinaryProtocol.new(transport)
    spacebase = SpaceBase::Client.new(protocol)
It seems like an awful lot to have to load, just to do some basic insertion/querying.