Function for reading a file from another git branch into a new buffer