diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2024-04-06 17:05:32 +0200 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2024-04-06 17:05:32 +0200 |
commit | 684f5ef56790771b425c7007c9dfcfbd8ea1a300 (patch) | |
tree | 118298a92be197f4a59d03cf2a5b447cbe9b9354 /SOURCES/process_configs.sh | |
parent | c0c9b770e4f24e17886587762c42194b6e524720 (diff) | |
download | kernel-fsync-684f5ef56790771b425c7007c9dfcfbd8ea1a300.tar.gz kernel-fsync-684f5ef56790771b425c7007c9dfcfbd8ea1a300.zip |
kernel 6.8.2
Diffstat (limited to 'SOURCES/process_configs.sh')
-rwxr-xr-x | SOURCES/process_configs.sh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/SOURCES/process_configs.sh b/SOURCES/process_configs.sh index 9cd5778..4314879 100755 --- a/SOURCES/process_configs.sh +++ b/SOURCES/process_configs.sh @@ -148,7 +148,8 @@ parsenewconfigs() /usr/bin/awk -v BASE="$tmpdir" ' BEGIN { inpatch=0; outfile="none"; - symbol="none"; } + symbol="none"; + commit=""; } /^Symbol: .*$/ { split($0, a, " "); symbol="CONFIG_"a[2]; @@ -160,9 +161,11 @@ parsenewconfigs() } else { if (symbol != "none") { + print "# Commit: "commit >> outfile system("cat " outfile " " BASE "/" symbol " > " BASE "/tmpf"); system("mv " BASE "/tmpf " BASE "/" symbol); symbol="none" + commit="" } outfile="none" inpatch = 0; @@ -173,6 +176,15 @@ parsenewconfigs() print "# "$0 >> outfile; } } + /^Defined at .*$/ { + split($0, x, " "); + filenum=x[3]; + split(filenum, x, ":"); + file=x[1] + line=x[2] + cmd="git blame -L " line "," line " " file " | cut -d \" \" -f1 | xargs git log --pretty=format:\"%C(auto)%h %C(cyan)('%s')\" -1" + cmd | getline commit + } ' .helpnewconfig |