I have a file down deep in my git tree:
$ git ls-files | grep /Expression.java
sm/src/main/java/cl/utilities/sm/Expression.java
I'd like to get a log of its activity without having to type the whole path. Basically I want this output:
$ git log --oneline -2 sm/src/main/java/cl/utilities/sm/Expression.java
2718cdc cleaned up some warnings
f30cf15 Added missing @Overrides
... but without having to type sm/src/main/java/cl/utilities/sm
. I tried lots of things, but none of them worked:
$ git log -- \*/Expression.java
$ git log -- \*Expression.java
$ git log -- \*\*/Expression.java
$ git log -- '*/Expression.java'
$ git log -- '**/Expression.java'