On Mon, Apr 13, 2020 at 09:46:41PM +0200, Valentin Vidi?? wrote: > On Mon, Apr 13, 2020 at 07:15:17PM +0200, Nicholas Mc Guire wrote: > > linux-stable$ git log -L:get_fs_type:fs/filesystems.c | grep "^commit " > > commit d8e9650dff48055057253ca30933605bd7d0733b > > commit 79c0b2df79eb56fc71e54c75cd7fb3acf84370f9 > > commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 > > > > I see neither of the fix nor the fixed commit ? > > This is on a Debian 10.3 with git version 2.20.1 > > > > It does not seem to be a rename issue - so I'm a bit lost on this one > > Is this a wrong expectation on my side - or am I using git in some wrong way here ? > > In this case it seems there is a function __get_fs_type earlier in the file > that gets matched instead: > > static struct file_system_type *__get_fs_type(const char *name, int len) > { > ... > } > > struct file_system_type *get_fs_type(const char *name) > { > ... > } > > You can try for example: > > $ git log -L ':[*]get_fs_type:fs/filesystems.c' fs/filesystems.c | grep ^commit > $ git log -L ':[^_]get_fs_type:fs/filesystems.c' fs/filesystems.c | grep ^commit > $ git log -L ':\bget_fs_type:fs/filesystems.c' fs/filesystems.c | grep ^commit > commit 26c5d78c976ca298e59a56f6101a97b618ba3539 > commit 41124db869b7e00e12052555f8987867ac01d70c > commit 7f78e0351394052e1a6293e175825eb5c7869507 > commit d8e9650dff48055057253ca30933605bd7d0733b > commit 79c0b2df79eb56fc71e54c75cd7fb3acf84370f9 > commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 > thanks - yes that does it for my case - I did not see the function name as a regex - thanks for the clarification ! thx! hofrat _______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies