I noticed behavior of git I don't understand in this repository. It can be cloned via:
git clone "git@github.com:skript-sicherheit/skript.git"
If you navigate to the folder images
in a terminal and execute git log .
, it prints this:
commit b1703a7542ee226535a34bd3de9aed48a7f76a8d
Author: Lukas Beeck <meisterasrael@googelmail.com>
Date: Wed Sep 7 10:37:39 2016 +0200
Bild von Mona Lisa war verschwunden, ist wieder drin
commit 0e3ede155080a3005e6454d855e18dc0083ea01a
Author: Lukas Beeck <meisterasrael@googelmail.com>
Date: Fri Sep 2 10:20:25 2016 +0200
Erläuterung in Grafik eingefügt
[...]
git show b1703a7542ee226535a34bd3de9aed48a7f76a8d
prints:
commit b1703a7542ee226535a34bd3de9aed48a7f76a8d
Author: Lukas Beeck <meisterasrael@googelmail.com>
Date: Wed Sep 7 10:37:39 2016 +0200
Bild von Mona Lisa war verschwunden, ist wieder drin
diff --git a/images/mona-lisa.jpg b/images/mona-lisa.jpg
new file mode 100644
index 0000000..f4f5583
Binary files /dev/null and b/images/mona-lisa.jpg differ
The commit message is German for: "Image of Mona Lisa had vanished. Is back in again."
So clearly, the file mona-lisa.jpg
was changed by b1703a7542ee226535a34bd3de9aed48a7f76a8d
. It even is the only file changed by it.
But if you execute git log mona-lisa.jpg
, this is the (entire) output:
commit 669b00871f3dba5c43ac7d53e44f317a61b177d0
Merge: 921a31c 519cdae
Author: Lukas Beeck <meisterasrael@googelmail.com>
Date: Fri Sep 2 15:39:00 2016 +0200
Merge branch 'index'
Why doesn't b1703a7542ee226535a34bd3de9aed48a7f76a8d
appear in the output of this command?