git log -S"#define SAMPLES"
Searches for addition or removal of specific string or the string matching provided REGEXP. In this case we're looking for addition/removal of the string #define SAMPLES
. For example:
+#define SAMPLES 100000
or
-#define SAMPLES 100000
git log -G"#define SAMPLES"
Searches for changes in lines containing specific string or the string matching provided REGEXP. For example:
-#define SAMPLES 100000
+#define SAMPLES 100000000