Is there a way to get the git show
command to show the whole contents of a file when viewing a commit? For example: if it currently show something like
foo.cpp
+++ int main() {
+++ std::cout << "HELLO" << std::endl;
+++ }
I would want the output to say:
foo.cpp
#include <stdio> //assuming this was from an earlier commit
+++ int main() {
+++ std::cout << "HELLO" << std::endl;
+++ }
Is there a simple way to do this?