* [gentoo-user] Tracking changes in the kernel config @ 2025-06-24 13:02 whiteman808 2025-06-25 8:21 ` [gentoo-user] " Anna Vyalkova 0 siblings, 1 reply; 4+ messages in thread From: whiteman808 @ 2025-06-24 13:02 UTC (permalink / raw To: gentoo-userI want to compile gentoo-sources for educational purposes and I need recommendation how to conveniently track changes at the .config file in kernel sources directory. If you recommend Git, what setup in .gitconfig, .gitignore do you recommend?
I use sys-apps/etckeeper for this with a hackish script like below one that gets aliased to nano that tries to check if the parameter is under control of the cvs to keep track changes:
#!/bin/bash
withcvs() {
nano "$@"
/usr/bin/etckeeper vcs status
echo "insert tracking info"
why=""
read why
/usr/bin/etckeeper commit "$why"
}
withoutcvs() {
nano "$@"
}
PWD=$(pwd)
MODE=0
for arg in $@; do
if [[ "${PWD}" == /etc* ]] ; then
MODE=1
break
elif [[ "${arg}" == /etc/* ]]; then
MODE=1
break
else
continue
fi
done
if [[ $MODE == 1 ]];
then
withcvs "$@"
else
withoutcvs "$@"
fi
OpenPGP_0x57E64E0B7FC3BEDF.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature

