Assuming a development history written in C (e.g. Linux kernel), how can I get all function names modified (not created/deleted, since this increases the complexity) by a commit? IMHO this question is pretty much from the same category as getting the files touched by a commit, with the only difference that the latter can be easily accomplished with git builtin functionality, while the former AFAIK not.
The solution I came up to so far is (assuming commit 300df508c8
):
git show -U0 300df508c | grep -E -o '@@.*[^\ ]+\(' | grep -E -o '[^\ ]+\(' | sed 's/(//' | sort -u
sdhci_omap_init_74_clocks
sdhci_omap_probe
sdhci_omap_set_ios
sdhci_omap_start_signal_voltage_switch
Did I miss anything and there is much simpler way to deal with this?