class Git::Diff

def patch(file = nil)

if file is provided and is writable, it will write the patch into the file
def patch(file = nil)
  cache_full
  @full_diff
end